public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: "Martin Liška" <mliska@suse.cz>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] options: Fix variable tracking option processing.
Date: Wed, 13 Oct 2021 14:50:56 +0200	[thread overview]
Message-ID: <CAFiYyc02KozOwFDC7PXfwGafJjhGYSnDDsSN01YV-tZBmpq=WQ@mail.gmail.com> (raw)
In-Reply-To: <0ea9882e-8d7c-f6d4-9262-50e2b3ae5e6c@suse.cz>

On Wed, Oct 13, 2021 at 1:59 PM Martin Liška <mliska@suse.cz> wrote:
>
> On 10/13/21 10:47, Richard Biener wrote:
> > Let's split this;)   The debug_inline_points part is OK.
>
> Fine.
>
> >
> > How can debug_variable_location_views be ever -1?  But the
> > debug_variable_location_views part looks OK as well.
>
> It comes from here:
> gvariable-location-views=incompat5
> Common Driver RejectNegative Var(debug_variable_location_views, -1) Init(2)
>
> but it's fine as using -gvariable-location-views=incompat5 leads to
> OPTION_SET_P(debug_variable_location_views) == true.
>
> >
> > More or less all parts that have the variable assigned in a single
> > place in gcc/ are OK (dwarf2out_as_locview_support).  But the
> > main flag_var_tracking* cases need more thorough view,
> > maybe we can convert them to single-set code first?
>
> I don't think so, your have code like
>
>        if (flag_var_tracking_assignments_toggle)
>         flag_var_tracking_assignments = !flag_var_tracking_assignments;
>
> which makes it more complicated. Or do I miss something?

It does, yes.  But that's a ^ with flag_var_tracking_assignments_toggle ;)

It's also one of the more weird flags, so it could be applied after the
otherwise single set of flag_var_tracking_assignments ...

Richard.

>
> Cheers,
> Martin

  reply	other threads:[~2021-10-13 12:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-11 11:01 Martin Liška
2021-10-11 13:05 ` Richard Biener
2021-10-11 13:21   ` Martin Liška
2021-10-11 13:45     ` Richard Biener
2021-10-12 15:21       ` Martin Liška
2021-10-13  8:47         ` Richard Biener
2021-10-13 11:59           ` Martin Liška
2021-10-13 12:50             ` Richard Biener [this message]
2021-10-13 13:12               ` Martin Liška
2021-10-13 13:29                 ` Richard Biener
2021-10-14 11:10                   ` Martin Liška
2021-10-14 12:07                     ` Richard Biener
2021-10-15 15:22                       ` Martin Liška
2021-10-19  9:12                         ` Richard Biener
2021-10-19  9:34                           ` Martin Liška
2021-10-19 10:53                             ` Richard Biener
2021-10-20  8:51                               ` Martin Liška
2021-10-21  9:57                                 ` Richard Biener
2021-10-21 13:14                                   ` Martin Liška
2021-10-21 13:17                                     ` Richard Biener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFiYyc02KozOwFDC7PXfwGafJjhGYSnDDsSN01YV-tZBmpq=WQ@mail.gmail.com' \
    --to=richard.guenther@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mliska@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).