diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2018-10-24 21:55:39 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2018-10-24 21:55:39 +0000 |
commit | f8719680bfd5adf14aa91ce3017d59f7eac7f64e (patch) | |
tree | 1561860e0ec71bca48e6f93ac01c3169d8c0c8b1 /gcc/tree-vectorizer.h | |
parent | f78f04627d5805bbcc07e05a41352b0de36f3dba (diff) | |
download | gcc-f8719680bfd5adf14aa91ce3017d59f7eac7f64e.zip gcc-f8719680bfd5adf14aa91ce3017d59f7eac7f64e.tar.gz gcc-f8719680bfd5adf14aa91ce3017d59f7eac7f64e.tar.bz2 |
gOlogy: do not change code in isolate-paths for warnings only
The isolate-paths pass is activated by various -f flags, but also by
-Wnull-dereference. Most of its codegen changes are conditioned on at
least one of the -f flags, but those that detect, warn about and
isolate paths that return the address of local variables are enabled
even if the pass is activated only by -Wnull-dereference.
-W flags should not cause codegen changes, so this patch makes the
codegen changes conditional on the presence of any of the -f flags
that activate the pass. Should we have a separate option to activate
only this kind of transformation?
for gcc/ChangeLog
* gimple-ssa-isolate-paths.c
(find_implicit_erroneous_behavior): Do not change code if the
pass is running for warnings only.
(find_explicit_erroneous_behavior): Likewise.
From-SVN: r265473
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions