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

--- Comment #12 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Thus

--- a/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-1.c
+++ b/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-1.c
@@ -5,6 +5,16 @@
 #include <limits.h>
 #include "float-cast.h"

+#ifndef LLONG_MAX
+# define LLONG_MAX __LONG_LONG_MAX__
+#endif
+#ifndef LLONG_MIN
+# define LLONG_MIN (-__LONG_LONG_MAX__ - 1LL)
+#endif
+#ifndef ULLONG_MAX
+# define ULLONG_MAX (__LONG_LONG_MAX__ * 2ULL + 1ULL)
+#endif
+
 int
 main (void)
 {

Reply via email to