]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Backport:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 23 Feb 2010 09:41:37 +0000 (09:41 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 23 Feb 2010 09:41:37 +0000 (09:41 +0000)
2010-01-20  Janis Johnson  <janis187@us.ibm.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/21769
* testsuite/lib/dg-options.exp (add_options_for_no_pch): Add.
* testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
Use it.

From-SVN: r156991

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc
libstdc++-v3/testsuite/lib/dg-options.exp

index 17ae187864a66e00f6b71c6110b8280e165905e9..2e657c83a4b0898ffb636868d01fca217d8946d9 100644 (file)
@@ -1,3 +1,14 @@
+2010-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       Backport:
+       2010-01-20  Janis Johnson  <janis187@us.ibm.com>
+                   Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/21769
+       * testsuite/lib/dg-options.exp (add_options_for_no_pch): Add.
+       * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
+       Use it.
+
 2009-08-04  Release Manager
 
        * GCC 4.3.4 released.
index dca23e73f6a92f8e989a5824dc819a3910005a65..f1d0965e4ad4f3604492bd5a40ac0038c4b8e9cb 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-04-06 gdr
 
-// Copyright (C) 2001, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2005, 2010 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -28,6 +28,8 @@
 // the GNU General Public License.
 
 // { dg-do compile }
+// { dg-add-options no_pch }
+
 // { dg-xfail-if "" { { *-*-linux* *-*-darwin* } || { uclibc || newlib } } { "*" } { "" } }
 // { dg-excess-errors "" { target { { *-*-linux* *-*-darwin* } || { uclibc || newlib } } } }
 
index 327b691fc0f600c549c2333334c5f31bd5299493..5194421c7c7f66a096bf12c5850bfd5d778bcc69 100644 (file)
@@ -1,6 +1,6 @@
 # Handlers for additional dg-xxx keywords in tests.
 
-# Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2005, 2006, 2007, 2010 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -88,3 +88,8 @@ proc dg-require-rvalref { args } {
     }
     return
 }
+
+proc add_options_for_no_pch { flags } {
+    # This forces any generated and possibly included PCH to be invalid.
+    return "-D__GLIBCXX__=99999999"
+}