This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/21769] per-file control over PCH inclusion
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2009 23:51:56 -0000
- Subject: [Bug libstdc++/21769] per-file control over PCH inclusion
- References: <bug-21769-365@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from janis at gcc dot gnu dot org 2009-07-27 23:51 -------
Changing dg-do would be very messy. Instead, use the existing dg-add-options.
Add the following to libstdc++-v3/testsuite/dg-options.exp:
---------------------------------------------------------------------------
# Add to FLAGS all the target-specific flags needed to disable PCH.
proc add_options_for_no_pch { flags } {
# This forces any generated and possibly included PCH to be invalid.
return "$flags -D__GLIBCXX__=99999999"
}
---------------------------------------------------------------------------
In a test that should disable PCH, use
// { dg-add-options no_pch }
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21769