-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
730 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1af8d963e4a74d05a8f2d0f795ea52d2b91f6c50 gcc-10.1.0.tar.xz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/gcc/gcc.c b/gcc/gcc.c | ||
index 9f790db0daf..e6887590ae2 100644 | ||
--- a/gcc/gcc.c | ||
+++ b/gcc/gcc.c | ||
@@ -877,7 +877,8 @@ proper position among the other output files. */ | ||
#ifndef LINK_SSP_SPEC | ||
#ifdef TARGET_LIBC_PROVIDES_SSP | ||
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \ | ||
- "|fstack-protector-strong|fstack-protector-explicit:}" | ||
+ "|fstack-protector-strong|fstack-protector-explicit" \ | ||
+ ":-lssp_nonshared}" | ||
#else | ||
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \ | ||
"|fstack-protector-strong|fstack-protector-explicit" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/gcc/config/i386/pmm_malloc.h b/gcc/config/i386/pmm_malloc.h | ||
index 87344d9383f..ece428df487 100644 | ||
--- a/gcc/config/i386/pmm_malloc.h | ||
+++ b/gcc/config/i386/pmm_malloc.h | ||
@@ -27,12 +27,13 @@ | ||
#include <stdlib.h> | ||
|
||
/* We can't depend on <stdlib.h> since the prototype of posix_memalign | ||
- may not be visible. */ | ||
+ may not be visible and we can't pollute the namespace either. */ | ||
#ifndef __cplusplus | ||
-extern int posix_memalign (void **, size_t, size_t); | ||
+extern int _mm_posix_memalign (void **, size_t, size_t) | ||
#else | ||
-extern "C" int posix_memalign (void **, size_t, size_t) throw (); | ||
+extern "C" int _mm_posix_memalign (void **, size_t, size_t) throw () | ||
#endif | ||
+__asm__("posix_memalign"); | ||
|
||
static __inline void * | ||
_mm_malloc (size_t __size, size_t __alignment) | ||
@@ -42,7 +43,7 @@ _mm_malloc (size_t __size, size_t __alignment) | ||
return malloc (__size); | ||
if (__alignment == 2 || (sizeof (void *) == 8 && __alignment == 4)) | ||
__alignment = sizeof (void *); | ||
- if (posix_memalign (&__ptr, __alignment, __size) == 0) | ||
+ if (_mm_posix_memalign (&__ptr, __alignment, __size) == 0) | ||
return __ptr; | ||
else | ||
return NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/libatomic/testsuite/lib/libatomic.exp b/libatomic/testsuite/lib/libatomic.exp | ||
index 38f3e5673e2..02ec2e8b48a 100644 | ||
--- a/libatomic/testsuite/lib/libatomic.exp | ||
+++ b/libatomic/testsuite/lib/libatomic.exp | ||
@@ -77,6 +77,7 @@ proc libatomic_init { args } { | ||
global ALWAYS_CFLAGS | ||
global CFLAGS | ||
global TOOL_EXECUTABLE TOOL_OPTIONS | ||
+ global BUILD_CC | ||
global GCC_UNDER_TEST | ||
global TESTING_IN_BUILD_TREE | ||
global target_triplet | ||
@@ -92,6 +93,8 @@ proc libatomic_init { args } { | ||
if ![info exists GCC_UNDER_TEST] then { | ||
if [info exists TOOL_EXECUTABLE] { | ||
set GCC_UNDER_TEST $TOOL_EXECUTABLE | ||
+ } elseif [info exists BUILD_CC] { | ||
+ set GCC_UNDER_TEST $BUILD_CC | ||
} else { | ||
set GCC_UNDER_TEST "[find_gcc]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
diff --git a/libgomp/testsuite/Makefile.am b/libgomp/testsuite/Makefile.am | ||
index 655a413c160..916e9d30f15 100644 | ||
--- a/libgomp/testsuite/Makefile.am | ||
+++ b/libgomp/testsuite/Makefile.am | ||
@@ -14,6 +14,13 @@ RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir | ||
|
||
EXTRA_DEJAGNU_SITE_CONFIG = libgomp-site-extra.exp | ||
|
||
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp | ||
+ | ||
+extra.exp: | ||
+ echo 'set BUILD_CC "$(CC)"' > [email protected] | ||
+ mv [email protected] $@ | ||
+ | ||
+ | ||
# Instead of directly in ../testsuite/libgomp-test-support.exp.in, the | ||
# following variables have to be "routed through" this Makefile, for expansion | ||
# of the several (Makefile) variables used therein. | ||
diff --git a/libgomp/testsuite/Makefile.in b/libgomp/testsuite/Makefile.in | ||
index 52aa6c5fbc9..617da8ddbf2 100644 | ||
--- a/libgomp/testsuite/Makefile.in | ||
+++ b/libgomp/testsuite/Makefile.in | ||
@@ -311,6 +311,7 @@ _RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \ | ||
echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi) | ||
|
||
RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir | ||
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp | ||
EXTRA_DEJAGNU_SITE_CONFIG = libgomp-site-extra.exp | ||
all: all-am | ||
|
||
@@ -475,6 +476,10 @@ uninstall-am: | ||
.PRECIOUS: Makefile | ||
|
||
|
||
+extra.exp: | ||
+ echo 'set BUILD_CC "$(CC)"' > [email protected] | ||
+ mv [email protected] $@ | ||
+ | ||
# Instead of directly in ../testsuite/libgomp-test-support.exp.in, the | ||
# following variables have to be "routed through" this Makefile, for expansion | ||
# of the several (Makefile) variables used therein. | ||
diff --git a/libgomp/testsuite/lib/libgomp.exp b/libgomp/testsuite/lib/libgomp.exp | ||
index ee5f0e57b19..183081b5802 100644 | ||
--- a/libgomp/testsuite/lib/libgomp.exp | ||
+++ b/libgomp/testsuite/lib/libgomp.exp | ||
@@ -68,6 +68,7 @@ proc libgomp_init { args } { | ||
global ALWAYS_CFLAGS | ||
global CFLAGS | ||
global TOOL_EXECUTABLE TOOL_OPTIONS | ||
+ global BUILD_CC | ||
global GCC_UNDER_TEST | ||
global TESTING_IN_BUILD_TREE | ||
global target_triplet | ||
@@ -90,6 +91,8 @@ proc libgomp_init { args } { | ||
if ![info exists GCC_UNDER_TEST] then { | ||
if [info exists TOOL_EXECUTABLE] { | ||
set GCC_UNDER_TEST $TOOL_EXECUTABLE | ||
+ } elseif [info exists BUILD_CC] { | ||
+ set GCC_UNDER_TEST $BUILD_CC | ||
} else { | ||
set GCC_UNDER_TEST "[find_gcc]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
diff --git a/libitm/testsuite/Makefile.am b/libitm/testsuite/Makefile.am | ||
index 41cfbc46e4b..16f82bdf691 100644 | ||
--- a/libitm/testsuite/Makefile.am | ||
+++ b/libitm/testsuite/Makefile.am | ||
@@ -11,3 +11,9 @@ EXPECT = $(shell if test -f $(top_builddir)/../expect/expect; then \ | ||
_RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \ | ||
echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi) | ||
RUNTEST = $(_RUNTEST) $(AM_RUNTESTFLAGS) | ||
+ | ||
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp | ||
+ | ||
+extra.exp: | ||
+ echo 'set BUILD_CC "$(CC)"' > [email protected] | ||
+ mv [email protected] $@ | ||
diff --git a/libitm/testsuite/Makefile.in b/libitm/testsuite/Makefile.in | ||
index 120696d1c25..18633fd748a 100644 | ||
--- a/libitm/testsuite/Makefile.in | ||
+++ b/libitm/testsuite/Makefile.in | ||
@@ -286,6 +286,7 @@ _RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \ | ||
echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi) | ||
|
||
RUNTEST = $(_RUNTEST) $(AM_RUNTESTFLAGS) | ||
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp | ||
all: all-am | ||
|
||
.SUFFIXES: | ||
@@ -493,6 +494,10 @@ uninstall-am: | ||
.PRECIOUS: Makefile | ||
|
||
|
||
+extra.exp: | ||
+ echo 'set BUILD_CC "$(CC)"' > [email protected] | ||
+ mv [email protected] $@ | ||
+ | ||
# Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
# Otherwise a system limit (for SysV at least) may be exceeded. | ||
.NOEXPORT: | ||
diff --git a/libitm/testsuite/lib/libitm.exp b/libitm/testsuite/lib/libitm.exp | ||
index b3d247b9f98..47c2cd55dac 100644 | ||
--- a/libitm/testsuite/lib/libitm.exp | ||
+++ b/libitm/testsuite/lib/libitm.exp | ||
@@ -77,6 +77,7 @@ proc libitm_init { args } { | ||
global ALWAYS_CFLAGS | ||
global CFLAGS | ||
global TOOL_EXECUTABLE TOOL_OPTIONS | ||
+ global BUILD_CC | ||
global GCC_UNDER_TEST | ||
global TESTING_IN_BUILD_TREE | ||
global target_triplet | ||
@@ -92,6 +93,8 @@ proc libitm_init { args } { | ||
if ![info exists GCC_UNDER_TEST] then { | ||
if [info exists TOOL_EXECUTABLE] { | ||
set GCC_UNDER_TEST $TOOL_EXECUTABLE | ||
+ } elseif [info exists BUILD_CC] { | ||
+ set GCC_UNDER_TEST $BUILD_CC | ||
} else { | ||
set GCC_UNDER_TEST "[find_gcc]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
diff --git a/libvtv/testsuite/Makefile.am b/libvtv/testsuite/Makefile.am | ||
index 41cfbc46e4b..16f82bdf691 100644 | ||
--- a/libvtv/testsuite/Makefile.am | ||
+++ b/libvtv/testsuite/Makefile.am | ||
@@ -11,3 +11,9 @@ EXPECT = $(shell if test -f $(top_builddir)/../expect/expect; then \ | ||
_RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \ | ||
echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi) | ||
RUNTEST = $(_RUNTEST) $(AM_RUNTESTFLAGS) | ||
+ | ||
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp | ||
+ | ||
+extra.exp: | ||
+ echo 'set BUILD_CC "$(CC)"' > [email protected] | ||
+ mv [email protected] $@ | ||
diff --git a/libvtv/testsuite/Makefile.in b/libvtv/testsuite/Makefile.in | ||
index cb804c442d6..6984c568260 100644 | ||
--- a/libvtv/testsuite/Makefile.in | ||
+++ b/libvtv/testsuite/Makefile.in | ||
@@ -281,6 +281,7 @@ _RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \ | ||
echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi) | ||
|
||
RUNTEST = $(_RUNTEST) $(AM_RUNTESTFLAGS) | ||
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp | ||
all: all-am | ||
|
||
.SUFFIXES: | ||
@@ -488,6 +489,10 @@ uninstall-am: | ||
.PRECIOUS: Makefile | ||
|
||
|
||
+extra.exp: | ||
+ echo 'set BUILD_CC "$(CC)"' > [email protected] | ||
+ mv [email protected] $@ | ||
+ | ||
# Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
# Otherwise a system limit (for SysV at least) may be exceeded. | ||
.NOEXPORT: | ||
diff --git a/libvtv/testsuite/lib/libvtv.exp b/libvtv/testsuite/lib/libvtv.exp | ||
index 4b71c9ce7bc..ef06e4a3199 100644 | ||
--- a/libvtv/testsuite/lib/libvtv.exp | ||
+++ b/libvtv/testsuite/lib/libvtv.exp | ||
@@ -76,6 +76,7 @@ proc libvtv_init { args } { | ||
global ALWAYS_CFLAGS | ||
global CFLAGS | ||
global TOOL_EXECUTABLE TOOL_OPTIONS | ||
+ global BUILD_CC | ||
global GCC_UNDER_TEST | ||
global TESTING_IN_BUILD_TREE | ||
global target_triplet | ||
@@ -91,6 +92,8 @@ proc libvtv_init { args } { | ||
if ![info exists GCC_UNDER_TEST] then { | ||
if [info exists TOOL_EXECUTABLE] { | ||
set GCC_UNDER_TEST $TOOL_EXECUTABLE | ||
+ } elseif [info exists BUILD_CC] { | ||
+ set GCC_UNDER_TEST $BUILD_CC | ||
} else { | ||
set GCC_UNDER_TEST "[find_gcc]" | ||
} |
Oops, something went wrong.