This is the mail archive of the gcc-help@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: -fvar-tracking vs -fvar-tracking-assignments


On Tue, 27 Jan 2015, VÃclav Zeman wrote:
> I am wondering, if I should add -fvar-tracking-assignments switch or
> not. From the documentation for the two switches, I gather that
> -fvar-tracking is enabled on any optimization level. But it is not clear
> from -fvar-tracking-assignments documentation whether it is implied by
> -fvar-tracking (which is implied by optimization level) or whether I
> should add -fvar-tracking-assignments separately to my command line?
> 
> So, does -fvar-tracking imply -fvar-tracking-assignments or not?

>From examining the option definition in common.opt, it follows that yes, it is
implied.  If no preference is given on the command line,
var-tracking-assignments flag is set based on var-tracking flag.

The documentation could mention that.  If nobody beats me to that, I'll try to
submit a patch.

Alexander

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