[Bug middle-end/55381] [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c

2012-11-25 Thread rguenth at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381



Richard Biener rguenth at gcc dot gnu.org changed:



   What|Removed |Added



   Target Milestone|--- |4.8.0


[Bug middle-end/55381] [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c

2012-11-25 Thread hp at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381



Hans-Peter Nilsson hp at gcc dot gnu.org changed:



   What|Removed |Added



 Status|UNCONFIRMED |RESOLVED

 Resolution||FIXED



--- Comment #10 from Hans-Peter Nilsson hp at gcc dot gnu.org 2012-11-25 
21:01:27 UTC ---

(In reply to comment #9)

 Revision r193667 seems to have fixed this, not unexpectedly.



...so I just went ahead and closed this PR.


[Bug middle-end/55381] [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c

2012-11-20 Thread sch...@linux-m68k.org

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381

--- Comment #7 from Andreas Schwab sch...@linux-m68k.org 2012-11-20 13:01:31 
UTC ---
Also broken on ia64 with gcc 4.3.2.

/usr/local/gcc/test/Build/./gcc/xgcc -B/usr/local/gcc/test/Build/./gcc/
-B/usr/ia64-suse-linux/bin/ -B/usr/ia64-suse-linux/lib/ -isystem
/usr/ia64-suse-linux/include -isystem /usr/ia64-suse-linux/sys-include-O2
-g -O2  -O2 -g -DIN_GCC   -DUSE_LIBUNWIND_EXCEPTIONS -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-isystem ./include   -fPIC -DUSE_GAS_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector   -fPIC -DUSE_GAS_SYMVER -I. -I. -I../.././gcc
-I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc
-I../../../libgcc/../include  -DHAVE_CC_TLS  -o _mulvdi3.o -MT _mulvdi3.o -MD
-MP -MF _mulvdi3.dep -DL_mulvdi3 -c ../../../libgcc/libgcc2.c
-fvisibility=hidden -DHIDE_EXPORTS
../../../libgcc/libgcc2.c: In function ‘__mulvti3’:
../../../libgcc/libgcc2.c:397:1: internal compiler error: Segmentation fault
 }
 ^
0x408bc6cf crash_signal
../../gcc/toplev.c:334
0x40cb49bf vecrtx_def*, va_stack, vl_ptr::reserve(unsigned int, bool)
../../gcc/vec.h:1443
0x40cb49bf vecrtx_def*, va_stack, vl_ptr::safe_push(rtx_def* const)
../../gcc/vec.h:1540
0x40cb49bf values_to_stack
../../gcc/var-tracking.c:8585
0x41083dcf htab_traverse_noresize
../../libiberty/hashtab.c:784
0x40cabdbf process_changed_values
../../gcc/var-tracking.c:8704
0x40cac1bf emit_notes_for_changes
../../gcc/var-tracking.c:8743
0x40cadaaf emit_notes_for_differences
../../gcc/var-tracking.c:8863
0x40cadaaf vt_emit_notes
../../gcc/var-tracking.c:9238
0x40cb476f variable_tracking_main_1
../../gcc/var-tracking.c:10066
0x40cb476f variable_tracking_main()
../../gcc/var-tracking.c:10080
0x40d0254f ia64_reorg
../../gcc/config/ia64/ia64.c:9798
0x407fd05f rest_of_handle_machine_reorg
../../gcc/reorg.c:4152


[Bug middle-end/55381] [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c

2012-11-20 Thread dnovillo at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381



--- Comment #8 from Diego Novillo dnovillo at gcc dot gnu.org 2012-11-20 
16:50:00 UTC ---

I don't have access to old compilers locally.  I'm trying with a cross from one

of the sparc boxes in the farm that has gcc 4.3.2.


[Bug middle-end/55381] [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c

2012-11-20 Thread hp at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381



--- Comment #9 from Hans-Peter Nilsson hp at gcc dot gnu.org 2012-11-20 
18:11:10 UTC ---

(In reply to comment #8)

 I don't have access to old compilers locally.  I'm trying with a cross from 
 one

 of the sparc boxes in the farm that has gcc 4.3.2.



Revision r193667 seems to have fixed this, not unexpectedly.


[Bug middle-end/55381] [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c

2012-11-19 Thread pthaugen at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381



Pat Haugen pthaugen at gcc dot gnu.org changed:



   What|Removed |Added



 CC||pthaugen at gcc dot gnu.org



--- Comment #5 from Pat Haugen pthaugen at gcc dot gnu.org 2012-11-19 
17:49:21 UTC ---

I'm seeing the same failure for PowerPC build of trunk.


[Bug middle-end/55381] [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c

2012-11-19 Thread bergner at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381



Peter Bergner bergner at gcc dot gnu.org changed:



   What|Removed |Added



 CC||bergner at gcc dot gnu.org



--- Comment #6 from Peter Bergner bergner at gcc dot gnu.org 2012-11-19 
22:07:55 UTC ---

Minimal test case (with minimal options) reduced from matmul_i1.i:



[bergner@igoo pr55381]$ cat pr55381.i 

void

foo (char * dest, char s, long ycount)

{

  long y;

  for (y = 0; y  ycount; y++)

dest[y] = s;

}

[bergner@igoo pr55381]$

/home/bergner/gcc/build/gcc-fsf-mainline-asan-pthaugen/./gcc/xgcc

-B/home/bergner/gcc/build/gcc-fsf-mainline-asan-pthaugen/./gcc/

-ftree-vectorize -O1 -S pr55381.i 

xgcc: internal compiler error: Trace/breakpoint trap (program cc1)

0x100079a3 execute

/home/bergner/gcc/gcc-fsf-mainline-asan/gcc/gcc.c:2772

0x1000c8d7 do_spec(char const*)

/home/bergner/gcc/gcc-fsf-mainline-asan/gcc/gcc.c:4245

Please submit a full bug report,

with preprocessed source if appropriate.

Please include the complete backtrace with any bug report.

See http://gcc.gnu.org/bugs.html for instructions.



I saw this using a 4.4.6 based compiler.


[Bug middle-end/55381] [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c

2012-11-18 Thread hp at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381



--- Comment #1 from Hans-Peter Nilsson hp at gcc dot gnu.org 2012-11-18 
17:04:03 UTC ---

Random cutnpasted suspicious warning, maybe related:



g++ -c   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti

-fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual

-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros

-Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE -I.

-Ibuild -I/tmp/hpautotest-gcc0/gcc/gcc -I/tmp/hpautotest-gcc0/gcc/gcc/build

-I/tmp/hpautotest-gcc0/gcc/gcc/../include

-I/tmp/hpautotest-gcc0/gcc/gcc/../libcpp/include

-I/tmp/hpautotest-gcc0/cris-elf/gccobj/./gmp -I/tmp/hpautotest-gcc0/gcc/gmp

-I/tmp/hpautotest-gcc0/cris-elf/gccobj/./mpfr -I/tmp/hpautotest-gcc0/gcc/mpfr

-I/tmp/hpautotest-gcc0/gcc/mpc/src 

-I/tmp/hpautotest-gcc0/gcc/gcc/../libdecnumber

-I/tmp/hpautotest-gcc0/gcc/gcc/../libdecnumber/dpd -I../libdecnumber

-I/tmp/hpautotest-gcc0/gcc/gcc/../libbacktrace\

-o build/read-rtl.o /tmp/hpautotest-gcc0/gcc/gcc/read-rtl.c

In file included from /tmp/hpautotest-gcc0/gcc/gcc/rtl.h:29,

 from /tmp/hpautotest-gcc0/gcc/gcc/read-rtl.c:30:

/tmp/hpautotest-gcc0/gcc/gcc/vec.h: In static member function 'static size_t

vecT, A, vl_embed::embedded_size(unsigned int) [with T = mapping*, A =

va_heap]':

/tmp/hpautotest-gcc0/gcc/gcc/vec.h:299:   instantiated from 'static void

va_heap::reserve(vecT, va_heap, vl_embed*, unsigned int, bool) [with T =

mapping*]'

/tmp/hpautotest-gcc0/gcc/gcc/vec.h:1445:   instantiated from 'bool vecT, A,

vl_ptr::reserve(unsigned int, bool) [with T = mapping*, A = va_heap]'

/tmp/hpautotest-gcc0/gcc/gcc/vec.h:1540:   instantiated from 'T* vecT, A,

vl_ptr::safe_push(const T) [with T = mapping*, A = va_heap]'

/tmp/hpautotest-gcc0/gcc/gcc/read-rtl.c:389:   instantiated from here

/tmp/hpautotest-gcc0/gcc/gcc/vec.h:1069: warning: invalid access to non-static

data member 'vecmapping*, va_heap, vl_embed::data_'  of NULL object

/tmp/hpautotest-gcc0/gcc/gcc/vec.h:1069: warning: (perhaps the 'offsetof' macro

was used incorrectly)


[Bug middle-end/55381] [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c

2012-11-18 Thread hp at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381



--- Comment #2 from Hans-Peter Nilsson hp at gcc dot gnu.org 2012-11-18 
19:47:39 UTC ---

(In reply to comment #0)

 /tmp/hpautotest-gcc0/gcc/libgfortran/generated/matmul_i1.c:79:1: internal

 compiler error: Illegal instruction



Not observed with gcc-4.7.2-2.fc17.x86_64.



BTW, SIGILL sounds like it's forced by gcc in response to something it sees as

invalid, that must not be executed.


[Bug middle-end/55381] [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c

2012-11-18 Thread hp at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381



--- Comment #3 from Hans-Peter Nilsson hp at gcc dot gnu.org 2012-11-18 
20:17:24 UTC ---

(In reply to comment #2)

 (In reply to comment #0)

  /tmp/hpautotest-gcc0/gcc/libgfortran/generated/matmul_i1.c:79:1: internal

  compiler error: Illegal instruction

 

 Not observed with gcc-4.7.2-2.fc17.x86_64.



But does happen with gcc version 4.1.2 20070925 (Red Hat 4.1.2-33) as well as

gcc version 4.4.5 (Debian 4.4.5-8).



And those are the gcc versions I have at an arm-length.  There's more at CFarm,

but IIRC most of them are gcc-4.4 era and earlier.



Maybe there's some -fpermissive or -fno-strict-aliasing combo to stick there.

I don't really like the thought of raising the minimum gcc version already...


[Bug middle-end/55381] [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c

2012-11-18 Thread venkataramanan.kumar at amd dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381



Venkataramanan venkataramanan.kumar at amd dot com changed:



   What|Removed |Added



 CC||venkataramanan.kumar at amd

   ||dot com



--- Comment #4 from Venkataramanan venkataramanan.kumar at amd dot com 
2012-11-19 05:45:35 UTC ---

I could get this problem with my native build. 



gcc version used for build is 4.3.4 [gcc-4_3-branch revision 152973]