From patchwork Tue Apr 5 20:16:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lawrence Crowl X-Patchwork-Id: 89927 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 8CF3EB6EEE for ; Wed, 6 Apr 2011 06:17:40 +1000 (EST) Received: (qmail 29027 invoked by alias); 5 Apr 2011 20:17:38 -0000 Received: (qmail 29018 invoked by uid 22791); 5 Apr 2011 20:17:35 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Apr 2011 20:17:29 +0000 Received: from kpbe14.cbf.corp.google.com (kpbe14.cbf.corp.google.com [172.25.105.78]) by smtp-out.google.com with ESMTP id p35KHRPM008845 for ; Tue, 5 Apr 2011 13:17:28 -0700 Received: from pxi10 (pxi10.prod.google.com [10.243.27.10]) by kpbe14.cbf.corp.google.com with ESMTP id p35KHPbe026183 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 5 Apr 2011 13:17:26 -0700 Received: by pxi10 with SMTP id 10so349509pxi.22 for ; Tue, 05 Apr 2011 13:17:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.196.12 with SMTP id t12mr65971wff.449.1302034604550; Tue, 05 Apr 2011 13:16:44 -0700 (PDT) Received: by 10.143.11.14 with HTTP; Tue, 5 Apr 2011 13:16:44 -0700 (PDT) Date: Tue, 5 Apr 2011 13:16:44 -0700 Message-ID: Subject: [pph] Fix release compilation failure From: Lawrence Crowl To: Diego Novillo Cc: gcc-patches List X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org The current state of PPH uses cp_lexer_dump_tokens and cp_lexer_debug_tokens even in non-checking mode, so always generate them. We will probably reconsider at a future time. Index: gcc/cp/ChangeLog.pph 2011-04-05 Lawrence Crowl * parser.c (cp_lexer_dump_tokens): Remove #ifdef ENABLE_CHECKING. (cp_lexer_debug_tokens): Likewise. Index: gcc/cp/parser.c =================================================================== *** gcc/cp/parser.c (revision 171966) --- gcc/cp/parser.c (working copy) *************** static FILE *cp_lexer_debug_stream; *** 248,254 **** sizeof, typeof, or alignof. */ int cp_unevaluated_operand; ! #ifdef ENABLE_CHECKING /* Dump up to NUM tokens in BUFFER to FILE. If NUM is 0, dump all the tokens. */ --- 248,254 ---- sizeof, typeof, or alignof. */ int cp_unevaluated_operand; ! /* FIX pph: #ifdef ENABLE_CHECKING */ /* Dump up to NUM tokens in BUFFER to FILE. If NUM is 0, dump all the tokens. */ *************** cp_lexer_debug_tokens (VEC(cp_token,gc) *** 298,304 **** { cp_lexer_dump_tokens (stderr, buffer, 0); } ! #endif /* Return true if LEXER has a CPP_EOF at the end of the buffer. */ --- 298,304 ---- { cp_lexer_dump_tokens (stderr, buffer, 0); } ! /* FIX pph: #endif */ /* Return true if LEXER has a CPP_EOF at the end of the buffer. */