public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simark@simark.ca>
Cc: PATCH@sourceware.org,  More@sourceware.org,
	 gdb-patches@sourceware.org, Tom Tromey <tom@tromey.com>,
	 John Baldwin <jhb@FreeBSD.org>,
	 Luis Machado <luis.machado@arm.com>,
	 Pedro Alves <pedro@palves.net>
Subject: Re: [PATCH v2 1/8] Use C++17 [[fallthrough]] attribute
Date: Thu, 30 Nov 2023 12:13:10 -0700	[thread overview]
Message-ID: <87h6l3cawp.fsf@tromey.com> (raw)
In-Reply-To: <23d042a3-7f2a-4af3-ab8b-0f43dc0f275e@simark.ca> (Simon Marchi's message of "Thu, 30 Nov 2023 13:03:35 -0500")

>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:

Simon> Are you able to test building on macos?

No.

Simon>  /Users/jenkins/build/workspace/binutils-gdb_master_macosbuild/platform/macos-amd64/target_board/unix/src/binutils-gdb/gdb/dbxread.c:2809:7: error: fallthrough annotation does not directly precede switch label
Simon>        [[fallthrough]];
Simon>        ^

Can you try the appended?

thanks,
Tom

diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 99d9fba96ea..4947a8e8193 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -2808,7 +2808,6 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name,
       unknown_symtype_complaint (hex_string (type));
       [[fallthrough]];
 
-    define_a_symbol:
       /* These symbol types don't need the address field relocated,
 	 since it is either unused, or is absolute.  */
     case N_GSYM:		/* Global variable.  */
@@ -2820,6 +2819,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name,
     case N_LSYM:		/* Local symbol in stack.  */
     case N_PSYM:		/* Parameter variable.  */
     case N_LENG:		/* Length of preceding symbol type.  */
+    define_a_symbol:
       if (name)
 	{
 	  int deftype;

  reply	other threads:[~2023-11-30 19:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-21 15:27 Tom Tromey
2023-11-21 15:27 ` [PATCH v2 1/8] Use C++17 [[fallthrough]] attribute Tom Tromey
2023-11-30 18:03   ` Simon Marchi
2023-11-30 19:13     ` Tom Tromey [this message]
2023-11-30 21:08       ` Simon Marchi
2023-12-01  3:55         ` Tom Tromey
2023-12-01  4:17           ` Simon Marchi
2023-11-21 15:27 ` [PATCH v2 2/8] Switch to -Wimplicit-fallthrough=5 Tom Tromey
2023-11-21 15:27 ` [PATCH v2 3/8] Enable some C++14 code in array-view.h Tom Tromey
2023-11-21 15:27 ` [PATCH v2 4/8] Use try_emplace in index-write.c Tom Tromey
2023-11-21 15:27 ` [PATCH v2 5/8] Rely on C++17 <new> in new-op.cc Tom Tromey
2023-11-21 15:27 ` [PATCH v2 6/8] Rely on copy elision in scope-exit.h Tom Tromey
2023-11-21 15:27 ` [PATCH v2 7/8] Use C++17 void_t Tom Tromey
2023-11-21 15:27 ` [PATCH v2 8/8] Remove gdb_static_assert Tom Tromey
2023-11-29 23:28 ` (unknown) Tom Tromey

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=87h6l3cawp.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=More@sourceware.org \
    --cc=PATCH@sourceware.org \
    --cc=gdb-patches@sourceware.org \
    --cc=jhb@FreeBSD.org \
    --cc=luis.machado@arm.com \
    --cc=pedro@palves.net \
    --cc=simark@simark.ca \
    /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).