[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-12-02 Thread hongxu.jia at windriver dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

hongxu jia hongxu.jia at windriver dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #15 from hongxu jia hongxu.jia at windriver dot com ---
I have done the test, the defect has fixed

//Hongxu


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-12-01 Thread hongxu.jia at windriver dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

hongxu jia hongxu.jia at windriver dot com changed:

   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|WORKSFORME  |---

--- Comment #13 from hongxu jia hongxu.jia at windriver dot com ---
Khem Raj gave more details, so I reopen it (but without that option, choose
unconfirmed to instead)


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-12-01 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

--- Comment #14 from Andrew Pinski pinskia at gcc dot gnu.org ---
Most likely fixed by:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=9fcfed2eb95fea03d967dfcadd1eec9cbab4a744


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-10-05 Thread raj.khem at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

--- Comment #12 from Khem Raj raj.khem at gmail dot com ---
I would like to reopen this bug. As there is more information to explain this
issue. This issue will happen if you first build cross binutils and add the
installation path to PATH variable and then configure gcc to cross build for
mips. All you need is cross assembler available in PATH when configuring gcc.

If gcc configure script does not find assembler then many probes fail and it
gets configured differently. 

I could see that when cross assembler is not in path then the resulting gcc is
able to compile the sample program however when assembler is in PATH then the
issue starts to show up.

I am not sure how Andrew built his toolchain but it seems he is not adding
binutils to the path before configuring cross gcc.

Steps.

configure and install cross binutils ( especially assembler )
Add the install path to PATH variable
configure and compile cross gcc
Try out the example ( it will cause the ICE as explained)

btw it happens with gcc 4.8 as well as 4.9 in same fashion and I have verified
that OE patches don't make any difference here. I could see it happen on latest
FSF 4.9 branch


see below is the diff between gcc/config.log between two cases explained above

-gcc_cv_as=''
+gcc_cv_as='/home/ubuntu/work/dizzy/build-pacexi3v2/tmp/sysroots/x86_64-linux/usr/bin/mipsel-rdk-linux/mipsel-rdk-linux-as'
 gcc_cv_ld=''
 gcc_cv_nm=''
 gcc_cv_objdump=''
@@ -6067,7 +6205,7 @@
 target='mipsel-rdk-linux-gnu'
 target_alias='mipsel-rdk-linux'
 target_cpu='mipsel'
-target_cpu_default='MASK_SPLIT_ADDRESSES'
+target_cpu_default='(MASK_SPLIT_ADDRESSES)|MASK_EXPLICIT_RELOCS'
 target_noncanonical='mipsel-rdk-linux'
 target_os='linux-gnu'
 target_subdir='mipsel-rdk-linux'
@@ -6278,13 +6416,31 @@
 #define HAVE_DLFCN_H 1
 #define LT_OBJDIR .libs/
 #define PLUGIN_LD_SUFFIX 
+#define HAVE_GAS_BALIGN_AND_P2ALIGN 1
+#define HAVE_GAS_MAX_SKIP_P2ALIGN 1
+#define HAVE_GAS_WEAK 1
+#define HAVE_GAS_WEAKREF 1
 #define HAVE_GNU_INDIRECT_FUNCTION 0
+#define HAVE_AS_LEB128 1
 #define HAVE_GAS_CFI_DIRECTIVE 0
-#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE 0
-#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE 0
-#define HAVE_GAS_SHF_MERGE 0
+#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE 1
+#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE 1
+#define USE_AS_TRADITIONAL_FORMAT 1
+#define HAVE_GAS_SHF_MERGE 1
 #define HAVE_COMDAT_GROUP 0
+#define HAVE_GAS_DISCRIMINATOR 1
+#define HAVE_AS_TLS 1
 #define HAVE_LTO_PLUGIN 0
+#define HAVE_AS_NO_SHARED 1
+#define HAVE_AS_GNU_ATTRIBUTE 1
+#define HAVE_GAS_MICROMIPS 1
+#define HAVE_AS_DTPRELWORD 1
+#define HAVE_AS_DSPR1_MULT 1
+#define HAVE_AS_NAN 1
+#define HAVE_AS_GDWARF2_DEBUG_FLAG 1
+#define HAVE_AS_GSTABS_DEBUG_FLAG 1
+#define HAVE_AS_DEBUG_PREFIX_MAP 1
+#define HAVE_AS_LINE_ZERO 1
 #define HAVE_LD_EH_FRAME_CIEV3 0
 #define ENABLE_LTO 1


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-03-25 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #8 from Andrew Pinski pinskia at gcc dot gnu.org ---
Works for me with an unmodified GCC 4.8.2.

So please try removing all of the Open-embedded patches since one of them is
causing this bug.


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-03-25 Thread hongxu.jia at windriver dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

--- Comment #10 from hongxu jia hongxu.jia at windriver dot com ---
(In reply to Andrew Pinski from comment #8)
 Works for me with an unmodified GCC 4.8.2.
 
 So please try removing all of the Open-embedded patches since one of them is
 causing this bug.

I have removed all of the Open-embedded patches, and cross-compiling
mip-gcc on x86-64 host. But the problem still existed.

//Hongxu


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-03-24 Thread hongxu.jia at windriver dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

hongxu jia hongxu.jia at windriver dot com changed:

   What|Removed |Added

 Target||mips-wrs-linux
   Host||x86_64-linux
  Build||x86_64-linux

--- Comment #1 from hongxu jia hongxu.jia at windriver dot com ---
Build Configuration:
BUILD_SYS = x86_64-linux
NATIVELSBSTRING   = Ubuntu-12.04
TARGET_SYS= mips-wrs-linux


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-03-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

--- Comment #2 from Andrew Pinski pinskia at gcc dot gnu.org ---
Is this with or without the open-embedded patches?


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-03-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

--- Comment #3 from Andrew Pinski pinskia at gcc dot gnu.org ---
It works for me in modified version of GCC 4.9.


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-03-24 Thread hongxu.jia at windriver dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

--- Comment #4 from hongxu jia hongxu.jia at windriver dot com ---
Created attachment 32441
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32441action=edit
the open-embedded patches


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-03-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

--- Comment #5 from Andrew Pinski pinskia at gcc dot gnu.org ---
Can you try without the OE patches first?


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-03-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

--- Comment #6 from Andrew Pinski pinskia at gcc dot gnu.org ---
It works with an unmodified:
xgcc (GCC) 4.9.0 20140317 (experimental) [trunk revision 208625]

Compiled for mips64-linux-gnu and using -mabi=32.


[Bug debug/60643] ICE with -O1 and -g on mips (internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810)

2014-03-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643

--- Comment #7 from Andrew Pinski pinskia at gcc dot gnu.org ---
Here is my configure line:
Configured with: /home/apinski/src/gcc-fsf/local//gcc/configure
--prefix=/home/apinski/local-gcc-mips --target=mips64-linux-gnu --with-mips-plt
--with-arch=octeon+ --with-float=soft
--with-sysroot=/home/apinski/local-gcc-mips/mips64-linux/sys-root/