This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

darwin testsuite fixes applied


Hi,

I applied the following 2 patches to fix some darwin related testsuite failures. Approved by Geoff.

Andreas

ChangeLog:

2003-05-24 Andreas Tobler <a.tobler@schweiz.ch>

* gcc.c-torture/execute/builtins/builtins.exp: Add -multiply_defined
suppress option for powerpc-*-darwin*.


Index: gcc.c-torture/execute/builtins/builtins.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
,v
retrieving revision 1.1
diff -u -r1.1 builtins.exp
--- gcc.c-torture/execute/builtins/builtins.exp 11 May 2003 08:20:34 -0000
1.1
+++ gcc.c-torture/execute/builtins/builtins.exp 24 May 2003 05:56:56 -0000
@@ -15,10 +15,16 @@


load_lib c-torture.exp

+set additional_flags ""
+if [istarget "powerpc-*-darwin*"] {
+   lappend additional_flags "-Wl,-multiply_defined,suppress"
+}
+
 foreach src [lsort [find $srcdir/$subdir *.c]] {
     if {![string match *-lib.c $src] && [runtest_file_p $runtests $src]} {
        c-torture-execute [list $src \
                                [file root $src]-lib.c \
-                               $srcdir/$subdir/lib/main.c]
+                               $srcdir/$subdir/lib/main.c] \
+                               $additional_flags
     }
 }

ChangeLog:

2003-05-24 Andreas Tobler <a.tobler@schweiz.ch>

        * gcc.dg/torture/builtin-noret-1.c: Add dg-option -multiply_defined
        suppress for powerpc-*-darwin*.
        * gcc.dg/torture/builtin-noret-2.c: Likewise.

Index: gcc.dg/torture/builtin-noret-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/torture/builtin-noret-1.c,v
retrieving revision 1.1
diff -u -r1.1 builtin-noret-1.c
--- gcc.dg/torture/builtin-noret-1.c 11 May 2003 08:20:34 -0000 1.1
+++ gcc.dg/torture/builtin-noret-1.c 24 May 2003 06:03:07 -0000
@@ -1,5 +1,6 @@
/* Test for builtin noreturn attributes. */
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
+/* { dg-options "-multiply_defined suppress" { target powerpc-*-darwin* } } */
/* { dg-do link } */


extern void abort (void);


Index: gcc.dg/torture/builtin-noret-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/torture/builtin-noret-2.c,v
retrieving revision 1.1
diff -u -r1.1 builtin-noret-2.c
--- gcc.dg/torture/builtin-noret-2.c 11 May 2003 08:20:34 -0000 1.1
+++ gcc.dg/torture/builtin-noret-2.c 24 May 2003 06:03:07 -0000
@@ -1,6 +1,7 @@
/* Test for builtin noreturn attributes when the visible declarations
are function-local. Modified from builtin-noret-1.c by Zack Weinberg
<zack@codesourcery.com>. */
+/* { dg-options "-multiply_defined suppress" { target powerpc-*-darwin* } } */
/* { dg-do link } */


extern void tabort (void);



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]