[PATCH] Don't ICE with -fno-devirtualize (PR tree-optimization/59355)

Jeff Law law@redhat.com
Wed Dec 4 04:30:00 GMT 2013


On 12/03/13 15:36, Jakub Jelinek wrote:
> Hi!
>
> ipa_devirt apparently relies on -fdevirtualize, but -fno-devirtualize
> doesn't turn off -fdevirtualize-speculatively.
>
> I've tried to make it a 3 state option, but then while
> -O2 implied flag_devirtualize == 2 (i.e. normal + speculative),
> -O2 -fdevirtualize would imply flag_devirtualize == 1, which is
> IMHO undesirable, so I went for ignoring -fdevirtualize-speculatively
> if -fdevirtualize is not on.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2013-12-03  Jakub Jelinek  <jakub@redhat.com>
>
> 	PR tree-optimization/59355
> 	* ipa-devirt.c (gate_ipa_devirt): Return false if
> 	!flag_devirtualize.
> 	* opts.c (common_handle_option): Fix comment spelling.
>
> 	* g++.dg/ipa/pr59355.C: New test.
OK.
Jeff



More information about the Gcc-patches mailing list