This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix aix build error with math.h in gcc/sreal.c
- From: Mike Stump <mikestump at comcast dot net>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, Michael Haubenwallner <michael dot haubenwallner at ssi-schaefer dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, David Edelsohn <dje dot gcc at gmail dot com>
- Date: Wed, 17 Dec 2014 14:02:46 -0800
- Subject: Re: fix aix build error with math.h in gcc/sreal.c
- Authentication-results: sourceware.org; auth=none
- References: <54905811 dot 50502 at ssi-schaefer dot com> <CAFiYyc02XiH-ciVMTUb_gcZp1M4f_ORk5_070-d5SA=M7jf1iA at mail dot gmail dot com> <20141216190511 dot GA5043 at kam dot mff dot cuni dot cz> <CAFiYyc3SUYBdaBczDQ-k2Sq_KZPKTp_j-nzmeRQaLnG09e2NPw at mail dot gmail dot com>
On Dec 17, 2014, at 1:34 AM, Richard Biener <richard.guenther@gmail.com> wrote:
> Do we even link GCC with libm …?
Yes. :-) If you grew up on C++, you would realize, -lm as you call it, is just there in C++, always. If you compile with g++ -v, you will even see it.
> Also we don't require a C99 runtime,
With the major version bump, and considering the age of a system that runs an OS from that era, I think these are mainly museum pieces. I think it would be reasonable to add that requirement. I think we should accept any patches from folks that want gcc to still work for whatever reason in such an environment, but, they can use libliberty, autoconfg, gnulib or some other advanced technique to make things work. For exp2, gnulib states:
This function is missing on some platforms: MacOS X 10.3, FreeBSD 5.2.1, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, IRIX 6.5, OSF/1 4.0, Solaris 9, Interix 3.5.
to put a specific context of which systems are affected by this. These tend to be 10 year old systems.