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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Nov 14 12:38:20 2018
New Revision: 266141

URL: https://gcc.gnu.org/viewcvs?rev=266141&root=gcc&view=rev
Log:
        PR other/88007
        * c-common.c (parse_optimize_options): Allocate option string from
        opts_obstack rather than as GC memory.  Move the allocation after
        warning for invalid option.

        * gcc.dg/pr88007.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr88007.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to