Patchwork [pph] Fix release compilation failure

login
register
mail settings
Submitter Lawrence Crowl
Date April 5, 2011, 8:16 p.m.
Message ID <BANLkTi=Jc=WqinHaOGx3CX_OXfDBrNYnXQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/89927/
State New
Headers show

Comments

Lawrence Crowl - April 5, 2011, 8:16 p.m.
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.

Patch

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