[Bug target/70296] Incorrect handling of vector X; if X is function-like macro
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 30 12:44:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70296
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Mar 30 12:43:44 2016
New Revision: 234565
URL: https://gcc.gnu.org/viewcvs?rev=234565&root=gcc&view=rev
Log:
Backported from mainline
2016-03-21 Jakub Jelinek <jakub@redhat.com>
PR target/70296
* 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.
* include/cpplib.h (cpp_fun_like_macro_p): New prototype.
* macro.c (cpp_fun_like_macro_p): New function.
* gcc.target/powerpc/altivec-36.c: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/gcc.target/powerpc/altivec-36.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/config/rs6000/rs6000-c.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/libcpp/ChangeLog
branches/gcc-5-branch/libcpp/include/cpplib.h
branches/gcc-5-branch/libcpp/macro.c
More information about the Gcc-bugs
mailing list