From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23746 invoked by alias); 27 Jan 2008 21:11:27 -0000 Received: (qmail 23340 invoked by uid 48); 27 Jan 2008 21:10:44 -0000 Date: Sun, 27 Jan 2008 22:04:00 -0000 Message-ID: <20080127211044.23339.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/msg03371.txt.bz2 ------- Comment #24 from ghazi at gcc dot gnu dot org 2008-01-27 21:10 ------- Patch which works on i686-unknown-linux-gnu: 2008-01-27 Kaveh R. Ghazi * g++.dg/ext/has_nothrow_assign.C: Add -fpie when __PIC__. * g++.dg/ext/has_nothrow_constructor.C: Likewise. * g++.dg/ext/has_nothrow_copy.C: Likewise. diff -rup orig/egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_assign.C egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_assign.C --- orig/egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_assign.C 2007-12-31 19:13:13.000000000 +0100 +++ egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_assign.C 2008-01-27 21:17:32.000000000 +0100 @@ -1,4 +1,5 @@ // { dg-do "run" } +// { dg-options "-fpie" { target { ! nonpic } } } #include struct A diff -rup orig/egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_constructor.C egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_const ructor.C --- orig/egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_constructor.C 2007-12-31 19:13:14.000000000 +0100 +++ egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_constructor.C 2008-01-27 21:17:48.000000000 +0100 @@ -1,4 +1,5 @@ // { dg-do "run" } +// { dg-options "-fpie" { target { ! nonpic } } } #include struct A diff -rup orig/egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_copy.C egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_copy.C --- orig/egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_copy.C 2007-12-31 19:13:14.000000000 +0100 +++ egcc-SVN20080126/gcc/testsuite/g++.dg/ext/has_nothrow_copy.C 2008-01-27 21:17:54.000000000 +0100 @@ -1,4 +1,5 @@ // { dg-do "run" } +// { dg-options "-fpie" { target { ! nonpic } } } #include struct A -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26099