From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simon.marchi@ericsson.com>
Cc: Tom Tromey <tom@tromey.com>, Simon Marchi <simark@simark.ca>,
<gdb-patches@sourceware.org>
Subject: Re: [RFA] Make macOS build warning-free
Date: Tue, 03 Jul 2018 17:43:00 -0000 [thread overview]
Message-ID: <87va9wmd0k.fsf@tromey.com> (raw)
In-Reply-To: <06af645c-3385-7f78-5aa8-d48566c66a45@ericsson.com> (Simon Marchi's message of "Tue, 3 Jul 2018 11:57:55 -0400")
>>>>> "Simon" == Simon Marchi <simon.marchi@ericsson.com> writes:
Simon> Indeed. I started a prototype, it uncovered an issue about reread_symbol accessing
Simon> objfile::section_offsets out of bounds, so I'm stuck on that.
That sounds bad!
>> I think the symfile.c change isn't enough, btw; the
>> -Wno-deprecated-declarations bit is also required. Otherwise there is at
>> least one error (about the use of syscall). But maybe I could disable that
>> one with a #pragma instead - what do you think?
Simon> About this part, I would prefer if we disabled the warning at the call sites
Simon> instead of disabling the warning across the board, since the warning could be relevant
Simon> sometimes. Or maybe we should look at using a non-deprecated alternative...
Simon> Here's the other patch I've been carrying. If you think it's good, I can finish
Simon> it and push it, or you can steal it.
Simon> + DIAGNOSTIC_PUSH
Simon> + DIAGNOSTIC_IGNORE_DEPRECATED_DECLARATIONS
Simon> res = syscall (SYS___pthread_kill, thread->gdb_port, nsignal);
Simon> + DIAGNOSTIC_POP
I like it but I wonder if it would work with ";" on those lines.
That would make indentation work more nicely in Emacs :)
Simon> #ifdef HAVE_SBRK
Simon> +DIAGNOSTIC_PUSH
Simon> +DIAGNOSTIC_IGNORE_DEPRECATED_DECLARATIONS
Simon> /* Set this before constructing scoped_command_stats. */
Simon> lim_at_start = (char *) sbrk (0);
Simon> +DIAGNOSTIC_POP
Simon> #endif
Perhaps we need an sbrk wrapper so we can limit the damage to a single spot.
Tom
next prev parent reply other threads:[~2018-07-03 17:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-29 16:55 Tom Tromey
2018-06-29 21:34 ` Simon Marchi
2018-07-02 14:58 ` Tom Tromey
2018-07-02 16:53 ` Simon Marchi
2018-07-03 13:17 ` Tom Tromey
2018-07-03 15:58 ` Simon Marchi
2018-07-03 17:43 ` Tom Tromey [this message]
2018-07-13 17:16 ` 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=87va9wmd0k.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=simark@simark.ca \
--cc=simon.marchi@ericsson.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