This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[pph] Fix release compilation failure


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]