https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70296

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Mar 21 15:41:13 2016
New Revision: 234371

URL: https://gcc.gnu.org/viewcvs?rev=234371&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/gcc.target/powerpc/altivec-36.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000-c.c
    trunk/gcc/testsuite/ChangeLog
    trunk/libcpp/ChangeLog
    trunk/libcpp/include/cpplib.h
    trunk/libcpp/macro.c

Reply via email to