Some way to turn off the use of an included stdc++.h PCH file in the libstdc++
test suite is needed. As part of

libstdc++/20534

I propose:

+ // { dg-options "-D__GLIBCXX__=99999999" }
+ // NB: This is done to force any generated and possibly included PCH
+ // to be invalid.

which will work.

Paolo suggests hookizing this into:

dg-do compile-no-pch

Sounds like a good idea.

In addition, it looks like a review of the do-compile testcases in the libstdc++
are needed, to see if some expect to be compiled without PCH. (This is
absolutely the case.)

-- 
           Summary: per-file control over PCH inclusion
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bkoz at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21769

Reply via email to