aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2018-08-20 23:31:18 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2018-08-20 23:31:18 +0000
commitfe7a679e8c4ce1a50afad508e094377bab365ea4 (patch)
treeae84c992ccd81011829e8abe9fe8c354359ceae2 /gcc/config
parent56c6d2673199f6074ae63321b7a257ce4535e06c (diff)
downloadgcc-fe7a679e8c4ce1a50afad508e094377bab365ea4.zip
gcc-fe7a679e8c4ce1a50afad508e094377bab365ea4.tar.gz
gcc-fe7a679e8c4ce1a50afad508e094377bab365ea4.tar.bz2
[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. Co-Authored-By: Jeff Law <law@redhat.com> From-SVN: r263677
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/s390/s390-c.c2
-rw-r--r--gcc/config/spu/spu-c.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/s390/s390-c.c b/gcc/config/s390/s390-c.c
index 77f3abb..286b8c3 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 a148c5c..166f91d 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);