[Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
--- Comment #6 from hanwen at xs4all dot nl 2006-03-01 13:01 --- Hello, I also have this problem, but it also gets triggered in the bootstrapping phase for a cross-compiler. This is while creating a compiling i686-linux - i686-apple-darwin8 crosscompiler on Fedora Core 4; I consider this a major bug. /home/hanwen/vc/gub/target/darwin-x86/src/gcc-4.1.0/libiberty/regex.c: In function #8216;byte_common_op_match_null_string_p#8217;: /home/hanwen/vc/gub/target/darwin-x86/src/gcc-4.1.0/libiberty/regex.c:7724: error: unrecognizable insn: (insn 22 21 23 2 /home/hanwen/vc/gub/target/darwin-x86/src/gcc-4.1.0/libiberty/regex.c:7652 (set (reg:SI 78) (label_ref:SI 26)) -1 (nil) (insn_list:REG_LABEL 26 (nil))) /home/hanwen/vc/gub/target/darwin-x86/src/gcc-4.1.0/libiberty/regex.c:7724: internal compiler error: in extract_insn, at recog.c:2084 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. This was triggered by compiling with the following configure flags. If necessary, I can send a CPP output file. --prefix=/home/hanwen/vc/gub/target/darwin-x86/install/gcc-root/usr --program-prefix=i686-apple-darwin8- --prefix=/home/hanwen/vc/gub/target/darwin-x86/system/usr/cross/ --with-slibdir=/usr/lib/ --target=i686-apple-darwin8 --with-sysroot=/home/hanwen/vc/gub/target/darwin-x86/system/ --with-as=/home/hanwen/vc/gub/target/darwin-x86/system/usr/cross/bin/i686-apple-darwin8-as --with-ld=/home/hanwen/vc/gub/target/darwin-x86/system/usr/cross/bin/i686-apple-darwin8-ld --enable-static --enable-shared --enable-languages=c,c++ --enable-libstdcxx-debug -- hanwen at xs4all dot nl changed: What|Removed |Added CC||hanwen at xs4all dot nl http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761
[Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
--- Comment #7 from hanwen at xs4all dot nl 2006-03-01 13:39 --- BTW, why not look at apple's solution to this problem? GCC 4.0 has the same problem, but the version that apple ships doesn't exhibit it. Apple's config.h is at http://www.opensource.apple.com/darwinsource/DevToolsNov2005/gcc-5247/gcc/config/darwin.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761
[Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
--- Comment #8 from pinskia at gcc dot gnu dot org 2006-03-01 14:10 --- (In reply to comment #7) BTW, why not look at apple's solution to this problem? GCC 4.0 has the same problem, but the version that apple ships doesn't exhibit it. Because it just disables -fpic, I have a patch which fixes this and I am about to commit it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761
[Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
--- Comment #9 from pinskia at gcc dot gnu dot org 2006-03-01 19:14 --- Patch is about to be committed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761
[Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
--- Comment #10 from pinskia at gcc dot gnu dot org 2006-03-01 19:28 --- Subject: Bug 25761 Author: pinskia Date: Wed Mar 1 19:28:22 2006 New Revision: 111611 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=111611 Log: 2006-03-01 Andrew Pinski [EMAIL PROTECTED] PR target/25761 * config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just MACHO_DYNAMIC_NO_PIC_P. (MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P. Modified: trunk/gcc/ChangeLog trunk/gcc/config/darwin.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761
[Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
--- Comment #11 from pinskia at gcc dot gnu dot org 2006-03-01 19:28 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761
[Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-01-29 16:01 --- Patch posted here: http://gcc.gnu.org/ml/gcc-patches/2006-01/msg02063.html -- pinskia at gcc dot gnu dot org changed: What|Removed |Added URL||http://gcc.gnu.org/ml/gcc- ||patches/2006- ||01/msg02063.html Keywords||patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761
[Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-01-29 16:31 --- The patch does not work for bootstapping and I don't have access to x86-darwin to even try to start fixing this. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|pinskia at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org URL|http://gcc.gnu.org/ml/gcc- | |patches/2006- | |01/msg02063.html| Status|ASSIGNED|NEW Keywords|patch | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761
[Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-01-27 16:43 --- I have a patch. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2006-01-27 16:43:23 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761
[Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-12 13:31 --- Oh, -fpic on i686-darwin should be made equivlant to -fPIC without any warning. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761
[Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-01-12 16:09 --- PASS: g++.old-deja/g++.other/store-expr1.C PIC unsupported (test for bogus messages, line ) FAIL: g++.old-deja/g++.other/store-expr1.C (test for excess errors) Excess errors: /ltmp/ssen/gcc/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C:89: error: unrecognizable insn: (insn 8 6 10 2 (set (mem/s/f/c:SI (symbol_ref:SI (x) [flags 0x182] var_decl 0x5fce40 x) [29 x.l+0 S4 A32]) (symbol_ref:SI (i) [flags 0x182] var_decl 0x5fcea0 i)) -1 (nil) (nil)) /ltmp/ssen/gcc/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C:89: internal compiler error: in extract_insn, at recog.c:2084 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761