From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simon.marchi@efficios.com>
Cc: Tom Tromey <tom@tromey.com>,
gdb-patches@sourceware.org, binutils@sourceware.org
Subject: Re: [PATCH] gdb: ignore -Wregister instead of -Wdeprecated-register
Date: Sat, 06 Apr 2024 08:40:42 -0600 [thread overview]
Message-ID: <87wmpalfkl.fsf@tromey.com> (raw)
In-Reply-To: <08ccf2e8-6494-4bb4-bcf3-51bedf24ac24@efficios.com> (Simon Marchi's message of "Fri, 5 Apr 2024 23:26:53 -0400")
>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:
Simon> In ada-lex.l, we already use `DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER`,
Simon> which for Clang translates to ignoring `-Wdeprecated-register` [1]. I think
Simon> that was produced when compiling as C++11, but now that we always compile as
Simon> C++17, Clang produces a `-Wregister` error [2].
>>> Can we just '#define register' in this file or somewhere nearby?
>> We probably can, but ignoring the diagnostic seems safer and less hacky
>> to me.
Simon> Just stumbled on this. Are you ok with the current patch, or would you
Simon> really prefer the #define approach?
It's fine if you want to do it. I should really finish my rewrite of
this lexer. IMO flex causes more problems than it solves.
Tom
next prev parent reply other threads:[~2024-04-06 14:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-11 16:06 Simon Marchi
2024-03-11 17:49 ` Tom Tromey
2024-03-11 17:51 ` Simon Marchi
2024-04-06 3:26 ` Simon Marchi
2024-04-06 14:40 ` Tom Tromey [this message]
2024-04-08 2:58 ` Simon Marchi
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=87wmpalfkl.fsf@tromey.com \
--to=tom@tromey.com \
--cc=binutils@sourceware.org \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@efficios.com \
/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).