re PR middle-end/70199 (Crash at -O2 when using labels.)
authorRichard Henderson <rth@redhat.com>
Wed, 16 Mar 2016 16:50:18 +0000 (09:50 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 16 Mar 2016 16:50:18 +0000 (09:50 -0700)
commitaa43616c59fceefa8ad06bfd60e88f17ad31f063
treef650bc6e08ced3e2299e88208f3fcabd0e84f968
parent59608fe587074a6f704d39fd08b6a05f6fb11bf2
re PR middle-end/70199 (Crash at -O2 when using labels.)

PR middle-end/70199

 * function.h (struct function): Add has_forced_label_in_static.
 * gimplify.c (force_labels_r): Set it.
 * lto-streamer-in.c (input_struct_function_base): Read it.
 * lto-streamer-out.c (output_struct_function_base): Write it.
 * tree-inline.c (has_label_address_in_static_1): Remove.
 (copy_forbidden): Remove fndecl parameter; test
 has_forced_label_in_static.
 (inline_forbidden_p): Update call to copy_forbidden.
 (tree_versionable_function_p): Likewise.
 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
 (chkp_versioning): Likewise.
 * tree-inline.h (copy_forbidden): Update decl.

testsuite/
 * gcc.c-torture/compile/pr70199.c: New.

From-SVN: r234261
gcc/ChangeLog
gcc/function.h
gcc/gimplify.c
gcc/ipa-chkp.c
gcc/lto-streamer-in.c
gcc/lto-streamer-out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr70199.c [new file with mode: 0644]
gcc/tree-inline.c
gcc/tree-inline.h