This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] shared/dylib'ed libgcc for darwin try #2
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Geoffrey Keating <gkeating at apple dot com>
- Date: Thu, 26 Jun 2003 13:34:38 +0200
- Subject: Re: [RFC] shared/dylib'ed libgcc for darwin try #2
- References: <3EEEDF93.2050609@pop.agri.ch> <orn0ggbwi2.fsf@free.redhat.lsd.ic.unicamp.br>
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"
+ }
}