From 2e14744fcd7820033b91c9516e22eb42b02b5290 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 9 Nov 2018 16:04:52 +0100 Subject: Come up with -fipa-reference-addressable flag. 2018-11-09 Martin Liska * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Rename to ... (ipa_discover_variable_flags): ... this. * common.opt: Come up with new flag -fipa-reference-addressable. * doc/invoke.texi: Document it. * ipa-reference.c (propagate): Call the renamed fn. * ipa-visibility.c (whole_program_function_and_variable_visibility): Likewise. * ipa.c (ipa_discover_readonly_nonaddressable_vars): Renamed to ... (ipa_discover_variable_flags): ... this. Discover non-addressable variables only with the newly added flag. * opts.c: Enable the newly added flag with -O1 and higher optimization level. 2018-11-09 Martin Liska * gcc.dg/tree-ssa/writeonly-2.c: New test. From-SVN: r265969 --- gcc/ipa-reference.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ipa-reference.c') diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c index 43bbdae..6242aef 100644 --- a/gcc/ipa-reference.c +++ b/gcc/ipa-reference.c @@ -705,7 +705,7 @@ propagate (void) if (dump_file) cgraph_node::dump_cgraph (dump_file); - remove_p = ipa_discover_readonly_nonaddressable_vars (); + remove_p = ipa_discover_variable_flags (); generate_summary (); /* Propagate the local information through the call graph to produce -- cgit v1.1