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]

Re: [RFC] shared/dylib'ed libgcc for darwin try #2


Alexandre Oliva wrote:
One thing that jumps out is the unconditional use of
`-multiply_defined suppress' in the testsuite configuration files.
This should be reworked so as to use this flag on Darwin alone, or,
even better, to make it completely unnecessary.

Something in this direction?


Thanks,
Andreas

RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/libstdc++-v3.dg/dg.exp,v
retrieving revision 1.5
diff -u -r1.5 dg.exp
--- dg.exp      10 Apr 2003 07:15:40 -0000      1.5
+++ dg.exp      26 Jun 2003 11:31:01 -0000
@@ -19,10 +19,16 @@
 # Load support procs.
 load_lib libstdc++-v3-dg.exp

+global target_triplet
+
# If a testcase doesn't have special options, use these.
global DEFAULT_CXXFLAGS
if ![info exists DEFAULT_CXXFLAGS] then {
- set DEFAULT_CXXFLAGS "-DDEBUG_ASSERT"
+ if { [string match "powerpc-*-darwin*" $target_triplet] } {
+ set DEFAULT_CXXFLAGS "-DDEBUG_ASSERT -multiply_defined suppress"
+ } else {
+ set DEFAULT_CXXFLAGS "-DDEBUG_ASSERT"
+ }
}



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