]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ipa.c
Come up with -fipa-reference-addressable flag.
authorMartin Liska <mliska@suse.cz>
Fri, 9 Nov 2018 15:04:52 +0000 (16:04 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 9 Nov 2018 15:04:52 +0000 (15:04 +0000)
commit2e14744fcd7820033b91c9516e22eb42b02b5290
treecd0f6b1d8e87c8bebf1881f75790b1da936e3006
parent9ed3186036f25d9dd870cc2a02bfdf6fc31cde42
Come up with -fipa-reference-addressable flag.

2018-11-09  Martin Liska  <mliska@suse.cz>

* 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  <mliska@suse.cz>

* gcc.dg/tree-ssa/writeonly-2.c: New test.

From-SVN: r265969
gcc/ChangeLog
gcc/cgraph.h
gcc/common.opt
gcc/doc/invoke.texi
gcc/ipa-reference.c
gcc/ipa-visibility.c
gcc/ipa.c
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/writeonly-2.c [new file with mode: 0644]