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