diff mbox series

fix some build breakage

Message ID 14744462-97b2-f92b-46ff-e93f6225f241@acm.org
State New
Headers show
Series fix some build breakage | expand

Commit Message

Nathan Sidwell Aug. 20, 2018, 11:29 p.m. UTC
Jeff alerted me to some build breakage on s390 and spu targets.  He's confirmed 
this patch unbreaks s390, so I expect spu is also good.  Committing to trunk.

Sorry for not deploying grep earlier.

nathan.
diff mbox series

Patch

2018-08-20  Nathan Sidwell  <nathan@acm.org>
	    Jeff Law <law@redhat.com>

	* config/s390/s390-c (s390_macro_to_expand): Use cpp_macro_p.
	* config/spu/spu-c.c (spu_macro_to_expand): Likewise.

Index: s390/s390-c.c
===================================================================
--- s390/s390-c.c	(revision 263673)
+++ s390/s390-c.c	(working copy)
@@ -233,7 +233,7 @@  s390_macro_to_expand (cpp_reader *pfile,
 
   rid_code = (enum rid)(ident->rid_code);
 
-  if (ident->type == NT_MACRO)
+  if (cpp_macro_p (ident))
     {
       /* Now actually fetch the tokens we "peeked" before and do a
 	 lookahead for the next.  */
Index: spu/spu-c.c
===================================================================
--- spu/spu-c.c	(revision 263673)
+++ spu/spu-c.c	(working copy)
@@ -64,7 +64,7 @@  spu_macro_to_expand (cpp_reader *pfile,
       if (ident)
 	{
 	  enum rid rid_code = (enum rid)(ident->rid_code);
-	  if (ident->type == NT_MACRO)
+	  if (cpp_macro_p (ident))
 	    {
 	      (void) cpp_get_token (pfile);
 	      tok = cpp_peek_token (pfile, 0);