[PATCH] tests: Fix specifying constant of double type
Mark Wielaard
mark@klomp.org
Thu Oct 3 09:01:41 GMT 2024
Hi Khem,
On Wed, Oct 02, 2024 at 05:04:08PM -0700, Khem Raj wrote:
> 'd' suffix seems to be not acceptable by clang compiler
Funny, seems like the d suffix is an undocumented GNU extension that
accidentially slipped in because an early/draft standard said 'd'
stood for double, but that was not in the final standard paper.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84717
> Using 'e0' fixes this by keeping value to be same
We could also have just dropped the suffix (no suffix means a double
constant), since the exact value doesn't really matter in this
testcase. But 'e0' certainly works. So pushed as is.
Thanks,
Mark
More information about the Elfutils-devel
mailing list