From: nathan Date: Mon, 20 Aug 2018 23:31:18 +0000 (+0000) Subject: [PATCH] fix some build breakage X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1936b1ca14e611361fb13212b9ebca336dcc7e31;p=thirdparty%2Fgcc.git [PATCH] fix some build breakage https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01214.html * config/s390/s390-c (s390_macro_to_expand): Use cpp_macro_p. * config/spu/spu-c.c (spu_macro_to_expand): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263677 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 515ea8a087a2..ca49dba4437b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-08-20 Nathan Sidwell + Jeff Law + + * config/s390/s390-c (s390_macro_to_expand): Use cpp_macro_p. + * config/spu/spu-c.c (spu_macro_to_expand): Likewise. + 2018-08-20 David Malcolm PR other/84889 diff --git a/gcc/config/s390/s390-c.c b/gcc/config/s390/s390-c.c index 77f3abb664b5..286b8c392ffd 100644 --- a/gcc/config/s390/s390-c.c +++ b/gcc/config/s390/s390-c.c @@ -233,7 +233,7 @@ s390_macro_to_expand (cpp_reader *pfile, const cpp_token *tok) 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. */ diff --git a/gcc/config/spu/spu-c.c b/gcc/config/spu/spu-c.c index a148c5c27294..166f91d94261 100644 --- a/gcc/config/spu/spu-c.c +++ b/gcc/config/spu/spu-c.c @@ -64,7 +64,7 @@ spu_macro_to_expand (cpp_reader *pfile, const cpp_token *tok) 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);