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 #8 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
It looks like -m32 simply generates less diagnostics than
with -m64, this has probably nothing to do with pentium2.


gcc -m32 -fsanitize=float-cast-overflow -O2 float-cast-overflow-1.c
./a.out 2> test-32.txt
gcc -m64 -fsanitize=float-cast-overflow -O2 float-cast-overflow-1.c
./a.out 2> test-64.txt
diff -u test-32.txt test-64.txt 
--- test-32.txt 2017-07-15 19:50:01.758377541 +0200
+++ test-64.txt 2017-07-15 19:50:17.444378403 +0200
@@ -79,6 +79,11 @@
 float-cast-overflow-1.c:80:3: runtime error: value 9.22337e+18 is outside the
range of representable values of type 'long long int'
 float-cast-overflow-1.c:80:3: runtime error: value 9.22337e+18 is outside the
range of representable values of type 'long long int'
 float-cast-overflow-1.c:80:3: runtime error: value 9.22337e+18 is outside the
range of representable values of type 'long long int'
+float-cast-overflow-1.c:80:3: runtime error: value 9.22337e+18 is outside the
range of representable values of type 'long long int'
+float-cast-overflow-1.c:80:3: runtime error: value 9.22337e+18 is outside the
range of representable values of type 'long long int'
+float-cast-overflow-1.c:80:3: runtime error: value 9.22337e+18 is outside the
range of representable values of type 'long long int'
+float-cast-overflow-1.c:80:3: runtime error: value 9.22337e+18 is outside the
range of representable values of type 'long long int'
+float-cast-overflow-1.c:80:3: runtime error: value 9.22337e+18 is outside the
range of representable values of type 'long long int'
 float-cast-overflow-1.c:81:3: runtime error: value nan is outside the range of
representable values of type 'long long int'
 float-cast-overflow-1.c:81:3: runtime error: value -nan is outside the range
of representable values of type 'long long int'
 float-cast-overflow-1.c:81:3: runtime error: value inf is outside the range of
representable values of type 'long long int'
@@ -86,6 +91,10 @@
 float-cast-overflow-1.c:85:3: runtime error: value 1.84467e+19 is outside the
range of representable values of type 'long long unsigned int'
 float-cast-overflow-1.c:85:3: runtime error: value 1.84467e+19 is outside the
range of representable values of type 'long long unsigned int'
 float-cast-overflow-1.c:85:3: runtime error: value 1.84467e+19 is outside the
range of representable values of type 'long long unsigned int'
+float-cast-overflow-1.c:85:3: runtime error: value 1.84467e+19 is outside the
range of representable values of type 'long long unsigned int'
+float-cast-overflow-1.c:85:3: runtime error: value 1.84467e+19 is outside the
range of representable values of type 'long long unsigned int'
+float-cast-overflow-1.c:85:3: runtime error: value 1.84467e+19 is outside the
range of representable values of type 'long long unsigned int'
+float-cast-overflow-1.c:85:3: runtime error: value 1.84467e+19 is outside the
range of representable values of type 'long long unsigned int'
 float-cast-overflow-1.c:85:3: runtime error: value 1.84467e+19 is outside the
range of representable values of type 'long long unsigned int'
 float-cast-overflow-1.c:85:3: runtime error: value 1.84467e+19 is outside the
range of representable values of type 'long long unsigned int'
 float-cast-overflow-1.c:85:3: runtime error: value 1.84467e+19 is outside the
range of representable values of type 'long long unsigned int'

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