This is the mail archive of the gcc-bugs@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]

[Bug testsuite/55429] new UNRESOLVED: 20_util/enable_shared_from_this/cons/constexpr.cc scan-assembler on darwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55429

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jwakely.gcc at gmail dot
                   |                            |com, paolo.carlini at
                   |                            |oracle dot com

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-11-28 08:50:55 UTC ---
The following patch (borrowed from gcc/testsuite/lib/gcc-dg.exp) fixes the on
x86_64-apple-darwin10:

--- ../_clean/libstdc++-v3/testsuite/lib/libstdc++.exp    2012-11-24
01:46:03.000000000 +0100
+++ libstdc++-v3/testsuite/lib/libstdc++.exp    2012-11-27 22:35:33.000000000
+0100
@@ -389,14 +389,21 @@ if { [info procs saved-dg-test] == [list
     proc dg-test { args } {
     global additional_prunes
     global errorInfo
+        global testname_with_flags

     if { [ catch { eval saved-dg-test $args } errmsg ] } {
         set saved_info $errorInfo
         set additional_prunes ""
+            if [info exists testname_with_flags] {
+                unset testname_with_flags
+            }
         unset_timeout_vars
         error $errmsg $saved_info
     }
     set additional_prunes ""
+        if [info exists testname_with_flags] {
+            unset testname_with_flags
+        }
     unset_timeout_vars
     }
 }

Notes:
(1) I don't understand why this triggered on darwin only;
(2) the option -save-temps is not necessary in

libstdc++-v3/testsuite/20_util/enable_shared_from_this/cons/constexpr.cc
libstdc++-v3/testsuite/20_util/shared_ptr/cons/constexpr.cc
libstdc++-v3/testsuite/20_util/unique_ptr/cons/constexpr.cc
libstdc++-v3/testsuite/20_util/weak_ptr/cons/constexpr.cc
libstdc++-v3/testsuite/30_threads/future/cons/constexpr.cc
libstdc++-v3/testsuite/30_threads/shared_future/cons/constexpr.cc

see http://gcc.gnu.org/ml/libstdc++/2012-11/msg00148.html .


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