From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12979 invoked by alias); 27 Jul 2009 23:52:09 -0000 Received: (qmail 12944 invoked by uid 48); 27 Jul 2009 23:51:56 -0000 Date: Mon, 27 Jul 2009 23:52:00 -0000 Message-ID: <20090727235156.12943.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/21769] per-file control over PCH inclusion In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "janis at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg02222.txt.bz2 ------- 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