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 libstdc++/21769] per-file control over PCH inclusion



------- 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


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