------- 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  <[EMAIL PROTECTED]>

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

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

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

 struct A


-- 


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

Reply via email to