Bug 19129 - [3.4 Regression] gcc-3.4.4 ICE while building libobjc
Summary: [3.4 Regression] gcc-3.4.4 ICE while building libobjc
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.4.4
: P2 normal
Target Milestone: 3.4.4
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2004-12-22 08:50 UTC by namsh
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work: 4.0.0
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description namsh 2004-12-22 08:50:04 UTC
I checkout the gcc-3.4 branch today and try to build.
xgcc generated ICE while it try to build libobjc.

I tried to change/remove the compile options.
And I found the ICE was caused by '-march=athlon-xp'.
If I change it to '-march=athlon', No ICE.

Here is ICE msg:
=========================================================================
/home2/namsh/rpm/build/gcc/obj-athlon-redhat-linux/gcc/xgcc
-B/home2/namsh/rpm/build/gcc/obj-athlon-redhat-linux/gcc/
-B/usr/athlon-redhat-linux/bin/ -B/usr/athlon-redhat-linux/lib/ -isystem
/usr/athlon-redhat-linux/include -isystem /usr/athlon-redhat-linux/sys-include
-c -I. -I/home2/namsh/rpm/build/gcc/libobjc -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -DHAVE_GTHR_DEFAULT -DIN_GCC -DIN_TARGET_LIBS
-I/home2/namsh/rpm/build/gcc/libobjc/objc
-I/home2/namsh/rpm/build/gcc/libobjc/../gcc
-I/home2/namsh/rpm/build/gcc/libobjc/../gcc/config -I../../gcc
-I/home2/namsh/rpm/build/gcc/libobjc/../include
/home2/namsh/rpm/build/gcc/libobjc/sendmsg.c  -fPIC -DPIC -march=athlon-xp -o
.libs/sendmsg.o
/home2/namsh/rpm/build/gcc/libobjc/sendmsg.c:42:1: warning: "rtx" redefined
In file included from /home2/namsh/rpm/build/gcc/libobjc/sendmsg.c:31:
/home2/namsh/rpm/build/gcc/libobjc/../gcc/coretypes.h:58:1: warning: this is the
location of the previous definition
/home2/namsh/rpm/build/gcc/libobjc/sendmsg.c: In function `objc_msg_sendv':
/home2/namsh/rpm/build/gcc/libobjc/sendmsg.c:269: error: insn does not satisfy
its constraints:
(insn 104 73 105 0 (set (mem:DI (plus:SI (reg/f:SI 6 bp)
                (const_int -176 [0xffffff50])) [0 S8 A8])
        (reg:DI 21 xmm0)) 59 {*movdi_2} (nil)
    (nil))
/home2/namsh/rpm/build/gcc/libobjc/sendmsg.c:269: internal compiler error: in
reload_cse_simplify_operands, at postreload.c:391
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Volker Reichelt 2004-12-23 18:41:23 UTC
Could you please retry with a new checkout?

Richard's patch for PR19102 probably fixed this:
http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01777.html
Comment 2 Andrew Pinski 2004-12-27 00:47:10 UTC
Note I would not doubt that the reduced testcase is:
int *f(void)
{
  return __builtin_apply (0,0,0);
}

Comment 3 namsh 2004-12-28 01:33:43 UTC
I confirmed that the "Richard's patch for PR19102" fixed this
problem. Thanks.
Comment 4 Andrew Pinski 2004-12-28 01:37:59 UTC
So closing as fixed.