Blob Blame History Raw
diff -up binutils-2.37/config/intdiv0.m4.bucfg binutils-2.37/config/intdiv0.m4
--- binutils-2.37/config/intdiv0.m4.bucfg	2021-07-08 13:37:19.000000000 +0200
+++ binutils-2.37/config/intdiv0.m4	2021-07-20 23:32:54.614329820 +0200
@@ -31,10 +31,10 @@ sigfpe_handler (sig) int sig;
   exit (sig != SIGFPE);
 }
 
-int x = 1;
-int y = 0;
-int z;
-int nan;
+volatile int x = 1;
+volatile int y = 0;
+volatile int z;
+volatile int nan;
 
 int main ()
 {
diff -up binutils-2.37/libiberty/acinclude.m4.bucfg binutils-2.37/libiberty/acinclude.m4
--- binutils-2.37/libiberty/acinclude.m4.bucfg	2021-07-20 23:33:34.232852534 +0200
+++ binutils-2.37/libiberty/acinclude.m4	2021-07-20 23:33:50.456657087 +0200
@@ -157,7 +157,7 @@ if test $ac_cv_os_cray = yes; then
 fi
 
 AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
-[AC_TRY_RUN([find_stack_direction ()
+[AC_TRY_RUN([__attribute__ ((noclone,noinline)) find_stack_direction ()
 {
   static char *addr = 0;
   auto char dummy;
diff -up binutils-2.37/libiberty/aclocal.m4.bucfg binutils-2.37/libiberty/aclocal.m4
diff -up binutils-2.37/libiberty/configure.ac.bucfg binutils-2.37/libiberty/configure.ac