Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Simon Marchi <simon.marchi@efficios.com>,
	gcc-patches@sourceware.org, gdb-patches@sourceware.org
Cc: binutils@sourceware.org
Subject: Re: [PATCH 3/6] include/diagnostics.h: add DIAGNOSTIC_IGNORE_PARENTHESES
Date: Fri, 20 Nov 2026 10:09:41 +0100	[thread overview]
Message-ID: <eaabfe71-5e67-415e-81b7-dbb0ad328ec5@suse.de> (raw)
In-Reply-To: <20261019165929.792697-4-simon.marchi@efficios.com>

On 10/19/26 6:58 PM, Simon Marchi wrote:
> This is used by a following patch.
> 

Hi Simon,

LGTM.

Approved-By: Tom de Vries <tdevries@suse.de>

Thanks,
- Tom

> Change-Id: I38609e84b9b092170d2da5589fb243f4acd8a2b4
> Cc: binutils@sourceware.org
> ---
>   include/diagnostics.h | 8 ++++++++
>   1 file changed, 8 insertions(+)
> 
> diff --git a/include/diagnostics.h b/include/diagnostics.h
> index 364789d9af7d..8cae8ac7de86 100644
> --- a/include/diagnostics.h
> +++ b/include/diagnostics.h
> @@ -63,6 +63,8 @@
>   # define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL \
>     DIAGNOSTIC_IGNORE ("-Wformat-nonliteral")
>   
> +# define DIAGNOSTIC_IGNORE_PARENTHESES DIAGNOSTIC_IGNORE ("-Wparentheses")
> +
>   # if __has_warning ("-Wuser-defined-warnings")
>   #  define DIAGNOSTIC_IGNORE_USER_DEFINED_WARNINGS \
>      DIAGNOSTIC_IGNORE ("-Wuser-defined-warnings")
> @@ -96,6 +98,8 @@
>   # define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL \
>     DIAGNOSTIC_IGNORE ("-Wformat-nonliteral")
>   
> +# define DIAGNOSTIC_IGNORE_PARENTHESES DIAGNOSTIC_IGNORE ("-Wparentheses")
> +
>   # if __GNUC__ >= 5
>   #  define DIAGNOSTIC_IGNORE_UNUSED_BUT_SET_VARIABLE \
>      DIAGNOSTIC_IGNORE ("-Wunused-but-set-variable")
> @@ -142,6 +146,10 @@
>   # define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL
>   #endif
>   
> +#ifndef DIAGNOSTIC_IGNORE_PARENTHESES
> +# define DIAGNOSTIC_IGNORE_PARENTHESES
> +#endif
> +
>   #ifndef DIAGNOSTIC_IGNORE_USER_DEFINED_WARNINGS
>   # define DIAGNOSTIC_IGNORE_USER_DEFINED_WARNINGS
>   #endif


  reply	other threads:[~2026-11-20  9:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 16:58 [PATCH 0/6] Make SELF_CHECK print operands of comparisons Simon Marchi
2026-10-19 16:58 ` [PATCH 1/6] gdb/unittests: catch gdb_exception_error in scoped_mmap test Simon Marchi
2026-11-20  8:24   ` Tom de Vries
2026-10-19 16:58 ` [PATCH 2/6] gdbsupport/selftest: print expression when selftest fails and re-format Simon Marchi
2026-11-20  9:02   ` Tom de Vries
2026-10-19 16:58 ` [PATCH 3/6] include/diagnostics.h: add DIAGNOSTIC_IGNORE_PARENTHESES Simon Marchi
2026-11-20  9:09   ` Tom de Vries [this message]
2026-10-19 16:58 ` [PATCH 4/6] gdb/gmp-utils: rename gdb_mp{z,q,f}::str to to_string Simon Marchi
2026-11-20  9:58   ` [PATCH 4/6] gdb/gmp-utils: rename gdb_mp{z, q, f}::str " Tom de Vries
2026-10-19 16:58 ` [PATCH 5/6] gdbsupport/selftest: print operand values when a SELF_CHECK fails Simon Marchi
2026-10-27 14:13   ` Tom Tromey
2026-10-27 17:06     ` Simon Marchi
2026-11-20 12:08   ` Tom de Vries
2026-11-21  4:12     ` Simon Marchi
2026-10-19 16:58 ` [PATCH 6/6] gdb: remove manual printing of values in some selftests 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=eaabfe71-5e67-415e-81b7-dbb0ad328ec5@suse.de \
    --to=tdevries@suse.de \
    --cc=binutils@sourceware.org \
    --cc=gcc-patches@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