Bug 11556 - ICE in gen_reg_rtx() while compiling 2.6.x Linux kernel
Summary: ICE in gen_reg_rtx() while compiling 2.6.x Linux kernel
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.3.1
: P2 critical
Target Milestone: 3.4.0
Assignee: David S. Miller
Depends on:
Reported: 2003-07-17 08:07 UTC by David S. Miller
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: sparc64-*-*
Target: sparc64-*-*
Build: sparc64-*-*
Known to work:
Known to fail:
Last reconfirmed:

preprocessed test case (49.49 KB, text/plain)
2003-07-17 08:09 UTC, David S. Miller

Note You need to log in before you can comment on or make changes to this bug.
Description David S. Miller 2003-07-17 08:07:33 UTC
gcc dies with an ice in gen_reg_rtx() while compiling
net/sunrpc/svcauth_unix.c in the 2.6.x Linux kernel.
Comment 1 David S. Miller 2003-07-17 08:09:28 UTC
Created attachment 4420 [details]
preprocessed test case

To reproduce run:

gcc -O2 -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -S -o bug.s
Comment 2 Eric Botcazou 2003-07-17 08:32:25 UTC
Reproducible on sparc64-sun-solaris2.9 too.
Comment 3 David S. Miller 2003-07-19 00:34:29 UTC
I checked in a fix written by Richard Henderson to both
the 3.3 branch and the mainline sources.

2003-07-18  Richard Henderson  <rth@redhat.com>
            David S. Miller  <davem@redhat.com>

        * optabs.c (prepare_operand): Fail gracefully instead of abort
        if the predicate doesn't satisfy.
        (gen_cond_trap): Allow prepare_operand to fail.
        Pass correct opnum argument to prepare_operand.
Comment 4 Eric Botcazou 2003-07-19 07:00:01 UTC
Please put PR numbers in ChangeLog entries, so that Bugzilla can automatically
pick up the patches. Thanks.
Comment 5 David S. Miller 2003-07-19 07:08:22 UTC
Fixed, sorry about that.