From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11725 invoked by alias); 27 Jan 2008 22:04:17 -0000 Received: (qmail 11604 invoked by uid 48); 27 Jan 2008 22:03:34 -0000 Date: Sun, 27 Jan 2008 22:56:00 -0000 Message-ID: <20080127220334.11603.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/26099] support for type traits is not available In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ghazi at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg03375.txt.bz2 ------- 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