ldbl-128ibm-compat: Fix selection of GNU and ISO C99 scanf
authorGabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Wed, 27 Nov 2019 16:06:50 +0000 (10:06 -0600)
committerGabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Fri, 13 Dec 2019 21:01:25 +0000 (18:01 -0300)
commit348787f06902b971d76dbab3f05d54c0b5c36131
tree164d3002ac2aca6eb902df3d9bcbbeae755e9caf
parent8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17
ldbl-128ibm-compat: Fix selection of GNU and ISO C99 scanf

Since commit

commit 03992356e6fedc5a5e9d32df96c1a2c79ea28a8f
Author: Zack Weinberg <zackw@panix.com>
Date:   Sat Feb 10 11:58:35 2018 -0500

    Use C99-compliant scanf under _GNU_SOURCE with modern compilers.

the selection of the GNU versions of scanf functions requires both
_GNU_SOURCE and -std=c89.  This patch changes the tests in
ldbl-128ibm-compat so that they actually test the GNU versions (without
this change, the redirection to the ISO C99 version always happens, so
GNU versions of the new implementation (e.g. __scanfieee128) were left
untested).

Tested for powerpc64le.

Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
sysdeps/ieee754/ldbl-128ibm-compat/Makefile
sysdeps/ieee754/ldbl-128ibm-compat/test-scanf-ldbl-compat.c
sysdeps/ieee754/ldbl-128ibm-compat/test-wscanf-ldbl-compat.c