This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Statement Frontier Notes, Location Views, and Inlined Entry Point Markers
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 22 Aug 2017 19:29:48 -0300
- Subject: Re: Statement Frontier Notes, Location Views, and Inlined Entry Point Markers
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=aoliva at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6DC2A155DF
- References: <or8tk2eaij.fsf@lxoliva.fsfla.org> <orshi0lbmo.fsf@lxoliva.fsfla.org> <ork22060a6.fsf_-_@lxoliva.fsfla.org> <CAFiYyc10a3nAhhjLDUNxSt0D6PJcyqfASJLPwvaYTGkYFDxM6A@mail.gmail.com>
On Aug 21, 2017, Richard Biener <richard.guenther@gmail.com> wrote:
> +gno-statement-frontiers
> +Common Driver RejectNegative Var(debug_nonbind_markers_p, 0) Init(2)
> +Don't enforce progressive recommended breakpoint locations.
> +
> +gstatement-frontiers
> +Common Driver RejectNegative Var(debug_nonbind_markers_p, 1)
> +Emit progressive recommended breakpoint locations.
> others get away with a single flag and Init(-1). That is, -gstatement-frontiers
> should set it to 1 already and -gno- to 0. Why do you need the explicit
> entry for gno-..?
All debug options that support negation seem to have adopted this idiom;
without it, the negated options end up misparsed as -g with an argument,
and then set_debug_level complains that "no-..." is not a number.
The logic of matching the longest option name prefix doesn't seem to
work very well when options have a prefix that is also a valid option
with a Joined(OrMissing) argument.
The same problem applies to -O: -Ono-fast is not parsed as a negative of
-Ofast, but as -O with no-fast as the argument, even though no
RejectNegative flag is present under Ofast.
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer