Bug 16649 - [3.4 Regression] bootstrap of gcc3.4.x fails on OpenDarwin7.2.1/x86
Summary: [3.4 Regression] bootstrap of gcc3.4.x fails on OpenDarwin7.2.1/x86
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.4.1
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: build, ice-on-valid-code
: 16723 (view as bug list)
Depends on: 16557
Blocks: 16651
  Show dependency treegraph
 
Reported: 2004-07-20 21:08 UTC by Lars Sonchocky-Helldorf
Modified: 2005-08-23 02:01 UTC (History)
2 users (show)

See Also:
Host: i686-apple-darwin7.2.1
Target: i686-apple-darwin7.2.1
Build: i686-apple-darwin7.2.1
Known to work: 4.0.0
Known to fail: 3.4.1
Last reconfirmed: 2005-01-31 01:42:02


Attachments
preprocessed file (darwin-crt2.i) that triggers the bug (7.92 KB, text/plain)
2004-07-20 21:14 UTC, Lars Sonchocky-Helldorf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Sonchocky-Helldorf 2004-07-20 21:08:45 UTC
./xgcc -B./ -B/tmp/gcc/i686-apple-darwin7.2.1/bin/ -isystem /tmp/gcc/i686-apple-
darwin7.2.1/include -isystem /tmp/gcc/i686-apple-darwin7.2.1/sys-include -L/Users/lars/GCC/
FSF/testbuild/gcc/../ld -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-
prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc-3.4.1/gcc -I../../gcc-
3.4.1/gcc/. -I../../gcc-3.4.1/gcc/../include -I../intl  \
  -c ../../gcc-3.4.1/gcc/config/darwin-crt2.c -o crt2.o
../../gcc-3.4.1/gcc/config/darwin-crt2.c: In function `__darwin_gcc3_preregister_frame_info':
../../gcc-3.4.1/gcc/config/darwin-crt2.c:151: error: unrecognizable insn:
(insn 11 9 12 0 (set (reg/f:SI 58)
        (plus:SI (reg:SI 3 bx)
            (const:SI (minus:SI (symbol_ref:SI ("&L___keymgr_global$non_lazy_ptr"))
                    (symbol_ref:SI ("<pic base>")))))) -1 (nil)
    (nil))
../../gcc-3.4.1/gcc/config/darwin-crt2.c:151: internal compiler error: in extract_insn, at 
recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [crt2.o] Error 1
make[1]: *** [stage1_build] Error 2
make: *** [bootstrap] Error 2

the bootstrap was attempted like:

mkdir /tmp/gcc
mkdir testbuild
cd testbuild/
../gcc-3.4.1/configure --prefix=/tmp/gcc
make bootstrap STAGE1_CFLAGS="-no-cpp-precomp -Wa,-force_cpusubtype_ALL -g"
Comment 1 Drea Pinski 2004-07-20 21:12:03 UTC
I thought I had fixed this error.
Comment 2 Lars Sonchocky-Helldorf 2004-07-20 21:14:02 UTC
Created attachment 6788 [details]
preprocessed file (darwin-crt2.i) that triggers the bug
Comment 3 Drea Pinski 2004-07-20 23:40:38 UTC
Confirmed, caused by the fix for PR 15717.
I have a fix for this one too.
Comment 4 Drea Pinski 2004-07-21 00:31:19 UTC
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-07/msg01982.html>.
Comment 5 Drea Pinski 2004-07-26 20:52:56 UTC
*** Bug 16723 has been marked as a duplicate of this bug. ***
Comment 6 Lars Sonchocky-Helldorf 2004-08-12 11:06:20 UTC
there should be a solution out there: 

http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00506.html

which needs to be reviewed.
Comment 7 Drea Pinski 2004-08-23 01:52:42 UTC
Fixed on the mainline by:
2004-08-20  Mike Stump  <mrs@apple.com>

        * config/darwin.c (machopic_indirect_data_reference): Mark
        stubs as defined.
        * config/386/386.c (darwin_local_data_pic): Add.
        (legitimate_constant_p): Reorder so that PLUS handling runs
        before darwin_local_data_pic to match the ordering in
        legitimate_pic_address_disp_p and so that MINUS runs after
        darwin_local_data_pic as otherwise the darwin_local_data_pic
        logic can be skipped, which would be very bad.
        (legitimate_pic_address_disp_p): Move from from here to
        darwin_local_data_pic so it can be reused.
Comment 8 Mark Mitchell 2004-08-23 19:41:10 UTC
Postponed until GCC 3.4.3, darwin is not release-critical.

Comment 9 Drea Pinski 2004-09-27 04:13:53 UTC
Someone has to do the back port of the patch and test it (I no longer can do cross builds).
Comment 10 Mark Mitchell 2004-11-01 00:46:37 UTC
Postponed until GCC 3.4.4.
Comment 11 Mark Mitchell 2005-04-29 18:38:00 UTC
Removing target milestone; OpenDarwin is not a primary or secondary target.
Comment 12 Drea Pinski 2005-08-23 02:01:15 UTC
Just marking as fixed for 4.0.0 as there is no recent interesting in getting this fixed in earlier branches 
and earlier branches are not supported for darwin8.0.