https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100355
Bug ID: 100355
Summary: gcc.c-torture/execute/ieee/cdivchkld.c needs fmaxl
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: clyon at gcc dot gnu.org
Target Milestone: ---
The new test gcc.c-torture/execute/ieee/cdivchkld.c needs fmaxl(), which may
not be available, for instance on aarch64-elf with newlib.
aarch64-none-elf/bin/ld: /ccwwkiEw.o: in function `match':
cdivchkld.c:(.text+0x200): undefined reference to `fmaxl'
FAIL: gcc.c-torture/execute/ieee/cdivchkld.c compilation, -O0
newlib/libm/common/fmaxl.c contains:
/* On platforms where long double is as wide as double. */
#ifdef _LDBL_EQ_DBL
long double
fmaxl (long double x, long double y)
{
return fmax(x, y);
}
#endif
and fmaxl.o is empty on aarch64.
I am not sure how it should be provided when _LDBL_EQ_DBL is not defined?