public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746
@ 2007-11-15 19:32 dirtyepic at gentoo dot org
2007-11-15 19:35 ` [Bug c/34113] " dirtyepic at gentoo dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: dirtyepic at gentoo dot org @ 2007-11-15 19:32 UTC (permalink / raw)
To: gcc-bugs
while compiling xorg-server-1.4 with GCC trunk rev 130172.
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -DHAVE_DIX_CONFIG_H
-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE
-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -DDBUS_API_SUBJECT_TO_CHANGE
-I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/hal
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I../include -I../include
-I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi
-I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -O2 -g
-march=native -fomit-frame-pointer -pipe -MT access.lo -MD -MP -MF
.deps/access.Tpo -c access.c -fPIC -DPIC -o .libs/access.o
access.c: In function 'siHostnameAddrMatch':
access.c:2115: warning: assignment from incompatible pointer type
access.c: In function 'InvalidHost':
access.c:1767: warning: 'addr' may be used uninitialized in this function
access.c: In function 'DefineSelf':
access.c:718: internal compiler error: in get_addr_dereference_operands, at
tree-ssa-operands.c:1746
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [access.lo] Error 1
# gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.3.0_pre20071113/work/gcc-4.3.0-20071113/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.0-pre20071113
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-pre20071113/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.0-pre20071113
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.0-pre20071113/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.0-pre20071113/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-pre20071113/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-nls --with-system-zlib --disable-checking --disable-werror
--enable-secureplt --disable-libunwind-exceptions --enable-multilib
--disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu
Thread model: posix
gcc version 4.3.0-pre20071113 (experimental) (GCC)
--
Summary: ICE in get_addr_dereference_operands, at tree-ssa-
operands.c:1746
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dirtyepic at gentoo dot org
GCC build triplet: x86_64-pc-linux-gnu
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34113
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/34113] ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746
2007-11-15 19:32 [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746 dirtyepic at gentoo dot org
@ 2007-11-15 19:35 ` dirtyepic at gentoo dot org
2007-11-15 20:06 ` dirtyepic at gentoo dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: dirtyepic at gentoo dot org @ 2007-11-15 19:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dirtyepic at gentoo dot org 2007-11-15 19:34 -------
Created an attachment (id=14560)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14560&action=view)
access-min.i
preprocessed source reduced by delta.
# gcc -v -O2 access-min.i
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.3.0_pre20071113/work/gcc-4.3.0-20071113/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.0-pre20071113
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-pre20071113/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.0-pre20071113
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.0-pre20071113/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.0-pre20071113/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-pre20071113/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-nls --with-system-zlib --disable-checking --disable-werror
--enable-secureplt --disable-libunwind-exceptions --enable-multilib
--disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu
Thread model: posix
gcc version 4.3.0-pre20071113 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-O2' '-mtune=generic'
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.3.0-pre20071113/cc1 -fpreprocessed
access-min.i -quiet -dumpbase access-min.i -mtune=generic -auxbase access-min
-O2 -version -o /tmp/cc45MInZ.s
GNU C (GCC) version 4.3.0-pre20071113 (experimental) (x86_64-pc-linux-gnu)
compiled by GNU C version 4.3.0-pre20071113 (experimental), GMP
version 4.2.2, MPFR version 2.3.0-p3.
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128180
Compiler executable checksum: bdea9186cf5370f8e72d4207bcebdb8c
access-min.i:38: warning: data definition has no type or storage class
access-min.i:152: warning: 'struct stat64' declared inside parameter list
access-min.i:152: warning: its scope is only this definition or declaration,
which is probably not what you want
access-min.i:155: warning: 'struct stat64' declared inside parameter list
access-min.i:183: warning: '__transparent_union__' attribute ignored
access-min.i:320: warning: 'struct cmsghdr' declared inside parameter list
access-min.i:322: warning: 'struct cmsghdr' declared inside parameter list
access-min.i:325: warning: 'struct cmsghdr' declared inside parameter list
access-min.i:355: warning: 'struct rpcent' declared inside parameter list
access-min.i:357: warning: 'struct rpcent' declared inside parameter list
access-min.i:381: warning: 'struct protoent' declared inside parameter list
access-min.i:405: warning: parameter names (without types) in function
declaration
access-min.i:483: warning: parameter names (without types) in function
declaration
access-min.i:502: warning: parameter names (without types) in function
declaration
access-min.i: In function 'ResetHosts':
access-min.i:610: warning: assignment makes pointer from integer without a cast
access-min.i:611: warning: assignment makes pointer from integer without a cast
access-min.i: In function 'siTypeAdd':
access-min.i:736: warning: incompatible implicit declaration of built-in
function 'strlen'
access-min.i: In function 'siCheckAddr':
access-min.i:747: warning: incompatible implicit declaration of built-in
function 'strlen'
access-min.i: In function 'siHostnameAddrMatch':
access-min.i:760: warning: assignment makes pointer from integer without a cast
access-min.i: In function 'siLocalCredGetId':
access-min.i:798: warning: initialization makes pointer from integer without a
cast
access-min.i:804: warning: initialization makes pointer from integer without a
cast
access-min.i: In function 'AccessUsingXdmcp':
access-min.i:560: internal compiler error: in get_addr_dereference_operands, at
tree-ssa-operands.c:1746
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34113
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/34113] ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746
2007-11-15 19:32 [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746 dirtyepic at gentoo dot org
2007-11-15 19:35 ` [Bug c/34113] " dirtyepic at gentoo dot org
@ 2007-11-15 20:06 ` dirtyepic at gentoo dot org
2007-11-15 20:40 ` [Bug tree-optimization/34113] [4.3 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: dirtyepic at gentoo dot org @ 2007-11-15 20:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dirtyepic at gentoo dot org 2007-11-15 20:06 -------
Created an attachment (id=14561)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14561&action=view)
access-mini.i
further reduced.
--
dirtyepic at gentoo dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #14560|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34113
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34113] [4.3 Regression] ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746
2007-11-15 19:32 [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746 dirtyepic at gentoo dot org
2007-11-15 19:35 ` [Bug c/34113] " dirtyepic at gentoo dot org
2007-11-15 20:06 ` dirtyepic at gentoo dot org
@ 2007-11-15 20:40 ` pinskia at gcc dot gnu dot org
2007-11-16 10:40 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-15 20:40 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE in |[4.3 Regression] ICE in
|get_addr_dereference_operand|get_addr_dereference_operand
|s, at tree-ssa- |s, at tree-ssa-
|operands.c:1746 |operands.c:1746
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34113
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34113] [4.3 Regression] ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746
2007-11-15 19:32 [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746 dirtyepic at gentoo dot org
` (2 preceding siblings ...)
2007-11-15 20:40 ` [Bug tree-optimization/34113] [4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2007-11-16 10:40 ` rguenth at gcc dot gnu dot org
2007-11-16 11:04 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-16 10:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2007-11-16 10:40 -------
We have a non-gimple stmt here
#1 0x00000000009fdcb2 in get_addr_dereference_operands (stmt=0x2ba0470db210,
addr=0x2ba0470dd070, flags=0, full_ref=0x2ba0470dd040, offset=0, size=-1,
recurse_on_base=1 '\001')
at /space/rguenther/src/svn/trunk/gcc/tree-ssa-operands.c:1686
1686 gcc_unreachable ();
(gdb) call debug_generic_expr (stmt)
# VUSE <SMT.12_30(D)> { SMT.12 }
D.1580_9 = *&saddr.3_22->sin_addr
which might actually be my bug if that is from forward-propagation. It is.
--
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|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-11-16 10:40:41
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34113
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34113] [4.3 Regression] ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746
2007-11-15 19:32 [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746 dirtyepic at gentoo dot org
` (3 preceding siblings ...)
2007-11-16 10:40 ` rguenth at gcc dot gnu dot org
@ 2007-11-16 11:04 ` rguenth at gcc dot gnu dot org
2007-11-16 13:14 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-16 11:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2007-11-16 11:03 -------
We have wrong types in the IL before forwprop3:
struct sockaddr_in * saddr.3;
struct in_addr * D.1627;
unsigned char * addr;
unsigned char D.1580;
...
<L13>:;
saddr.3_22 = (struct sockaddr_in *) D.1577_5;
D.1627_23 = &saddr.3_22->sin_addr;
addr_4 = D.1627_23;
D.1580_9 = *addr_4;
the conversion between D.1627_23 and addr_4 is not useless.
Reduced testcase:
struct sockaddr_in { int sin_addr; };
static void ConvertAddr (struct sockaddr_in *saddr, void **addr)
{
*addr = (void *) &saddr->sin_addr;
}
unsigned char EnableLocalHost (struct sockaddr_in *ifa_addr)
{
unsigned char * addr;
ConvertAddr(ifa_addr, (void **)&addr);
return addr[0];
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34113
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34113] [4.3 Regression] ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746
2007-11-15 19:32 [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746 dirtyepic at gentoo dot org
` (4 preceding siblings ...)
2007-11-16 11:04 ` rguenth at gcc dot gnu dot org
@ 2007-11-16 13:14 ` rguenth at gcc dot gnu dot org
2007-11-16 13:15 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-16 13:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2007-11-16 13:14 -------
Subject: Bug 34113
Author: rguenth
Date: Fri Nov 16 13:14:03 2007
New Revision: 130223
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130223
Log:
2007-11-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/34113
* tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
Use correct conversion direction for checking type compatibility.
* gcc.c-torture/compile/pr34113.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr34113.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-forwprop.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34113
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34113] [4.3 Regression] ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746
2007-11-15 19:32 [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746 dirtyepic at gentoo dot org
` (5 preceding siblings ...)
2007-11-16 13:14 ` rguenth at gcc dot gnu dot org
@ 2007-11-16 13:15 ` rguenth at gcc dot gnu dot org
2007-11-17 2:19 ` dirtyepic at gentoo dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-16 13:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2007-11-16 13:14 -------
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=34113
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34113] [4.3 Regression] ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746
2007-11-15 19:32 [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746 dirtyepic at gentoo dot org
` (6 preceding siblings ...)
2007-11-16 13:15 ` rguenth at gcc dot gnu dot org
@ 2007-11-17 2:19 ` dirtyepic at gentoo dot org
2007-11-17 12:40 ` rguenth at gcc dot gnu dot org
2007-11-17 13:05 ` rguenth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: dirtyepic at gentoo dot org @ 2007-11-17 2:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from dirtyepic at gentoo dot org 2007-11-17 02:19 -------
Confirmed, thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34113
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34113] [4.3 Regression] ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746
2007-11-15 19:32 [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746 dirtyepic at gentoo dot org
` (7 preceding siblings ...)
2007-11-17 2:19 ` dirtyepic at gentoo dot org
@ 2007-11-17 12:40 ` rguenth at gcc dot gnu dot org
2007-11-17 13:05 ` rguenth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-17 12:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2007-11-17 12:40 -------
*** Bug 34127 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rwgk at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34113
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34113] [4.3 Regression] ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746
2007-11-15 19:32 [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746 dirtyepic at gentoo dot org
` (8 preceding siblings ...)
2007-11-17 12:40 ` rguenth at gcc dot gnu dot org
@ 2007-11-17 13:05 ` rguenth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-17 13:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from rguenth at gcc dot gnu dot org 2007-11-17 13:04 -------
*** Bug 34131 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gregoire dot favre at gmail
| |dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34113
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-11-17 13:04 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-15 19:32 [Bug c/34113] New: ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1746 dirtyepic at gentoo dot org
2007-11-15 19:35 ` [Bug c/34113] " dirtyepic at gentoo dot org
2007-11-15 20:06 ` dirtyepic at gentoo dot org
2007-11-15 20:40 ` [Bug tree-optimization/34113] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-11-16 10:40 ` rguenth at gcc dot gnu dot org
2007-11-16 11:04 ` rguenth at gcc dot gnu dot org
2007-11-16 13:14 ` rguenth at gcc dot gnu dot org
2007-11-16 13:15 ` rguenth at gcc dot gnu dot org
2007-11-17 2:19 ` dirtyepic at gentoo dot org
2007-11-17 12:40 ` rguenth at gcc dot gnu dot org
2007-11-17 13:05 ` 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).