This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26099] support for type traits is not available
- From: "ghazi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2008 22:03:34 -0000
- Subject: [Bug c++/26099] support for type traits is not available
- References: <bug-26099-3238@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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