This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/84377] gcc-7.3.0 miscompiles truncf128@@GLIBC_2.26 in libm.so
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Feb 2018 09:22:09 +0000
- Subject: [Bug c/84377] gcc-7.3.0 miscompiles truncf128@@GLIBC_2.26 in libm.so
- Auto-submitted: auto-generated
- References: <bug-84377-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84377
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Tried to reproduce this with:
pr84377-test.c:
extern _Float128 truncf128 (_Float128);
int
main ()
{
_Float128 f = truncf128 (1.625);
if (f != 1.0)
__builtin_abort ();
return 0;
}
pr84377.i (#c0 attachment).
gcc -m32 -O2 -std=gnu11 -fgnu89-inline -fno-strict-aliasing -frounding-math
-fstack-protector-all -march=native -fPIC pr84377-test.c pr84377.i -o
pr84377-test
with
gcc version 7.3.1 20180130 (Red Hat 7.3.1-2) (GCC)
but it doesn't fail for me, does it for you? What does -march=native expand
for you (add -v and show the options passed to cc1)?