This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -fvar-tracking vs -fvar-tracking-assignments
- From: Alexander Monakov <amonakov at ispras dot ru>
- To: Václav Zeman <vhaisman at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 27 Jan 2015 20:29:26 +0300 (MSK)
- Subject: Re: -fvar-tracking vs -fvar-tracking-assignments
- Authentication-results: sourceware.org; auth=none
- References: <54C73069 dot 3070809 at gmail dot com>
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