diff options
Diffstat (limited to 'gcc/testsuite/lib/g++.exp')
-rw-r--r-- | gcc/testsuite/lib/g++.exp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/g++.exp b/gcc/testsuite/lib/g++.exp index 518e836020c..48226db72a9 100644 --- a/gcc/testsuite/lib/g++.exp +++ b/gcc/testsuite/lib/g++.exp @@ -299,12 +299,20 @@ proc g++_target_compile { source dest type options } { } lappend options "additional_flags=[libio_include_flags]" + # APPLE LOCAL begin testsuite multiply defined + if [ istarget *-*-darwin* ] { + lappend options "ldflags=-Wl,-multiply_defined,suppress" + } + # APPLE LOCAL end testsuite multiply defined lappend options "compiler=$GXX_UNDER_TEST"; set options [concat $gpp_compile_options $options] set options [concat "$ALWAYS_CXXFLAGS" $options]; + # APPLE LOCAL long double warning + lappend options "additional_flags=-Wno-long-double" + if { [regexp "(^| )-frepo( |$)" $options] && \ [regexp "\.o(|bj)$" $dest] } then { regsub "\.o(|bj)$" $dest ".rpo" rponame |