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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Nov 23 08:08:47 2016
New Revision: 242740

URL: https://gcc.gnu.org/viewcvs?rev=242740&root=gcc&view=rev
Log:
        PR target/78451
        * c-pragma.c (handle_pragma_target): Don't replace
        current_target_pragma, but chainon the new args to the current one.

        * gcc.target/i386/pr78451.c: New test.
        * gcc.target/i386/pr69255-1.c: Use #pragma GCC push_options
        and #pragma GCC pop_options around the first #pragma GCC target.
        * gcc.target/i386/pr69255-2.c: Likewise.
        * gcc.target/i386/pr69255-3.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr78451.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-pragma.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/pr69255-1.c
    trunk/gcc/testsuite/gcc.target/i386/pr69255-2.c
    trunk/gcc/testsuite/gcc.target/i386/pr69255-3.c

Reply via email to