testsuite: Adjust nextafter and skip profile-info-section on AIX.
commit8f81f43f606cd915e96c857c007a4635fc0ea601
authorDavid Edelsohn <dje.gcc@gmail.com>
Wed, 25 Nov 2020 18:53:37 +0000 (25 13:53 -0500)
committerDavid Edelsohn <dje.gcc@gmail.com>
Thu, 26 Nov 2020 01:36:01 +0000 (25 20:36 -0500)
treef10e19779e6c280e102a9e8cdf9eeb4b68727faf
parenta02e304245b5181d0f56adab0756719d876b0c58
testsuite: Adjust nextafter and skip profile-info-section on AIX.

nextafter-2.c builds nextafter-1.c with math.h, but nextafter-1.c
provides prototypes for the functions.  The prototypes can conflict
with the definitions in math.h.  This patch omits the prototypes
when compiling nextafer-2.c.

profile-info-section.c uses the profile-info-section flag that is not
valid on AIX, so skip the test on AIX.

gcc/testsuite/ChangeLog:

* gcc.dg/nextafter-1.c: Omit prototypes if _NEXT_AFTER_2 defined.
* gcc.dg/nextafter-2.c: Define _NEXT_AFTER_2.
* gcc.dg/profile-info-section.c: Skip on AIX.
gcc/testsuite/gcc.dg/nextafter-1.c
gcc/testsuite/gcc.dg/nextafter-2.c
gcc/testsuite/gcc.dg/profile-info-section.c