------- Comment #27 from ghazi at gcc dot gnu dot org  2008-01-27 22:03 -------
(In reply to comment #26)
> (In reply to comment #23)
> > I meant for just using -fpie on darwin with no other changes.
> The problem I see, on darwin, is that -fpie cannot be passed to the driver,
> because eventually, the linker rejects -pie. Is that a know issue, dealt with
> automatically by the testing infrastructure? In that case, your patch is 
> great,

Hmm, there are a couple of other tests using -fpie on darwin:
./g++.dg/parse/attr-externally-visible-1.C:/* { dg-options "-O3 -fwhole-program
-fpie" { target *-*-darwin* } } */
./g++.dg/other/first-global.C:/* { dg-options "-fpie" { target *-*-darwin* } }
*/
./gcc.dg/pie-link.c:/* { dg-options "-fpie" } */


On closer inspection, the first two are compile-only, so the linker isn't
invoked.  The latter is only run on darwin[912], which I assume means darwin9
or later (10, 11, 12, 20, 21, 22, ...).

> otherwise, or if things are going to be tricky, I say let's just go with mine
> (sorry about the typo) and spare time for something else ;)

So I guess you're using an older version of darwin that doesn't know about pie.
 In that case I guess your patch (with the typo fixed) is the best option.

Will you be installing it?

Thanks,
--Kaveh


-- 


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

Reply via email to