|
|
50ea6a9 |
diff -Nrup a/gnulib/import/m4/alloca.m4 b/gnulib/import/m4/alloca.m4
|
|
|
50ea6a9 |
--- a/gnulib/import/m4/alloca.m4 2019-11-18 18:49:20.000000000 -0700
|
|
|
50ea6a9 |
+++ b/gnulib/import/m4/alloca.m4 2020-01-11 01:07:36.200483085 -0700
|
|
|
50ea6a9 |
@@ -89,7 +89,7 @@ AC_CACHE_CHECK([stack direction for C al
|
|
|
50ea6a9 |
[ac_cv_c_stack_direction],
|
|
|
50ea6a9 |
[AC_RUN_IFELSE([AC_LANG_SOURCE(
|
|
|
50ea6a9 |
[AC_INCLUDES_DEFAULT
|
|
|
50ea6a9 |
-int
|
|
|
50ea6a9 |
+__attribute__ (noinline,noclone)) int
|
|
|
50ea6a9 |
find_stack_direction (int *addr, int depth)
|
|
|
50ea6a9 |
{
|
|
|
50ea6a9 |
int dir, dummy = 0;
|
|
|
50ea6a9 |
diff -Nrup a/libiberty/aclocal.m4 b/libiberty/aclocal.m4
|
|
|
51337c2 |
--- a/libiberty/aclocal.m4 2019-01-19 09:01:34.000000000 -0700
|
|
|
51337c2 |
+++ b/libiberty/aclocal.m4 2020-01-09 22:00:27.183312982 -0700
|
|
|
50ea6a9 |
@@ -147,7 +147,7 @@ if test $ac_cv_os_cray = yes; then
|
|
|
50ea6a9 |
fi
|
|
|
50ea6a9 |
|
|
|
50ea6a9 |
AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
|
|
|
50ea6a9 |
-[AC_TRY_RUN([find_stack_direction ()
|
|
|
50ea6a9 |
+[AC_TRY_RUN([__attribute__ ((noclone,noinline)) find_stack_direction ()
|
|
|
50ea6a9 |
{
|
|
|
50ea6a9 |
static char *addr = 0;
|
|
|
50ea6a9 |
auto char dummy;
|
|
|
51337c2 |
diff --git a/config/intdiv0.m4 b/config/intdiv0.m4
|
|
|
51337c2 |
index 55dddcf1..ba906efc 100644
|
|
|
51337c2 |
--- a/config/intdiv0.m4
|
|
|
51337c2 |
+++ b/config/intdiv0.m4
|
|
|
51337c2 |
@@ -31,10 +31,10 @@ sigfpe_handler (sig) int sig;
|
|
|
51337c2 |
exit (sig != SIGFPE);
|
|
|
51337c2 |
}
|
|
|
51337c2 |
|
|
|
51337c2 |
-int x = 1;
|
|
|
51337c2 |
-int y = 0;
|
|
|
51337c2 |
-int z;
|
|
|
51337c2 |
-int nan;
|
|
|
51337c2 |
+volatile int x = 1;
|
|
|
51337c2 |
+volatile int y = 0;
|
|
|
51337c2 |
+volatile int z;
|
|
|
51337c2 |
+volatile int nan;
|
|
|
51337c2 |
|
|
|
51337c2 |
int main ()
|
|
|
51337c2 |
{
|
|
|
51337c2 |
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
|
|
|
51337c2 |
index f1ce7601..fc20d228 100644
|
|
|
51337c2 |
--- a/libiberty/configure.ac
|
|
|
51337c2 |
+++ b/libiberty/configure.ac
|
|
|
51337c2 |
@@ -661,7 +661,7 @@ if test -z "${setobjs}"; then
|
|
|
51337c2 |
for v in $vars; do
|
|
|
51337c2 |
AC_MSG_CHECKING([for $v])
|
|
|
51337c2 |
AC_CACHE_VAL(libiberty_cv_var_$v,
|
|
|
51337c2 |
- [AC_LINK_IFELSE([AC_LANG_PROGRAM([[int *p;]],[[extern int $v []; p = $v;]])],
|
|
|
51337c2 |
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[__attribute__ ((used)) int *p;]],[[extern int $v []; p = $v;]])],
|
|
|
51337c2 |
[eval "libiberty_cv_var_$v=yes"],
|
|
|
51337c2 |
[eval "libiberty_cv_var_$v=no"])])
|
|
|
51337c2 |
if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
|