Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37545259
en ru br
Репозитории ALT
S:10.2.0-alt1_1
5.1: 4.2.2-alt2
4.1: 4.2.2-alt1
4.0: 3.4.4-alt1
3.0: 3.3.1-alt1
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: avr-gcc

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: avr-gcc-config.patch
Скачать


diff -Nrup a/gcc-9.2.0/libiberty/aclocal.m4 b/libiberty/aclocal.m4
--- a/gcc-9.2.0/libiberty/aclocal.m4	2019-01-19 09:01:34.000000000 -0700
+++ b/gcc-9.2.0/libiberty/aclocal.m4	2020-01-09 22:00:27.183312982 -0700
@@ -147,7 +147,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 --git a/config/intdiv0.m4 b/gcc-9.2.0/config/intdiv0.m4
index 55dddcf1..ba906efc 100644
--- a/gcc-9.2.0/config/intdiv0.m4
+++ b/gcc-9.2.0/config/intdiv0.m4
@@ -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 --git a/gcc-9.2.0/libiberty/configure.ac b/gcc-9.2.0/libiberty/configure.ac
index f1ce7601..fc20d228 100644
--- a/gcc-9.2.0/libiberty/configure.ac
+++ b/gcc-9.2.0/libiberty/configure.ac
@@ -661,7 +661,7 @@ if test -z "${setobjs}"; then
   for v in $vars; do
     AC_MSG_CHECKING([for $v])
     AC_CACHE_VAL(libiberty_cv_var_$v,
-      [AC_LINK_IFELSE([AC_LANG_PROGRAM([[int *p;]],[[extern int $v []; p = $v;]])],
+      [AC_LINK_IFELSE([AC_LANG_PROGRAM([[__attribute__ ((used)) int *p;]],[[extern int $v []; p = $v;]])],
 		      [eval "libiberty_cv_var_$v=yes"],
 		      [eval "libiberty_cv_var_$v=no"])])
     if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin