This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/84377] gcc-7.3.0 miscompiles truncf128@@GLIBC_2.26 in libm.so


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)?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]