From: Kaveh R. Ghazi Date: Tue, 23 Feb 2010 09:41:37 +0000 (+0000) Subject: Backport: X-Git-Tag: releases/gcc-4.3.5~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec41fd65cae832f8671a7baa590092984f57b5a5;p=thirdparty%2Fgcc.git Backport: 2010-01-20 Janis Johnson Paolo Carlini 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 17ae187864a6..2e657c83a4b0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,14 @@ +2010-02-23 Kaveh R. Ghazi + + Backport: + 2010-01-20 Janis Johnson + Paolo Carlini + + 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. diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc index dca23e73f6a9..f1d0965e4ad4 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc @@ -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 } } } } diff --git a/libstdc++-v3/testsuite/lib/dg-options.exp b/libstdc++-v3/testsuite/lib/dg-options.exp index 327b691fc0f6..5194421c7c7f 100644 --- a/libstdc++-v3/testsuite/lib/dg-options.exp +++ b/libstdc++-v3/testsuite/lib/dg-options.exp @@ -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" +}