Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 157792

Summary: internal compiler error: in make_decl_rtl, at varasm.c:868
Product: [Fedora] Fedora Reporter: Petr Vandrovec <vandrove>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: 4.0.0-6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-17 07:44:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Vandrovec 2005-05-15 17:18:07 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1

Description of problem:
gcc-4 fails to compile correct code with ICE in make_decl_rtl.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
petr-lx:/tmp$ /usr/bin/gcc -O2 bad.c
bad.c:14: internal compiler error: in make_decl_rtl, at varasm.c:868
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.
Preprocessed source stored into /tmp/ccayquSO.out file, please attach this to your bugreport.
petr-lx:/tmp$ cat /tmp/ccayquSO.out
// /usr/libexec/gcc/i386-redhat-linux/4.0.0/cc1 -quiet bad.c -quiet -dumpbase bad.c -auxbase bad -O2 -o - -frandom-seed=0
# 1 "bad.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "bad.c"
struct inner {
   char item;
struct outer {
   struct inner member;

struct inner * const ptr = (&((struct outer * const) (0x40000000))->member);

   ptr->item = 0;
petr-lx:/tmp$ /usr/bin/gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj- --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.0 20050512 (Red Hat 4.0.0-5)

Actual Results:  gcc crashes with ICE as shown above.

Expected Results:  gcc producing correct code - like what happens without using '-O2'.

Additional info:

Comment 1 Jakub Jelinek 2005-05-17 07:44:02 UTC
Should be fixed in gcc-4.0.0-6.