This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Sync libiberty with gcc
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Iain Buclaw <ibuclaw at gdcproject dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 14 Oct 2014 06:58:24 -0700
- Subject: Re: [PATCH] Sync libiberty with gcc
- Authentication-results: sourceware.org; auth=none
- References: <CABOHX+fvzPGoKSc6d_0xhQvhO5VHXUqM1ZSqmgSdAQzmPj-ZDA at mail dot gmail dot com> <20141014133804 dot GA9440 at adacore dot com>
> Unfortunately, this part of the change breaks the build on Solaris 2.9.
> And according to the gnulib documentation that function, it looks like
> it'll break the build on the following hosts:
>
> NetBSD 3.0, OpenBSD 3.8, Minix 3.1.8, IRIX 6.5, OSF/1 4.0,
> Solaris 9, Cygwin, MSVC 9, Interix 3.5, BeOS.
>
> Not knowing D and whether you actually need long-double precision
> or not, I didn't try to fix it. But it looks like the best option
> would probably to add an strtold configure check, and then fallback
> on strtod if strtold isn't available (and error out if strtod isn't)?
Just a quick note to say that I am working on a patch that I'll apply
internally, so I might as well send it to gcc-patches as well.
If it is actually the best way to fix this, then it'll save you
the trouble.
--
Joel