]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
re PR target/70296 (Incorrect handling of vector X; if X is function-like macro)
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 Mar 2016 15:41:13 +0000 (16:41 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 21 Mar 2016 15:41:13 +0000 (16:41 +0100)
commit6b36694859ea9f0951f329d55b60ecc70dba0c8b
treeb4a1dbbe62d9345281c8b712d8fa6dc58b6d2963
parentc600d691f3b8151c76612984215983d852c3d903
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
gcc/ChangeLog
gcc/config/rs6000/rs6000-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/altivec-36.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/include/cpplib.h
libcpp/macro.c