about summary refs log tree commit diff
path: root/soft-fp
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@redhat.com>2018-02-01 20:40:48 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-02-01 20:40:48 +0000
commitf1d7368196e27370dcb5dfa3319e102f33b9ad66 (patch)
treef5cb96139f71bcacc420f32c7919fc1db97d59d8 /soft-fp
parent086ee48eaeaba871a2300daf85469671cc14c7e9 (diff)
downloadglibc-f1d7368196e27370dcb5dfa3319e102f33b9ad66.tar.gz
glibc-f1d7368196e27370dcb5dfa3319e102f33b9ad66.tar.xz
glibc-f1d7368196e27370dcb5dfa3319e102f33b9ad66.zip
Fix -Os log1p, log1pf build (bug 21314).
As reported in bug 21314, building log1p and log1pf fails with -Os
because of a spurious -Wmaybe-uninitialized warning (reported there
for GCC 5 for MIPS, I see it also with GCC 7 for x86_64).  This patch,
based on the patches in the bug, fixes this using the DIAG_* macros.

Tested for x86_64 with -Os that this eliminates those warnings and so
allows the build to progress further.

2018-02-01  Carlos O'Donell  <carlos@redhat.com>
	    Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
	    Joseph Myers  <joseph@codesourcery.com>

	[BZ #21314]
	* sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
	(__log1p): Disable -Wmaybe-uninitialized for -Os around
	computation using c.
	* sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
	(__log1pf): Disable -Wmaybe-uninitialized for -Os around
	computation using c.
Diffstat (limited to 'soft-fp')
0 files changed, 0 insertions, 0 deletions