public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [pph] Fix release compilation failure
@ 2011-04-05 20:17 Lawrence Crowl
  0 siblings, 0 replies; only message in thread
From: Lawrence Crowl @ 2011-04-05 20:17 UTC (permalink / raw)
  To: Diego Novillo; +Cc: gcc-patches List

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

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 <crowl@google.com>

	* parser.c (cp_lexer_dump_tokens): Remove #ifdef ENABLE_CHECKING.
	(cp_lexer_debug_tokens): Likewise.


-- 
Lawrence Crowl

[-- Attachment #2: src.patch --]
[-- Type: text/x-patch, Size: 1025 bytes --]

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.  */
  

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-05 20:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-05 20:17 [pph] Fix release compilation failure Lawrence Crowl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).