This is the mail archive of the
mailing list for the GCC project.
Re: wrap math.h for M_PI et al in target/i386 tests
- From: Alexandre Oliva <oliva at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 30 Jul 2019 05:49:43 -0300
- Subject: Re: wrap math.h for M_PI et al in target/i386 tests
- References: <firstname.lastname@example.org>
On Jul 17, 2019, Alexandre Oliva <email@example.com> wrote:
> Most but not all of the tests that expect M_PI, M_PI_2 and/or M_PI_4
> to be defined in math.h explicitly exclude one target system that does
> not satisfy this non-standard assumption.
> This patch introduces a wrapper header that includes math.h and then
> conditionally supplies the missing non-standard macro definitions.
> With that, we can drop the dg-skip-if "no M_PI" exclusions.
> Tested on x86_64-linux-gnu, with a regular math.h, and with a "manually
> fixincluded" math.h so as to not define M_PI, M_PI_2 and M_PI_4. Ok to
Alexandre Oliva, freedom fighter he/him https://FSFLA.org/blogs/lxo
Be the change, be Free! FSF Latin America board member
GNU Toolchain Engineer Free Software Evangelist
Hay que enGNUrecerse, pero sin perder la terGNUra jamás - Che GNUevara