diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 071cc4bfd50eec0d07113417878236a2ffe3f863..f96de294e6c01f0d32e175bc0cffb6f98777a9bb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-05-24 Andreas Tobler <a.tobler@schweiz.ch> + + * gcc.c-torture/execute/builtins/builtins.exp: Add -multiply_defined + suppress option for powerpc-*-darwin*. + 2003-05-23 Roger Sayle <roger@eyesopen.com> * gcc.dg/builtins-1.c: Add tests for tan and atan. diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp index 89455bc546191f9390ff7ca01a939537044b91a4..5aff873451f5a331007042e6c0df4d0c7fcfe2ec 100644 --- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp @@ -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 } }