From: Simon Marchi <simark@simark.ca>
To: Tom Tromey <tom@tromey.com>, Simon Marchi <simon.marchi@ericsson.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Make macOS build warning-free
Date: Mon, 02 Jul 2018 16:53:00 -0000 [thread overview]
Message-ID: <5f9b4ce1-aa8d-30e3-98f9-f2c36c3869c6@simark.ca> (raw)
In-Reply-To: <87woudofal.fsf@tromey.com>
On 2018-07-02 10:58 AM, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@ericsson.com> writes:
>
> Simon> About the gettext / non-literal warning, this is the patch I carry. I tried
> Simon> to dig up why gettext doesn't define _INTL_MAY_RETURN_STRING_ARG for __APPLE_CC__
> Simon> but couldn't find it. My guess is that in a distant past, the Apple compiler
> Simon> did not know about that attribute. You need another change to get rid of the warning
> Simon> though.
>
> Thanks.
>
> I looked into this a little more. It seems like a huge effort, because,
> first, upstream doesn't have this fix; and second, it seems like it
> would have to be imported into gcc first.
>
> Fixing this upstream would probably require the same thing for other
> functions, not just gettext.
_INTL_MAY_RETURN_STRING_ARG thing is a gcc/binutils/gdb addition, on top of the
v0.12.1 version of gettext. So we shouldn't have to deal with upstream gettext
to fix this, since it's just the gcc/binutils/gdb addition that needs to be fixed.
Getting the fixed accepted in gcc shouldn't take took long.
> I think in the meantime I'll just --disable-nls. Perhaps you wouldn't
> mind approving the symfile.c change in isolation.
That bit looks good to me, at least to shut up the compiler. But I'm wondering
if we still need that section_offsets structure, or if we could just replace
it with std::vector<CORE_ADDR>/gdb:array_view<CORE_ADDR>.
Simon
next prev parent reply other threads:[~2018-07-02 16:53 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 [this message]
2018-07-03 13:17 ` Tom Tromey
2018-07-03 15:58 ` Simon Marchi
2018-07-03 17:43 ` Tom Tromey
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=5f9b4ce1-aa8d-30e3-98f9-f2c36c3869c6@simark.ca \
--to=simark@simark.ca \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@ericsson.com \
--cc=tom@tromey.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