Bug 110271

Summary: Internal compiler error
Product: Red Hat Enterprise Linux 3 Reporter: Tru Huynh <pasteur>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: 24876924
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-05 16:16:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
preprocessed file: deflate.i none

Description Tru Huynh 2003-11-17 19:28:34 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2)
Gecko/20030708

Description of problem:
rebulding gcc-3.2.3-20.src.rpm on x86_64 from taroon beta1
causes compiler fault



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

How reproducible:
Always

Steps to Reproduce:
1.install taroon beta
2.rpmbuild --rebuild gcc-3.2.3-20.src.rpm 
3.
    

Actual Results:  compiler dies

Expected Results:  no error

Additional info:

[tru@calimero zlib]$ rpm -q gcc
gcc-3.2.3-16
[tru@calimero zlib]$ gcc -v 
Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=x86_64-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-16)

[tru@calimero zlib]$ rpm -q binutils
binutils-2.14.90.0.4-24

[tru@calimero zlib]$ pwd
/home/tru/rpm/BUILD/gcc-3.2.3-20030829/obj-i686-redhat-linux/zlib
[tru@calimero zlib]$ gcc -DPACKAGE=\"zlib\" -DVERSION=\"1.1.3\"
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
-DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -DHAVE_UNISTD_H=1  -I. -I../../zlib
     -O2 -g -pipe -march=i686 -c ../../zlib/deflate.c
gcc: warning: -pipe ignored because -save-temps specified
../../zlib/deflate.c: In function `deflateEnd':
../../zlib/deflate.c:593: unrecognizable insn:
(insn 208 207 170 (set (reg:SI 92)
        (plus:SI (plus:SI (mult:SI (reg:SI 92)
                    (const_int 2 [0x2]))
                (reg:SI 92))
            (const_int -3 [0xfffffffffffffffd]))) -1 (insn_list 207 (nil))
    (nil))
../../zlib/deflate.c:593: Internal compiler error in extract_insn, at
recog.c:2149
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

Comment 1 Tru Huynh 2003-11-17 19:29:51 UTC
Created attachment 96025 [details]
preprocessed file: deflate.i

[tru@calimero zlib]$ gcc -save-temps  -DPACKAGE=\"zlib\" -DVERSION=\"1.1.3\"
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_MEMCPY=1 -DHAVE_STRERROR=1
-DHAVE_UNISTD_H=1  -I. -I../../zlib	 -O2 -g -pipe -march=i686 -c
../../zlib/deflate.c

Comment 2 Vladimir Makarov 2004-10-05 16:16:26 UTC
  It is strange.  The current redhat branch of gcc-3.2 (the rhel
compiler) does not support -macrh=i686 (-mtune and -mcpu).  It should
not support because x86_64 is a different architecture.  Probably the
customer used x86_64 in 32 bit mode.  In any case I've checked x86_64
(without -march=i686) and x86 (with -macrh=i686).  It seems that the
bug was fixed.  So I am closing the case.