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 sanitizer/63361] Test case c-c++-common/ubsan/float-cast-overflow-1.c fails on Pentium2


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63361

--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Created attachment 33552
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33552&action=edit
log file with detailed error information

gcc.log, from this command:

make -k check-gcc
RUNTESTFLAGS="ubsan.exp=c-c++-common/ubsan/float-cast-overflow-1.c"

first I did not understand, what is wrong with the output.

but now I see, that the test does only print
10 x "runtime error: value 9.22337e+18 is outside the range of representable
values of type 'long long int'"
but this message is expectet to be print 15 times.

likewise for "runtime error: value 1.84467e+19 is outside the range of
representable values of type 'long long unsigned int'"
it is only printed 11 times, but expected 15 times.

so, it looks like a rounding issue.


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