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)
This commit is contained in:
David E. O'Brien 2007-10-02 20:06:14 +00:00
parent bd53924f04
commit efd1233d59
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172419

View File

@ -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)
{