This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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.


Do you
mean to only make this switch useful without optimization (at -O0)?

No. At -O0 this optimization is already disabled (at least in the folder) IIRC.


Thanks,
Tristan.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]