Message ID | 526EE563.9090902@codesourcery.com |
---|---|
State | New |
Headers | show |
On Oct 28, 2013, at 3:29 PM, Cesar Philippidis <cesar@codesourcery.com> wrote: > This patch addresses two issues with the libstdc++ testsuite: > > * duplicate "-g -O2" CXXFLAGS > * missing "-g -O2" for remote targets I need to defer this to the libstdc++ people… there is enough of them, and they do such a nice job…
diff --git a/libstdc++-v3/scripts/testsuite_flags.in b/libstdc++-v3/scripts/testsuite_flags.in index d7710ca..35b36e7 100755 --- a/libstdc++-v3/scripts/testsuite_flags.in +++ b/libstdc++-v3/scripts/testsuite_flags.in @@ -55,7 +55,7 @@ case ${query} in ;; --cxxflags) CXXFLAGS_default="-D_GLIBCXX_ASSERT -fmessage-length=0" - CXXFLAGS_config="@SECTION_FLAGS@ @CXXFLAGS@ @EXTRA_CXX_FLAGS@" + CXXFLAGS_config="@SECTION_FLAGS@" echo ${CXXFLAGS_default} ${CXXFLAGS_config} ;; --cxxparallelflags) diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 51ff6dd..68dcb15 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -265,6 +265,15 @@ proc libstdc++_init { testfile } { } append cxxflags " " append cxxflags [getenv CXXFLAGS] + + if {$cxxflags == "-D_GLIBCXX_ASSERT -fmessage-length=0 "} { + append cxxflags "-g" + } + + if ![regexp "\-O" $cxxflags] { + append cxxflags " -O2" + } + v3track cxxflags 2 # Always use MO files built by this test harness.