Skip to content

Commit b3d6497

Browse files
committed
Added gcc-10.1.0 patches
1 parent 5171ee8 commit b3d6497

12 files changed

+730
-0
lines changed

hashes/gcc-10.1.0.tar.xz.sha1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1af8d963e4a74d05a8f2d0f795ea52d2b91f6c50 gcc-10.1.0.tar.xz
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/gcc/gcc.c b/gcc/gcc.c
2+
index 9f790db0daf..e6887590ae2 100644
3+
--- a/gcc/gcc.c
4+
+++ b/gcc/gcc.c
5+
@@ -877,7 +877,8 @@ proper position among the other output files. */
6+
#ifndef LINK_SSP_SPEC
7+
#ifdef TARGET_LIBC_PROVIDES_SSP
8+
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
9+
- "|fstack-protector-strong|fstack-protector-explicit:}"
10+
+ "|fstack-protector-strong|fstack-protector-explicit" \
11+
+ ":-lssp_nonshared}"
12+
#else
13+
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
14+
"|fstack-protector-strong|fstack-protector-explicit" \
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
diff --git a/gcc/config/i386/pmm_malloc.h b/gcc/config/i386/pmm_malloc.h
2+
index 87344d9383f..ece428df487 100644
3+
--- a/gcc/config/i386/pmm_malloc.h
4+
+++ b/gcc/config/i386/pmm_malloc.h
5+
@@ -27,12 +27,13 @@
6+
#include <stdlib.h>
7+
8+
/* We can't depend on <stdlib.h> since the prototype of posix_memalign
9+
- may not be visible. */
10+
+ may not be visible and we can't pollute the namespace either. */
11+
#ifndef __cplusplus
12+
-extern int posix_memalign (void **, size_t, size_t);
13+
+extern int _mm_posix_memalign (void **, size_t, size_t)
14+
#else
15+
-extern "C" int posix_memalign (void **, size_t, size_t) throw ();
16+
+extern "C" int _mm_posix_memalign (void **, size_t, size_t) throw ()
17+
#endif
18+
+__asm__("posix_memalign");
19+
20+
static __inline void *
21+
_mm_malloc (size_t __size, size_t __alignment)
22+
@@ -42,7 +43,7 @@ _mm_malloc (size_t __size, size_t __alignment)
23+
return malloc (__size);
24+
if (__alignment == 2 || (sizeof (void *) == 8 && __alignment == 4))
25+
__alignment = sizeof (void *);
26+
- if (posix_memalign (&__ptr, __alignment, __size) == 0)
27+
+ if (_mm_posix_memalign (&__ptr, __alignment, __size) == 0)
28+
return __ptr;
29+
else
30+
return NULL;
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/libatomic/testsuite/lib/libatomic.exp b/libatomic/testsuite/lib/libatomic.exp
2+
index 38f3e5673e2..02ec2e8b48a 100644
3+
--- a/libatomic/testsuite/lib/libatomic.exp
4+
+++ b/libatomic/testsuite/lib/libatomic.exp
5+
@@ -77,6 +77,7 @@ proc libatomic_init { args } {
6+
global ALWAYS_CFLAGS
7+
global CFLAGS
8+
global TOOL_EXECUTABLE TOOL_OPTIONS
9+
+ global BUILD_CC
10+
global GCC_UNDER_TEST
11+
global TESTING_IN_BUILD_TREE
12+
global target_triplet
13+
@@ -92,6 +93,8 @@ proc libatomic_init { args } {
14+
if ![info exists GCC_UNDER_TEST] then {
15+
if [info exists TOOL_EXECUTABLE] {
16+
set GCC_UNDER_TEST $TOOL_EXECUTABLE
17+
+ } elseif [info exists BUILD_CC] {
18+
+ set GCC_UNDER_TEST $BUILD_CC
19+
} else {
20+
set GCC_UNDER_TEST "[find_gcc]"
21+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
diff --git a/libgomp/testsuite/Makefile.am b/libgomp/testsuite/Makefile.am
2+
index 655a413c160..916e9d30f15 100644
3+
--- a/libgomp/testsuite/Makefile.am
4+
+++ b/libgomp/testsuite/Makefile.am
5+
@@ -14,6 +14,13 @@ RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
6+
7+
EXTRA_DEJAGNU_SITE_CONFIG = libgomp-site-extra.exp
8+
9+
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp
10+
+
11+
+extra.exp:
12+
+ echo 'set BUILD_CC "$(CC)"' > [email protected]
13+
14+
+
15+
+
16+
# Instead of directly in ../testsuite/libgomp-test-support.exp.in, the
17+
# following variables have to be "routed through" this Makefile, for expansion
18+
# of the several (Makefile) variables used therein.
19+
diff --git a/libgomp/testsuite/Makefile.in b/libgomp/testsuite/Makefile.in
20+
index 52aa6c5fbc9..617da8ddbf2 100644
21+
--- a/libgomp/testsuite/Makefile.in
22+
+++ b/libgomp/testsuite/Makefile.in
23+
@@ -311,6 +311,7 @@ _RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \
24+
echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi)
25+
26+
RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
27+
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp
28+
EXTRA_DEJAGNU_SITE_CONFIG = libgomp-site-extra.exp
29+
all: all-am
30+
31+
@@ -475,6 +476,10 @@ uninstall-am:
32+
.PRECIOUS: Makefile
33+
34+
35+
+extra.exp:
36+
+ echo 'set BUILD_CC "$(CC)"' > [email protected]
37+
38+
+
39+
# Instead of directly in ../testsuite/libgomp-test-support.exp.in, the
40+
# following variables have to be "routed through" this Makefile, for expansion
41+
# of the several (Makefile) variables used therein.
42+
diff --git a/libgomp/testsuite/lib/libgomp.exp b/libgomp/testsuite/lib/libgomp.exp
43+
index ee5f0e57b19..183081b5802 100644
44+
--- a/libgomp/testsuite/lib/libgomp.exp
45+
+++ b/libgomp/testsuite/lib/libgomp.exp
46+
@@ -68,6 +68,7 @@ proc libgomp_init { args } {
47+
global ALWAYS_CFLAGS
48+
global CFLAGS
49+
global TOOL_EXECUTABLE TOOL_OPTIONS
50+
+ global BUILD_CC
51+
global GCC_UNDER_TEST
52+
global TESTING_IN_BUILD_TREE
53+
global target_triplet
54+
@@ -90,6 +91,8 @@ proc libgomp_init { args } {
55+
if ![info exists GCC_UNDER_TEST] then {
56+
if [info exists TOOL_EXECUTABLE] {
57+
set GCC_UNDER_TEST $TOOL_EXECUTABLE
58+
+ } elseif [info exists BUILD_CC] {
59+
+ set GCC_UNDER_TEST $BUILD_CC
60+
} else {
61+
set GCC_UNDER_TEST "[find_gcc]"
62+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
diff --git a/libitm/testsuite/Makefile.am b/libitm/testsuite/Makefile.am
2+
index 41cfbc46e4b..16f82bdf691 100644
3+
--- a/libitm/testsuite/Makefile.am
4+
+++ b/libitm/testsuite/Makefile.am
5+
@@ -11,3 +11,9 @@ EXPECT = $(shell if test -f $(top_builddir)/../expect/expect; then \
6+
_RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \
7+
echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi)
8+
RUNTEST = $(_RUNTEST) $(AM_RUNTESTFLAGS)
9+
+
10+
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp
11+
+
12+
+extra.exp:
13+
+ echo 'set BUILD_CC "$(CC)"' > [email protected]
14+
15+
diff --git a/libitm/testsuite/Makefile.in b/libitm/testsuite/Makefile.in
16+
index 120696d1c25..18633fd748a 100644
17+
--- a/libitm/testsuite/Makefile.in
18+
+++ b/libitm/testsuite/Makefile.in
19+
@@ -286,6 +286,7 @@ _RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \
20+
echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi)
21+
22+
RUNTEST = $(_RUNTEST) $(AM_RUNTESTFLAGS)
23+
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp
24+
all: all-am
25+
26+
.SUFFIXES:
27+
@@ -493,6 +494,10 @@ uninstall-am:
28+
.PRECIOUS: Makefile
29+
30+
31+
+extra.exp:
32+
+ echo 'set BUILD_CC "$(CC)"' > [email protected]
33+
34+
+
35+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
36+
# Otherwise a system limit (for SysV at least) may be exceeded.
37+
.NOEXPORT:
38+
diff --git a/libitm/testsuite/lib/libitm.exp b/libitm/testsuite/lib/libitm.exp
39+
index b3d247b9f98..47c2cd55dac 100644
40+
--- a/libitm/testsuite/lib/libitm.exp
41+
+++ b/libitm/testsuite/lib/libitm.exp
42+
@@ -77,6 +77,7 @@ proc libitm_init { args } {
43+
global ALWAYS_CFLAGS
44+
global CFLAGS
45+
global TOOL_EXECUTABLE TOOL_OPTIONS
46+
+ global BUILD_CC
47+
global GCC_UNDER_TEST
48+
global TESTING_IN_BUILD_TREE
49+
global target_triplet
50+
@@ -92,6 +93,8 @@ proc libitm_init { args } {
51+
if ![info exists GCC_UNDER_TEST] then {
52+
if [info exists TOOL_EXECUTABLE] {
53+
set GCC_UNDER_TEST $TOOL_EXECUTABLE
54+
+ } elseif [info exists BUILD_CC] {
55+
+ set GCC_UNDER_TEST $BUILD_CC
56+
} else {
57+
set GCC_UNDER_TEST "[find_gcc]"
58+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
diff --git a/libvtv/testsuite/Makefile.am b/libvtv/testsuite/Makefile.am
2+
index 41cfbc46e4b..16f82bdf691 100644
3+
--- a/libvtv/testsuite/Makefile.am
4+
+++ b/libvtv/testsuite/Makefile.am
5+
@@ -11,3 +11,9 @@ EXPECT = $(shell if test -f $(top_builddir)/../expect/expect; then \
6+
_RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \
7+
echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi)
8+
RUNTEST = $(_RUNTEST) $(AM_RUNTESTFLAGS)
9+
+
10+
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp
11+
+
12+
+extra.exp:
13+
+ echo 'set BUILD_CC "$(CC)"' > [email protected]
14+
15+
diff --git a/libvtv/testsuite/Makefile.in b/libvtv/testsuite/Makefile.in
16+
index cb804c442d6..6984c568260 100644
17+
--- a/libvtv/testsuite/Makefile.in
18+
+++ b/libvtv/testsuite/Makefile.in
19+
@@ -281,6 +281,7 @@ _RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \
20+
echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi)
21+
22+
RUNTEST = $(_RUNTEST) $(AM_RUNTESTFLAGS)
23+
+EXTRA_DEJAGNU_SITE_CONFIG = extra.exp
24+
all: all-am
25+
26+
.SUFFIXES:
27+
@@ -488,6 +489,10 @@ uninstall-am:
28+
.PRECIOUS: Makefile
29+
30+
31+
+extra.exp:
32+
+ echo 'set BUILD_CC "$(CC)"' > [email protected]
33+
34+
+
35+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
36+
# Otherwise a system limit (for SysV at least) may be exceeded.
37+
.NOEXPORT:
38+
diff --git a/libvtv/testsuite/lib/libvtv.exp b/libvtv/testsuite/lib/libvtv.exp
39+
index 4b71c9ce7bc..ef06e4a3199 100644
40+
--- a/libvtv/testsuite/lib/libvtv.exp
41+
+++ b/libvtv/testsuite/lib/libvtv.exp
42+
@@ -76,6 +76,7 @@ proc libvtv_init { args } {
43+
global ALWAYS_CFLAGS
44+
global CFLAGS
45+
global TOOL_EXECUTABLE TOOL_OPTIONS
46+
+ global BUILD_CC
47+
global GCC_UNDER_TEST
48+
global TESTING_IN_BUILD_TREE
49+
global target_triplet
50+
@@ -91,6 +92,8 @@ proc libvtv_init { args } {
51+
if ![info exists GCC_UNDER_TEST] then {
52+
if [info exists TOOL_EXECUTABLE] {
53+
set GCC_UNDER_TEST $TOOL_EXECUTABLE
54+
+ } elseif [info exists BUILD_CC] {
55+
+ set GCC_UNDER_TEST $BUILD_CC
56+
} else {
57+
set GCC_UNDER_TEST "[find_gcc]"
58+
}

0 commit comments

Comments
 (0)