re PR other/88007 (ICE in gt_ggc_m_S, at ggc-page.c:1474)
authorJakub Jelinek <jakub@redhat.com>
Wed, 14 Nov 2018 12:38:20 +0000 (13:38 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 14 Nov 2018 12:38:20 +0000 (13:38 +0100)
commit8cca0163fb468842f85ac8e8638ea6d1ca2f9181
treecf23cca3962027a5a39d599d84a2973d7a5cc7b0
parent5bfba2b58ddb37c89e0633a2dc48fa8c4430a026
re PR other/88007 (ICE in gt_ggc_m_S, at ggc-page.c:1474)

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.

From-SVN: r266141
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr88007.c [new file with mode: 0644]