Hi!

The thread_local10.C fails, because if plugin.exp is sourced before tls.exp
on the 4.8 branch, DEFAULT_CXXFLAGS includes -ansi and the thread_local10.C
test, which is C++11, but has no dg-options, fails with:
/usr/src/gcc-4.8/gcc/testsuite/g++.dg/tls/thread_local10.C:11:10: error: 
'thread_local' does not name a type
/usr/src/gcc-4.8/gcc/testsuite/g++.dg/tls/thread_local10.C:13:14: error: 's' 
was not declared in this scope
/usr/src/gcc-4.8/gcc/testsuite/g++.dg/tls/thread_local10.C:17:23: error: 
'thread_local' does not name a type
because of that.  This has been fixed in 4.9+ by dropping the -ansi for C++
tests.  Acked by Jason in the PR, committed to 4.8 branch.

2014-12-15  Jakub Jelinek  <ja...@redhat.com>

        PR middle-end/58624
        Backported from mainline
        2014-03-07  Jason Merrill  <ja...@redhat.com>

        * g++.dg/plugin/plugin.exp (DEFAULT_CXXFLAGS): Remove -ansi.

--- gcc/testsuite/g++.dg/plugin/plugin.exp      (revision 218737)
+++ gcc/testsuite/g++.dg/plugin/plugin.exp      (working copy)
@@ -31,7 +31,7 @@ if { ![info exists TESTING_IN_BUILD_TREE
 # If a testcase doesn't have special options, use these.
 global DEFAULT_CXXFLAGS
 if ![info exists DEFAULT_CXXFLAGS] then {
-    set DEFAULT_CXXFLAGS " -ansi -pedantic-errors -Wno-long-long"
+    set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long"
 }
 
 # The procedures in plugin-support.exp need these parameters.

        Jakub

Reply via email to