Compare commits

...

No commits in common. "c8" and "a9-beta" have entirely different histories.
c8 ... a9-beta

5 changed files with 577 additions and 216 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/gcc-7.2.0.tar.xz
SOURCES/gcc-12.0.1-20220413.tar.xz

View File

@ -1 +1 @@
08a88199ed94fdf4940d118ba3c07028245cd5b7 SOURCES/gcc-7.2.0.tar.xz
d16b62c4969edb0b17fc14f97bb5c0e153c685d2 SOURCES/gcc-12.0.1-20220413.tar.xz

View File

@ -0,0 +1,40 @@
diff -rupN --no-dereference gcc-12.0.1-20220308/libgomp/libgomp.h gcc-12.0.1-20220308-new/libgomp/libgomp.h
--- gcc-12.0.1-20220308/libgomp/libgomp.h 2022-03-08 12:23:45.000000000 +0100
+++ gcc-12.0.1-20220308-new/libgomp/libgomp.h 2022-03-11 16:00:28.480133277 +0100
@@ -69,6 +69,13 @@
# endif
#endif
+#include <stdio.h>
+#ifdef __MINGW_PRINTF_FORMAT
+#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT
+#else
+#define PRINTF_FORMAT printf
+#endif
+
#ifdef HAVE_ATTRIBUTE_VISIBILITY
# pragma GCC visibility push(hidden)
#endif
@@ -177,7 +184,7 @@ team_free (void *ptr)
extern void gomp_vdebug (int, const char *, va_list);
extern void gomp_debug (int, const char *, ...)
- __attribute__ ((format (printf, 2, 3)));
+ __attribute__ ((format (PRINTF_FORMAT, 2, 3)));
#define gomp_vdebug(KIND, FMT, VALIST) \
do { \
if (__builtin_expect (gomp_debug_var, 0)) \
@@ -190,11 +197,11 @@ extern void gomp_debug (int, const char
} while (0)
extern void gomp_verror (const char *, va_list);
extern void gomp_error (const char *, ...)
- __attribute__ ((format (printf, 1, 2)));
+ __attribute__ ((format (PRINTF_FORMAT, 1, 2)));
extern void gomp_vfatal (const char *, va_list)
__attribute__ ((noreturn));
extern void gomp_fatal (const char *, ...)
- __attribute__ ((noreturn, format (printf, 1, 2)));
+ __attribute__ ((noreturn, format (PRINTF_FORMAT, 1, 2)));
struct gomp_task;
struct gomp_taskgroup;

View File

@ -0,0 +1,30 @@
diff -rupN --no-dereference gcc-12.0.1-20220308/config/intdiv0.m4 gcc-12.0.1-20220308-new/config/intdiv0.m4
--- gcc-12.0.1-20220308/config/intdiv0.m4 2022-03-08 12:23:45.000000000 +0100
+++ gcc-12.0.1-20220308-new/config/intdiv0.m4 2022-03-11 16:00:24.564943437 +0100
@@ -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 -rupN --no-dereference gcc-12.0.1-20220308/libiberty/acinclude.m4 gcc-12.0.1-20220308-new/libiberty/acinclude.m4
--- gcc-12.0.1-20220308/libiberty/acinclude.m4 2022-03-08 12:23:45.000000000 +0100
+++ gcc-12.0.1-20220308-new/libiberty/acinclude.m4 2022-03-11 16:00:24.564943437 +0100
@@ -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;

File diff suppressed because it is too large Load Diff