Bug 41945 - [4.5 regression] tree_check failed
Summary: [4.5 regression] tree_check failed
Status: RESOLVED DUPLICATE of bug 41935
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: 4.5.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on: 41935
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-04 22:15 UTC by Jan Engelhardt
Modified: 2009-11-06 08:33 UTC (History)
4 users (show)

See Also:
Host:
Target: i586-suse-linux, x86_64-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed: 2009-11-06 08:33:28


Attachments
testcase (219 bytes, text/plain)
2009-11-04 22:16 UTC, Jan Engelhardt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Engelhardt 2009-11-04 22:15:31 UTC
While compiling kernel parts, I got an internal compile error. Testfile is attached.

$ gcc-4.5 -c ch.i -o ch.o
ch.i: In function ‘nf_ct_tuplehash_to_ctrack’:
ch.i:19:65: internal compiler error: tree check: expected integer_cst, have nop_expr in int_cst_value, at tree.c:9619
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.

gcc45 is from opensuse/repositories:/home/rguenther/openSUSE_11.1/i586.
The previously available RPM (20091029) did not have this issue.

GOOD: gcc version 4.5.0 20091029 (experimental) [trunk revision 153698] (SUSE Linux) 

BAD:
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-suse-linux/4.5/lto-wrapper
Target: i586-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=yes --with-gxx-include-dir=/usr/include/c++/4.5 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.5 --enable-linux-futex --without-system-libunwind --enable-gold --with-arch-32=i586 --with-tune=generic --build=i586-suse-linux
Thread model: posix
gcc version 4.5.0 20091103 (experimental) [trunk revision 153845] (SUSE Linux)
Comment 1 Jan Engelhardt 2009-11-04 22:16:06 UTC
Created attachment 18969 [details]
testcase
Comment 2 Richard Biener 2009-11-04 22:19:40 UTC
Likely a dup of PR41935
Comment 3 Andrew Pinski 2009-11-06 08:33:28 UTC
Front-end issue:
#3  0x000bd447 in fold_offsetof_1 (expr=0x42ff22c0, stop_ref=0x0) at /Users/apinski/src/change/gcc/gcc/c-common.c:8403
8403            HOST_WIDE_INT index = int_cst_value (t);
Comment 4 Andrew Pinski 2009-11-06 08:33:57 UTC
Yes it is a dup of bug 41935.

*** This bug has been marked as a duplicate of 41935 ***