public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36154] New: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727
@ 2008-05-06 12:46 patrick at motec dot com dot au
2008-05-06 12:47 ` [Bug c/36154] " patrick at motec dot com dot au
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: patrick at motec dot com dot au @ 2008-05-06 12:46 UTC (permalink / raw)
To: gcc-bugs
I'm encountering an internal compiler error with the gcc 4.3.0 release. I don't
think this is a duplicate of any other bugs.
Here is the command and subsequent output:
powerpc-eabispe-gcc -I../ -I/home/patrick/src/e7/prex
-I/home/patrick/src/e7/prex/usr/include -I/home/patrick/src/e7/prex/include
-nostdinc -fsingle-precision-constant -mabi=no-spe -gdwarf-2 -Os -ansi
-fno-strict-aliasing -Wall -Wundef -Wstrict-prototypes -Wpointer-arith
-std=gnu99 -fno-stack-protector -Wno-variadic-macros -D__ppc__ -D__e7__
-D__ARCH__=ppc -D__PLATFORM__=e7 -Uppc -Ue7 -fno-omit-frame-pointer -DDEBUG -g
-Wsign-compare -Werror-implicit-function-declaration -I../comms/lwip/include
-I../comms/lwip/prex/include -I../comms/lwip/include/ipv4 -v -save-temps
-I../include -c -o ../test/test_xcp_eth.o test_xcp_eth.c
Using built-in specs.
Target: powerpc-eabispe
Configured with: /home/patrick/src/e7/toolchain/src/gcc-4.3.0/configure
--prefix=/home/patrick/src/e7/toolchain/stage2 --build=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --target=powerpc-eabispe --enable-languages=c
--disable-nls --disable-multilib --disable-werror --with-newlib
--disable-shared --disable-debug --disable-libssp
Thread model: single
gcc version 4.3.0 (GCC)
COLLECT_GCC_OPTIONS='-I../' '-I/home/patrick/src/e7/prex'
'-I/home/patrick/src/e7/prex/usr/include' '-I/home/patrick/src/e7/prex/include'
'-nostdinc' '-fsingle-precision-constant' '-mabi=no-spe' '-gdwarf-2' '-Os'
'-ansi' '-fno-strict-aliasing' '-Wall' '-Wundef' '-Wstrict-prototypes'
'-Wpointer-arith' '-std=gnu99' '-fno-stack-protector' '-Wno-variadic-macros'
'-D__ppc__' '-D__e7__' '-D__ARCH__=ppc' '-D__PLATFORM__=e7' '-Uppc' '-Ue7'
'-fno-omit-frame-pointer' '-DDEBUG' '-g' '-Wsign-compare'
'-Werror-implicit-function-declaration' '-I../comms/lwip/include'
'-I../comms/lwip/prex/include' '-I../comms/lwip/include/ipv4' '-v'
'-save-temps' '-I../include' '-c' '-o' '../test/test_xcp_eth.o'
/home/patrick/src/e7/toolchain/stage2/libexec/gcc/powerpc-eabispe/4.3.0/cc1 -E
-quiet -nostdinc -v -I../ -I/home/patrick/src/e7/prex
-I/home/patrick/src/e7/prex/usr/include -I/home/patrick/src/e7/prex/include
-I../comms/lwip/include -I../comms/lwip/prex/include
-I../comms/lwip/include/ipv4 -I../include -D__ppc__ -D__e7__ -D__ARCH__=ppc
-D__PLATFORM__=e7 -Uppc -Ue7 -DDEBUG test_xcp_eth.c -mabi=no-spe -ansi
-std=gnu99 -Wall -Wundef -Wstrict-prototypes -Wpointer-arith
-Wno-variadic-macros -Wsign-compare -Werror-implicit-function-declaration
-fsingle-precision-constant -fno-strict-aliasing -fno-stack-protector
-fno-omit-frame-pointer -fworking-directory -Os -fpch-preprocess -o
test_xcp_eth.i
#include "..." search starts here:
#include <...> search starts here:
../
/home/patrick/src/e7/prex
/home/patrick/src/e7/prex/usr/include
/home/patrick/src/e7/prex/include
../comms/lwip/include
../comms/lwip/prex/include
../comms/lwip/include/ipv4
../include
End of search list.
COLLECT_GCC_OPTIONS='-I../' '-I/home/patrick/src/e7/prex'
'-I/home/patrick/src/e7/prex/usr/include' '-I/home/patrick/src/e7/prex/include'
'-nostdinc' '-fsingle-precision-constant' '-mabi=no-spe' '-gdwarf-2' '-Os'
'-ansi' '-fno-strict-aliasing' '-Wall' '-Wundef' '-Wstrict-prototypes'
'-Wpointer-arith' '-std=gnu99' '-fno-stack-protector' '-Wno-variadic-macros'
'-D__ppc__' '-D__e7__' '-D__ARCH__=ppc' '-D__PLATFORM__=e7' '-Uppc' '-Ue7'
'-fno-omit-frame-pointer' '-DDEBUG' '-g' '-Wsign-compare'
'-Werror-implicit-function-declaration' '-I../comms/lwip/include'
'-I../comms/lwip/prex/include' '-I../comms/lwip/include/ipv4' '-v'
'-save-temps' '-I../include' '-c' '-o' '../test/test_xcp_eth.o'
/home/patrick/src/e7/toolchain/stage2/libexec/gcc/powerpc-eabispe/4.3.0/cc1
-fpreprocessed test_xcp_eth.i -quiet -dumpbase test_xcp_eth.c -mabi=no-spe
-ansi -auxbase-strip ../test/test_xcp_eth.o -gdwarf-2 -g -Os -Wall -Wundef
-Wstrict-prototypes -Wpointer-arith -Wno-variadic-macros -Wsign-compare
-Werror-implicit-function-declaration -ansi -std=gnu99 -version
-fsingle-precision-constant -fno-strict-aliasing -fno-stack-protector
-fno-omit-frame-pointer -o test_xcp_eth.s
GNU C (GCC) version 4.3.0 (powerpc-eabispe)
compiled by GNU C version 4.2.3 (Ubuntu 4.2.3-2ubuntu7), GMP version
4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: d72f763bda0b53028b002e23e9bbb24c
test_xcp_eth.c: In function 'cmd_unaligned':
test_xcp_eth.c:68: internal compiler error: in
get_constraint_for_component_ref, at tree-ssa-structalias.c:2727
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: internal compiler error: in
get_constraint_for_component_ref, at tree-ssa-
structalias.c:2727
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: patrick at motec dot com dot au
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: powerpc-eabispe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36154
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/36154] internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727
2008-05-06 12:46 [Bug c/36154] New: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727 patrick at motec dot com dot au
@ 2008-05-06 12:47 ` patrick at motec dot com dot au
2008-05-06 15:25 ` [Bug middle-end/36154] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: patrick at motec dot com dot au @ 2008-05-06 12:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from patrick at motec dot com dot au 2008-05-06 12:46 -------
Created an attachment (id=15586)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15586&action=view)
preprocessed source
preprocessed source for the file that causes the bug, as required by bug
writing guidelines!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36154
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36154] internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727
2008-05-06 12:46 [Bug c/36154] New: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727 patrick at motec dot com dot au
2008-05-06 12:47 ` [Bug c/36154] " patrick at motec dot com dot au
@ 2008-05-06 15:25 ` pinskia at gcc dot gnu dot org
2008-05-07 19:57 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-05-06 15:25 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36154
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36154] internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727
2008-05-06 12:46 [Bug c/36154] New: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727 patrick at motec dot com dot au
2008-05-06 12:47 ` [Bug c/36154] " patrick at motec dot com dot au
2008-05-06 15:25 ` [Bug middle-end/36154] " pinskia at gcc dot gnu dot org
@ 2008-05-07 19:57 ` rguenth at gcc dot gnu dot org
2008-05-07 20:05 ` [Bug middle-end/36154] [4.3 Regression] " rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-05-07 19:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2008-05-07 19:56 -------
Reducing.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36154
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36154] [4.3 Regression] internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727
2008-05-06 12:46 [Bug c/36154] New: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727 patrick at motec dot com dot au
` (2 preceding siblings ...)
2008-05-07 19:57 ` rguenth at gcc dot gnu dot org
@ 2008-05-07 20:05 ` rguenth at gcc dot gnu dot org
2008-05-07 20:08 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-05-07 20:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-05-07 20:04 -------
Reduced testcase, fails at -O:
struct eth_test_pkt {
unsigned short len;
unsigned short ctr;
unsigned char packet[];
} __attribute__ ((packed));
struct eth_test_pkt pkt_unaligned = { .packet = { 0xFC } };
int cmd_unaligned(const void *p)
{
return memcmp(p, pkt_unaligned.packet, 1);
}
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC build triplet|x86_64-unknown-linux-gnu |
GCC host triplet|x86_64-unknown-linux-gnu |
GCC target triplet|powerpc-eabispe |
Keywords| |ice-on-valid-code
Known to fail| |4.3.0
Known to work| |4.2.3 4.4.0
Last reconfirmed|0000-00-00 00:00:00 |2008-05-07 20:04:30
date| |
Summary|internal compiler error: in |[4.3 Regression] internal
|get_constraint_for_component|compiler error: in
|_ref, at tree-ssa- |get_constraint_for_component
|structalias.c:2727 |_ref, at tree-ssa-
| |structalias.c:2727
Target Milestone|--- |4.3.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36154
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36154] [4.3 Regression] internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727
2008-05-06 12:46 [Bug c/36154] New: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727 patrick at motec dot com dot au
` (3 preceding siblings ...)
2008-05-07 20:05 ` [Bug middle-end/36154] [4.3 Regression] " rguenth at gcc dot gnu dot org
@ 2008-05-07 20:08 ` rguenth at gcc dot gnu dot org
2008-05-08 8:22 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-05-07 20:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2008-05-07 20:07 -------
We don't generate _any_ fields for packet, but the memcmp is folded to
<bb 2>:
p.0_2 = (const unsigned char * {ref-all}) p_1(D);
D.1186_3 = *p.0_2;
D.1187_4 = (int) D.1186_3;
D.1188_5 = (const unsigned char * {ref-all}) &pkt_unaligned.packet;
D.1189_6 = *D.1188_5;
D.1190_7 = (int) D.1189_6;
D.1184_8 = D.1187_4 - D.1190_7;
return D.1184_8;
taking the address of the missing field. This has gone "latent" on the
trunk by not generating subvariables for PTA anymore.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2008-05-07 20:04:30 |2008-05-07 20:07:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36154
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36154] [4.3 Regression] internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727
2008-05-06 12:46 [Bug c/36154] New: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727 patrick at motec dot com dot au
` (4 preceding siblings ...)
2008-05-07 20:08 ` rguenth at gcc dot gnu dot org
@ 2008-05-08 8:22 ` rguenth at gcc dot gnu dot org
2008-05-08 8:25 ` rguenth at gcc dot gnu dot org
2008-05-08 8:30 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-05-08 8:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2008-05-08 08:21 -------
Subject: Bug 36154
Author: rguenth
Date: Thu May 8 08:20:45 2008
New Revision: 135071
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135071
Log:
2008-05-08 Richard Guenther <rguenther@suse.de>
PR middle-end/36154
* tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
sure to create a representative for trailing arrays for PTA.
* gcc.c-torture/compile/pr36154.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr36154.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-structalias.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36154
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36154] [4.3 Regression] internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727
2008-05-06 12:46 [Bug c/36154] New: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727 patrick at motec dot com dot au
` (5 preceding siblings ...)
2008-05-08 8:22 ` rguenth at gcc dot gnu dot org
@ 2008-05-08 8:25 ` rguenth at gcc dot gnu dot org
2008-05-08 8:30 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-05-08 8:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2008-05-08 08:24 -------
Subject: Bug 36154
Author: rguenth
Date: Thu May 8 08:23:59 2008
New Revision: 135072
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135072
Log:
2008-05-08 Richard Guenther <rguenther@suse.de>
PR middle-end/36154
* tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
sure to create a representative for trailing arrays for PTA.
* gcc.c-torture/compile/pr36154.c: New testcase.
2008-05-08 Richard Guenther <rguenther@suse.de>
PR middle-end/36172
* fold-const.c (operand_equal_p): Two objects which types
differ in pointerness are not equal.
* gcc.c-torture/compile/pr36172.c: New testcase.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/compile/pr36154.c
- copied unchanged from r135071,
trunk/gcc/testsuite/gcc.c-torture/compile/pr36154.c
branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/compile/pr36172.c
- copied unchanged from r135071,
trunk/gcc/testsuite/gcc.c-torture/compile/pr36172.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/fold-const.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
branches/gcc-4_3-branch/gcc/tree-ssa-structalias.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36154
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36154] [4.3 Regression] internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727
2008-05-06 12:46 [Bug c/36154] New: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727 patrick at motec dot com dot au
` (6 preceding siblings ...)
2008-05-08 8:25 ` rguenth at gcc dot gnu dot org
@ 2008-05-08 8:30 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-05-08 8:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2008-05-08 08:29 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36154
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-05-08 8:30 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-06 12:46 [Bug c/36154] New: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:2727 patrick at motec dot com dot au
2008-05-06 12:47 ` [Bug c/36154] " patrick at motec dot com dot au
2008-05-06 15:25 ` [Bug middle-end/36154] " pinskia at gcc dot gnu dot org
2008-05-07 19:57 ` rguenth at gcc dot gnu dot org
2008-05-07 20:05 ` [Bug middle-end/36154] [4.3 Regression] " rguenth at gcc dot gnu dot org
2008-05-07 20:08 ` rguenth at gcc dot gnu dot org
2008-05-08 8:22 ` rguenth at gcc dot gnu dot org
2008-05-08 8:25 ` rguenth at gcc dot gnu dot org
2008-05-08 8:30 ` rguenth at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).