From: Janis Johnson Date: Wed, 20 Jan 2010 11:57:44 +0000 (+0000) Subject: re PR libstdc++/21769 (per-file control over PCH inclusion) X-Git-Tag: releases/gcc-4.5.0~1127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd9b2e5379791c817933e6a77f41d0b84d082447;p=thirdparty%2Fgcc.git re PR libstdc++/21769 (per-file control over PCH inclusion) 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. Co-Authored-By: Paolo Carlini From-SVN: r156075 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9830eb2f6210..d7661bb0204a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,11 @@ +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. + 2010-01-19 Johannes Singler PR libstdc++/42712 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 771a5550d43b..9412d73f0074 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, 2009 Free Software Foundation, Inc. +// Copyright (C) 2001, 2005, 2009, 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 @@ -17,8 +17,9 @@ // with this library; see the file COPYING3. If not see // . - // { dg-do compile } +// { dg-add-options no_pch } + // { dg-xfail-if "" { { *-*-linux* *-*-darwin[3-9]* } || { uclibc || newlib } } { "*" } { "" } } // { dg-excess-errors "" { target { { *-*-linux* *-*-darwin[3-9]* } || { uclibc || newlib } } } } diff --git a/libstdc++-v3/testsuite/lib/dg-options.exp b/libstdc++-v3/testsuite/lib/dg-options.exp index 60e9b78fdbad..10848bcccf13 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, 2008, 2009 +# Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 # Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify @@ -151,3 +151,8 @@ proc dg-require-binary-io { args } { } return } + +proc add_options_for_no_pch { flags } { + # This forces any generated and possibly included PCH to be invalid. + return "-D__GLIBCXX__=99999999" +}