This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: wrap math.h for M_PI et al in target/i386 tests



> On Jul 30, 2019, at 5:22 AM, Uros Bizjak <ubizjak@gmail.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.
>> 
>> for  gcc/testsuite/ChangeLog
>> 
>> * gcc.target/i386/math_m_pi.h: New.
> 
> LGTM, patch also needs approval from testsuite maintainer (CC'd).

Not unreasonable for the x86 maintainer to approve patches like this.  It doesn't impact any non-386 target.

Ok.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]