[PATCH] Add -fno-short-circuit-optimize

Richard Guenther richard.guenther@gmail.com
Fri Aug 22 17:16:00 GMT 2008


On Fri, Aug 22, 2008 at 6:04 PM, Tristan Gingold <gingold@adacore.com> wrote:
>
> On Aug 22, 2008, at 5:53 PM, Richard Guenther wrote:
>
>> On Fri, Aug 22, 2008 at 5:18 PM, Tristan Gingold <gingold@adacore.com>
>> wrote:
>>>
>>> Hi,
>>>
>>> this patch add the -fno-short-circuit-optimize flag do disable
>>> short-circuit
>>> operator
>>> optimized into direct form.
>>>
>>> Disabling this optimization is useful to do MD/DC code coverage using
>>> gcov
>>> on optimized
>>> code (see the new paragraphs added to the gcov documentation).
>>
>> This doesn't catch all places where GCC transforms these.
>
> Argh, I tried to find all of them.  I used grep and examples but I may have
> missed some places.
>
> Do you have specific passes/places in mind.

tree-ssa-phiopt.c, tree-ssa-ifcombine.c and the jump threading code in general.

Richard.



More information about the Gcc-patches mailing list