public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/25761]  New: -fpic (not -fPIC) does not work with i686-darwin
@ 2006-01-12 13:31 pinskia at gcc dot gnu dot org
  2006-01-12 13:31 ` [Bug target/25761] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-12 13:31 UTC (permalink / raw)
  To: gcc-bugs

The following test fail because of this:
FAIL: gcc.dg/20021116-1.c (test for excess errors)
FAIL: gcc.dg/20030702-1.c (test for excess errors)
FAIL: gcc.dg/20030708-1.c (test for excess errors)
FAIL: gcc.dg/20040311-2.c (test for excess errors)
FAIL: gcc.dg/20050321-2.c (test for excess errors)


-- 
           Summary: -fpic (not -fPIC) does not work with i686-darwin
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: i686-apple-darwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
  2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
@ 2006-01-12 13:31 ` pinskia at gcc dot gnu dot org
  2006-01-12 16:09 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-12 13:31 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
  2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
  2006-01-12 13:31 ` [Bug target/25761] " pinskia at gcc dot gnu dot org
@ 2006-01-12 16:09 ` pinskia at gcc dot gnu dot org
  2006-01-27 16:43 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-12 16:09 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
  2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
  2006-01-12 13:31 ` [Bug target/25761] " pinskia at gcc dot gnu dot org
  2006-01-12 16:09 ` pinskia at gcc dot gnu dot org
@ 2006-01-27 16:43 ` pinskia at gcc dot gnu dot org
  2006-01-29 16:01 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-27 16:43 UTC (permalink / raw)
  To: gcc-bugs



------- 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|0000-00-00 00:00:00         |2006-01-27 16:43:23
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25761


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
  2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-01-27 16:43 ` pinskia at gcc dot gnu dot org
@ 2006-01-29 16:01 ` pinskia at gcc dot gnu dot org
  2006-01-29 16:31 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-29 16:01 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
  2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-01-29 16:01 ` pinskia at gcc dot gnu dot org
@ 2006-01-29 16:31 ` pinskia at gcc dot gnu dot org
  2006-03-01 13:01 ` hanwen at xs4all dot nl
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-29 16:31 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
  2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-01-29 16:31 ` pinskia at gcc dot gnu dot org
@ 2006-03-01 13:01 ` hanwen at xs4all dot nl
  2006-03-01 13:39 ` hanwen at xs4all dot nl
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hanwen at xs4all dot nl @ 2006-03-01 13:01 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
  2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-03-01 13:01 ` hanwen at xs4all dot nl
@ 2006-03-01 13:39 ` hanwen at xs4all dot nl
  2006-03-01 14:10 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hanwen at xs4all dot nl @ 2006-03-01 13:39 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
  2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-03-01 13:39 ` hanwen at xs4all dot nl
@ 2006-03-01 14:10 ` pinskia at gcc dot gnu dot org
  2006-03-01 19:14 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-01 14:10 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
  2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-03-01 14:10 ` pinskia at gcc dot gnu dot org
@ 2006-03-01 19:14 ` pinskia at gcc dot gnu dot org
  2006-03-01 19:28 ` pinskia at gcc dot gnu dot org
  2006-03-01 19:28 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-01 19:14 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
  2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-03-01 19:14 ` pinskia at gcc dot gnu dot org
@ 2006-03-01 19:28 ` pinskia at gcc dot gnu dot org
  2006-03-01 19:28 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-01 19:28 UTC (permalink / raw)
  To: gcc-bugs



------- 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=gcc&view=rev&rev=111611
Log:
2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>

        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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25761] -fpic (not -fPIC) does not work with i686-darwin
  2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2006-03-01 19:28 ` pinskia at gcc dot gnu dot org
@ 2006-03-01 19:28 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-01 19:28 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-03-01 19:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12 13:31 [Bug target/25761] New: -fpic (not -fPIC) does not work with i686-darwin pinskia at gcc dot gnu dot org
2006-01-12 13:31 ` [Bug target/25761] " pinskia at gcc dot gnu dot org
2006-01-12 16:09 ` pinskia at gcc dot gnu dot org
2006-01-27 16:43 ` pinskia at gcc dot gnu dot org
2006-01-29 16:01 ` pinskia at gcc dot gnu dot org
2006-01-29 16:31 ` pinskia at gcc dot gnu dot org
2006-03-01 13:01 ` hanwen at xs4all dot nl
2006-03-01 13:39 ` hanwen at xs4all dot nl
2006-03-01 14:10 ` pinskia at gcc dot gnu dot org
2006-03-01 19:14 ` pinskia at gcc dot gnu dot org
2006-03-01 19:28 ` pinskia at gcc dot gnu dot org
2006-03-01 19:28 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).