aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include/cpplib.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-03-21 16:41:13 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2016-03-21 16:41:13 +0100
commit6b36694859ea9f0951f329d55b60ecc70dba0c8b (patch)
treeb4a1dbbe62d9345281c8b712d8fa6dc58b6d2963 /libcpp/include/cpplib.h
parentc600d691f3b8151c76612984215983d852c3d903 (diff)
downloadgcc-6b36694859ea9f0951f329d55b60ecc70dba0c8b.zip
gcc-6b36694859ea9f0951f329d55b60ecc70dba0c8b.tar.gz
gcc-6b36694859ea9f0951f329d55b60ecc70dba0c8b.tar.bz2
re PR target/70296 (Incorrect handling of vector X; if X is function-like macro)
PR target/70296 * include/cpplib.h (cpp_fun_like_macro_p): New prototype. * macro.c (cpp_fun_like_macro_p): New function. * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is function-like macro, peek following token(s) if it is followed by CPP_OPEN_PAREN token with optional padding in between, and if not, don't treat it like a macro. * gcc.target/powerpc/altivec-36.c: New test. From-SVN: r234371
Diffstat (limited to 'libcpp/include/cpplib.h')
-rw-r--r--libcpp/include/cpplib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index 882f80c..35b0375 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -813,6 +813,7 @@ extern int cpp_avoid_paste (cpp_reader *, const cpp_token *,
extern const cpp_token *cpp_get_token (cpp_reader *);
extern const cpp_token *cpp_get_token_with_location (cpp_reader *,
source_location *);
+extern bool cpp_fun_like_macro_p (cpp_hashnode *);
extern const unsigned char *cpp_macro_definition (cpp_reader *,
cpp_hashnode *);
extern void _cpp_backup_tokens (cpp_reader *, unsigned int);