diff options
author | obrien <obrien@FreeBSD.org> | 2007-10-02 20:06:14 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2007-10-02 20:06:14 +0000 |
commit | afa6784424035e10b7390fe735d6e2b4c2f49f68 (patch) | |
tree | 7d3b121d116ad03a5439e5ce582d5ad9f3251b6a /contrib | |
parent | 6b758fea4c9f89b36517b62eea1a1838daa76601 (diff) | |
download | FreeBSD-src-afa6784424035e10b7390fe735d6e2b4c2f49f68.zip FreeBSD-src-afa6784424035e10b7390fe735d6e2b4c2f49f68.tar.gz |
Do not imply -ftree-vrp with -O2 and above. One must implicitly specify
'-ftree-vrp' if one wants it.
Some bad code generation has been tracked to -ftree-vrp. jdk1{5,6} are
notable examples.
Approved by: re(kensmith)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gcc/opts.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/gcc/opts.c b/contrib/gcc/opts.c index 90a7330..3de5627 100644 --- a/contrib/gcc/opts.c +++ b/contrib/gcc/opts.c @@ -501,7 +501,10 @@ decode_options (unsigned int argc, const char **argv) flag_reorder_functions = 1; flag_tree_store_ccp = 1; flag_tree_store_copy_prop = 1; - flag_tree_vrp = 1; + /* XXX: some issues with ports have been traced to -ftree-vrp. + So remove it from -O2 and above. Note that jdk1{5,6} are affected + and they build with w/-O3 - so we cannot just move it to -O3. */ + // flag_tree_vrp = 1; if (!optimize_size) { |