* [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 16:53 [Bug middle-end/55381] New: [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c hp at gcc dot gnu.org
@ 2012-11-18 17:04 ` hp at gcc dot gnu.org
2012-11-18 19:48 ` hp at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu.org @ 2012-11-18 17:04 UTC (permalink / raw)
To: gcc-bugs
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
vec<T, 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(vec<T, va_heap, vl_embed>*&, unsigned int, bool) [with T =
mapping*]'
/tmp/hpautotest-gcc0/gcc/gcc/vec.h:1445: instantiated from 'bool vec<T, A,
vl_ptr>::reserve(unsigned int, bool) [with T = mapping*, A = va_heap]'
/tmp/hpautotest-gcc0/gcc/gcc/vec.h:1540: instantiated from 'T* vec<T, 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 'vec<mapping*, va_heap, vl_embed>::data_' of NULL object
/tmp/hpautotest-gcc0/gcc/gcc/vec.h:1069: warning: (perhaps the 'offsetof' macro
was used incorrectly)
^ permalink raw reply [flat|nested] 12+ messages in thread
* [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 16:53 [Bug middle-end/55381] New: [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c hp at gcc dot gnu.org
2012-11-18 17:04 ` [Bug middle-end/55381] " hp at gcc dot gnu.org
@ 2012-11-18 19:48 ` hp at gcc dot gnu.org
2012-11-18 20:17 ` hp at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu.org @ 2012-11-18 19:48 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [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 16:53 [Bug middle-end/55381] New: [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c hp at gcc dot gnu.org
2012-11-18 17:04 ` [Bug middle-end/55381] " hp at gcc dot gnu.org
2012-11-18 19:48 ` hp at gcc dot gnu.org
@ 2012-11-18 20:17 ` hp at gcc dot gnu.org
2012-11-19 5:46 ` venkataramanan.kumar at amd dot com
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu.org @ 2012-11-18 20:17 UTC (permalink / raw)
To: gcc-bugs
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...
^ permalink raw reply [flat|nested] 12+ messages in thread
* [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 16:53 [Bug middle-end/55381] New: [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c hp at gcc dot gnu.org
` (2 preceding siblings ...)
2012-11-18 20:17 ` hp at gcc dot gnu.org
@ 2012-11-19 5:46 ` venkataramanan.kumar at amd dot com
2012-11-19 17:50 ` pthaugen at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: venkataramanan.kumar at amd dot com @ 2012-11-19 5:46 UTC (permalink / raw)
To: gcc-bugs
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]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [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 16:53 [Bug middle-end/55381] New: [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c hp at gcc dot gnu.org
` (3 preceding siblings ...)
2012-11-19 5:46 ` venkataramanan.kumar at amd dot com
@ 2012-11-19 17:50 ` pthaugen at gcc dot gnu.org
2012-11-19 22:08 ` bergner at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pthaugen at gcc dot gnu.org @ 2012-11-19 17:50 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [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 16:53 [Bug middle-end/55381] New: [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c hp at gcc dot gnu.org
` (4 preceding siblings ...)
2012-11-19 17:50 ` pthaugen at gcc dot gnu.org
@ 2012-11-19 22:08 ` bergner at gcc dot gnu.org
2012-11-20 13:02 ` schwab@linux-m68k.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bergner at gcc dot gnu.org @ 2012-11-19 22:08 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [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 16:53 [Bug middle-end/55381] New: [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c hp at gcc dot gnu.org
` (5 preceding siblings ...)
2012-11-19 22:08 ` bergner at gcc dot gnu.org
@ 2012-11-20 13:02 ` schwab@linux-m68k.org
2012-11-20 16:51 ` dnovillo at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: schwab@linux-m68k.org @ 2012-11-20 13:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381
--- Comment #7 from Andreas Schwab <schwab@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
}
^
0x40000000008bc6cf crash_signal
../../gcc/toplev.c:334
0x4000000000cb49bf vec<rtx_def*, va_stack, vl_ptr>::reserve(unsigned int, bool)
../../gcc/vec.h:1443
0x4000000000cb49bf vec<rtx_def*, va_stack, vl_ptr>::safe_push(rtx_def* const&)
../../gcc/vec.h:1540
0x4000000000cb49bf values_to_stack
../../gcc/var-tracking.c:8585
0x4000000001083dcf htab_traverse_noresize
../../libiberty/hashtab.c:784
0x4000000000cabdbf process_changed_values
../../gcc/var-tracking.c:8704
0x4000000000cac1bf emit_notes_for_changes
../../gcc/var-tracking.c:8743
0x4000000000cadaaf emit_notes_for_differences
../../gcc/var-tracking.c:8863
0x4000000000cadaaf vt_emit_notes
../../gcc/var-tracking.c:9238
0x4000000000cb476f variable_tracking_main_1
../../gcc/var-tracking.c:10066
0x4000000000cb476f variable_tracking_main()
../../gcc/var-tracking.c:10080
0x4000000000d0254f ia64_reorg
../../gcc/config/ia64/ia64.c:9798
0x40000000007fd05f rest_of_handle_machine_reorg
../../gcc/reorg.c:4152
^ permalink raw reply [flat|nested] 12+ messages in thread
* [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 16:53 [Bug middle-end/55381] New: [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c hp at gcc dot gnu.org
` (6 preceding siblings ...)
2012-11-20 13:02 ` schwab@linux-m68k.org
@ 2012-11-20 16:51 ` dnovillo at gcc dot gnu.org
2012-11-20 18:12 ` hp at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: dnovillo at gcc dot gnu.org @ 2012-11-20 16:51 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [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 16:53 [Bug middle-end/55381] New: [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c hp at gcc dot gnu.org
` (7 preceding siblings ...)
2012-11-20 16:51 ` dnovillo at gcc dot gnu.org
@ 2012-11-20 18:12 ` hp at gcc dot gnu.org
2012-11-25 15:55 ` rguenth at gcc dot gnu.org
2012-11-25 21:01 ` hp at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu.org @ 2012-11-20 18:12 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [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 16:53 [Bug middle-end/55381] New: [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c hp at gcc dot gnu.org
` (8 preceding siblings ...)
2012-11-20 18:12 ` hp at gcc dot gnu.org
@ 2012-11-25 15:55 ` rguenth at gcc dot gnu.org
2012-11-25 21:01 ` hp at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-11-25 15:55 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* [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 16:53 [Bug middle-end/55381] New: [4.8 Regression]: build fails on cris-elf building libgfortran with host-gcc-4.4, ICE compiling matmul_i1.c hp at gcc dot gnu.org
` (9 preceding siblings ...)
2012-11-25 15:55 ` rguenth at gcc dot gnu.org
@ 2012-11-25 21:01 ` hp at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu.org @ 2012-11-25 21:01 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 12+ messages in thread