Re: [PATCH 0/1] Build GDB as a C++ program by default

John Baldwin
2016-04-21T15:18:56Z

On Wednesday, April 20, 2016 08:56:03 PM Pedro Alves wrote:
> On 04/19/2016 04:20 PM, Walfred Tedeschi wrote:
> > Am 4/19/2016 um 4:39 PM schrieb Pedro Alves:
> >> On 04/19/2016 03:36 PM, Walfred Tedeschi wrote:
> >>
> >>> Pedro,
> >>>
> >>> Do you have some data about building GDB on OsX with
> >>> --enable-build-with-cxx?
> >>>
> >>> If not I could give it a try!
> >>
> >> Please do give it a try. Thanks!
> >>
> >
> > There is some issues, i will investigating a bit further.
> > By now i was compiling with Clang, will also try to compile with gcc.
>
> I managed to build a linux x darwin cross compiler here, using the
> osxcross tool.
>
> Indeed, clang++ stumbles on a bunch of issues. But then again, so
> does clang in C-mode.

If you are interested in fixing clang warnings I can submit some patches as
I tend to build gdb with clang on FreeBSD. It gets really unhappy about
unused functions from the VEC() generators which adds quite a bit of noise,
but some of the things it finds are actual bugs (though probably harmless
ones).

--
John Baldwin