From: Simon Marchi <simon.marchi@ericsson.com>
To: Pedro Alves <palves@redhat.com>, <gdb-patches@sourceware.org>
Subject: Re: [PATCH 0/1] Build GDB as a C++ program by default
Date: Tue, 19 Apr 2016 15:47:00 -0000 [thread overview]
Message-ID: <571652FA.1010904@ericsson.com> (raw)
In-Reply-To: <57163E3B.50101@redhat.com>
On 16-04-19 10:18 AM, Pedro Alves wrote:
> On 04/19/2016 02:34 PM, Simon Marchi wrote:
>> On 16-04-18 01:27 PM, Pedro Alves wrote:
>>> It's been a long ride, but GDB now builds cleanly as a C++ program on
>>> most supported systems.
>>>
>>> There are a few host-specific files that may be missing the occasional
>>> cast, but for all I know, most of the codebase has been converted and
>>> builds cleanly, with no undefined behavior and no hacks.
>>>
>>> It's time to try building GDB with a C++ compiler by default, which is
>>> what the the following trivial patch does.
>>>
>>> Following the discussion on the gdb@ list, this flips the default on
>>> all hosts, unconditionally.
>
>> Does that mean that all supported hosts have been tested to build in C++?
>
> "all" is a bit too wide. There are simply too many to tell:
>
> https://sourceware.org/gdb/wiki/Systems
>
> I don't know whether VAX or m68k BSD build cleanly, for instance.
> I don't know whether they build cleanly in C-mode, either -- I
> wouldn't be surprised if several of the listed systems on that
> table didn't build today.
>
> It sort of goes back to what you'd call "supported host". If
> nobody's actively caring about such hosts, then it's just
> going to happen that changes elsewhere will accidentally break
> them.
>
> But at least we know that x86-64 NetBSD and FreeBSD build and run
> in C++ mode, which I think is sufficient proxy for all BSDs, in
> the sense that if something else is needed it'll probably be a
> couple malloc casts here and there in the corresponding $arch-nat.c
> files.
>
> AFAIK, all GNU/Linux ports build cleanly.
>
> (Except maybe Xtensa, which may need your small cast patch on
> my github. Is that one still needed?).
>
> MinGW (w64) builds and runs cleanly for me too.
>
> I think the ones pending confirmation are Solaris and QNX.
>
> If we do find some host does trip on some big problem, then we
> can always flip it back to C by default.
>
> Given that the request for testing with --enable-build-with-cxx
> was sent five months ago, and nobody reported breakage (nor success)
> on Solaris/QNX, I think we need to bite the bullet and move forward.
>
> We won't know unless we try.
>
> WDYT?
Yeah, it makes sense. I thought that you wanted to go gradually,
flipping to C++ by default only the hosts we have tested, so that
we see which ones are remaining (and test them).
But I have absolutely no objection with flipping the switch globally :).
next prev parent reply other threads:[~2016-04-19 15:47 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-18 17:27 Pedro Alves
2016-04-18 17:27 ` [PATCH 1/1] " Pedro Alves
2016-04-19 7:34 ` Yao Qi
2016-04-19 13:34 ` [PATCH 0/1] " Simon Marchi
2016-04-19 14:18 ` Pedro Alves
2016-04-19 14:48 ` Eli Zaretskii
2016-04-19 15:03 ` Pedro Alves
2016-04-19 15:23 ` Eli Zaretskii
2016-04-19 15:40 ` Pedro Alves
2016-04-19 15:59 ` Eli Zaretskii
2016-04-19 16:20 ` Pedro Alves
2016-04-19 16:31 ` Eli Zaretskii
2016-04-19 15:41 ` Simon Marchi
2016-04-19 16:32 ` Eli Zaretskii
[not found] ` <AC542571535E904D8E8ADAE745D60B19445B1C11@IRSMSX104.ger.corp.intel.com>
[not found] ` <5716425B.3050707@intel.com>
[not found] ` <57164325.8020408@redhat.com>
2016-04-19 15:20 ` Walfred Tedeschi
2016-04-20 19:56 ` Pedro Alves
2016-04-20 22:16 ` Pedro Alves
2016-04-21 15:18 ` John Baldwin
2016-04-21 16:41 ` Pedro Alves
2016-04-19 15:47 ` Simon Marchi [this message]
2016-04-19 15:50 ` Pedro Alves
2016-04-20 22:27 ` Pedro Alves
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=571652FA.1010904@ericsson.com \
--to=simon.marchi@ericsson.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.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