Skip to content

Commit 68cb841

Browse files
rsalvaterrarobimarko
authored andcommitted
toolchain: add support for GCC 15.1
All patches automatically refreshed. Signed-off-by: Rui Salvaterra <[email protected]> Link: openwrt/openwrt#18600 Signed-off-by: Robert Marko <[email protected]>
1 parent a461f53 commit 68cb841

22 files changed

+682
-0
lines changed

toolchain/gcc/Config.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ choice
1414

1515
config GCC_USE_VERSION_14
1616
bool "gcc 14.x"
17+
18+
config GCC_USE_VERSION_15
19+
bool "gcc 15.x"
1720
endchoice
1821

1922
config GCC_USE_GRAPHITE

toolchain/gcc/Config.version

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ config GCC_VERSION_13
66
default y if GCC_USE_VERSION_13
77
bool
88

9+
config GCC_VERSION_15
10+
default y if GCC_USE_VERSION_15
11+
bool
12+
913
config GCC_VERSION
1014
string
1115
default EXTERNAL_GCC_VERSION if EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
1216
default "12.3.0" if GCC_VERSION_12
1317
default "13.3.0" if GCC_VERSION_13
18+
default "15.1.0" if GCC_VERSION_15
1419
default "14.3.0"
1520

1621
config GCC_USE_DEFAULT_VERSION

toolchain/gcc/common.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ ifeq ($(PKG_VERSION),14.3.0)
4646
PKG_HASH:=e0dc77297625631ac8e50fa92fffefe899a4eb702592da5c32ef04e2293aca3a
4747
endif
4848

49+
ifeq ($(PKG_VERSION),15.1.0)
50+
PKG_HASH:=e2b09ec21660f01fecffb715e0120265216943f038d0e48a9868713e54f06cea
51+
endif
52+
4953
PATCH_DIR=../patches-$(GCC_MAJOR_VERSION).x
5054

5155
BUGURL=http://bugs.openwrt.org/
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
commit 81cc26c706b2bc8c8c1eb1a322e5c5157900836e
2+
Author: Felix Fietkau <[email protected]>
3+
Date: Sun Oct 19 21:45:51 2014 +0000
4+
5+
gcc: do not assume that the Mac OS X filesystem is case insensitive
6+
7+
Signed-off-by: Felix Fietkau <[email protected]>
8+
9+
SVN-Revision: 42973
10+
11+
--- a/include/filenames.h
12+
+++ b/include/filenames.h
13+
@@ -44,11 +44,6 @@ extern "C" {
14+
# define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c)
15+
# define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f)
16+
#else /* not DOSish */
17+
-# if defined(__APPLE__)
18+
-# ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM
19+
-# define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1
20+
-# endif
21+
-# endif /* __APPLE__ */
22+
# define HAS_DRIVE_SPEC(f) (0)
23+
# define IS_DIR_SEPARATOR(c) IS_UNIX_DIR_SEPARATOR (c)
24+
# define IS_ABSOLUTE_PATH(f) IS_UNIX_ABSOLUTE_PATH (f)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- a/gcc/real.h
2+
+++ b/gcc/real.h
3+
@@ -77,8 +77,10 @@ struct GTY(()) real_value {
4+
+ (REAL_VALUE_TYPE_SIZE%HOST_BITS_PER_WIDE_INT ? 1 : 0)) /* round up */
5+
6+
/* Verify the guess. */
7+
+#ifndef __LP64__
8+
extern char test_real_width
9+
[sizeof (REAL_VALUE_TYPE) <= REAL_WIDTH * sizeof (HOST_WIDE_INT) ? 1 : -1];
10+
+#endif
11+
12+
/* Calculate the format for CONST_DOUBLE. We need as many slots as
13+
are necessary to overlay a REAL_VALUE_TYPE on them. This could be
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
commit 098bd91f5eae625c7d2ee621e10930fc4434e5e2
2+
Author: Luka Perkov <[email protected]>
3+
Date: Tue Feb 26 16:16:33 2013 +0000
4+
5+
gcc: don't build documentation
6+
7+
This closes #13039.
8+
9+
Signed-off-by: Luka Perkov <[email protected]>
10+
11+
SVN-Revision: 35807
12+
13+
--- a/gcc/Makefile.in
14+
+++ b/gcc/Makefile.in
15+
@@ -3747,18 +3747,10 @@ doc/gcc.info: $(TEXI_GCC_FILES)
16+
doc/gccint.info: $(TEXI_GCCINT_FILES)
17+
doc/cppinternals.info: $(TEXI_CPPINT_FILES)
18+
19+
-doc/%.info: %.texi
20+
- if [ x$(BUILD_INFO) = xinfo ]; then \
21+
- $(MAKEINFO) $(MAKEINFOFLAGS) -I . -I $(gcc_docdir) \
22+
- -I $(gcc_docdir)/include -o $@ $<; \
23+
- fi
24+
+doc/%.info:
25+
26+
# Duplicate entry to handle renaming of gccinstall.info
27+
-doc/gccinstall.info: $(TEXI_GCCINSTALL_FILES)
28+
- if [ x$(BUILD_INFO) = xinfo ]; then \
29+
- $(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \
30+
- -I $(gcc_docdir)/include -o $@ $<; \
31+
- fi
32+
+doc/gccinstall.info:
33+
34+
doc/cpp.dvi: $(TEXI_CPP_FILES)
35+
doc/gcc.dvi: $(TEXI_GCC_FILES)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Fix https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84790.
2+
MIPS16 functions have a static assembler prologue which clobbers
3+
registers v0 and v1. Add these register clobbers to function call
4+
instructions.
5+
6+
--- a/gcc/config/mips/mips.cc
7+
+++ b/gcc/config/mips/mips.cc
8+
@@ -3293,6 +3293,12 @@ mips_emit_call_insn (rtx pattern, rtx or
9+
emit_insn (gen_update_got_version ());
10+
}
11+
12+
+ if (TARGET_MIPS16 && TARGET_USE_GOT)
13+
+ {
14+
+ clobber_reg (&CALL_INSN_FUNCTION_USAGE (insn), MIPS16_PIC_TEMP);
15+
+ clobber_reg (&CALL_INSN_FUNCTION_USAGE (insn), MIPS_PROLOGUE_TEMP (word_mode));
16+
+ }
17+
+
18+
if (TARGET_MIPS16
19+
&& TARGET_EXPLICIT_RELOCS
20+
&& TARGET_CALL_CLOBBERED_GP)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- a/gcc/gcc.cc
2+
+++ b/gcc/gcc.cc
3+
@@ -992,7 +992,9 @@ proper position among the other output f
4+
#endif
5+
6+
#ifndef LINK_SSP_SPEC
7+
-#ifdef TARGET_LIBC_PROVIDES_SSP
8+
+#if DEFAULT_LIBC == LIBC_MUSL
9+
+#define LINK_SSP_SPEC "-lssp_nonshared"
10+
+#elif defined(TARGET_LIBC_PROVIDES_SSP)
11+
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
12+
"|fstack-protector-strong|fstack-protector-explicit:}"
13+
#else
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
commit ecf7671b769fe96f7b5134be442089f8bdba55d2
2+
Author: Felix Fietkau <[email protected]>
3+
Date: Thu Aug 4 20:29:45 2016 +0200
4+
5+
gcc: add a patch to generate better code with Os on mips
6+
7+
Also happens to reduce compressed code size a bit
8+
9+
Signed-off-by: Felix Fietkau <[email protected]>
10+
11+
--- a/gcc/config/mips/mips.cc
12+
+++ b/gcc/config/mips/mips.cc
13+
@@ -20605,7 +20605,7 @@ mips_option_override (void)
14+
flag_pcc_struct_return = 0;
15+
16+
/* Decide which rtx_costs structure to use. */
17+
- if (optimize_size)
18+
+ if (0 && optimize_size)
19+
mips_cost = &mips_rtx_cost_optimize_size;
20+
else
21+
mips_cost = &mips_rtx_cost_data[mips_tune];
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
commit 8570c4be394cff7282f332f97da2ff569a927ddb
2+
Author: Imre Kaloz <[email protected]>
3+
Date: Wed Feb 2 20:06:12 2011 +0000
4+
5+
fixup arm soft-float symbols
6+
7+
SVN-Revision: 25325
8+
9+
--- a/libgcc/config/arm/t-linux
10+
+++ b/libgcc/config/arm/t-linux
11+
@@ -1,6 +1,10 @@
12+
LIB1ASMSRC = arm/lib1funcs.S
13+
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
14+
- _ctzsi2 _arm_addsubdf3 _arm_addsubsf3
15+
+ _ctzsi2 _arm_addsubdf3 _arm_addsubsf3 \
16+
+ _arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
17+
+ _arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \
18+
+ _arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \
19+
+ _arm_fixsfsi _arm_fixunssfsi
20+
21+
# Just for these, we omit the frame pointer since it makes such a big
22+
# difference.
23+
--- a/gcc/config/arm/linux-elf.h
24+
+++ b/gcc/config/arm/linux-elf.h
25+
@@ -58,8 +58,6 @@
26+
%{shared:-lc} \
27+
%{!shared:%{profile:-lc_p}%{!profile:-lc}}"
28+
29+
-#define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
30+
-
31+
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
32+
33+
#define LINUX_TARGET_LINK_SPEC "%{h*} \

0 commit comments

Comments
 (0)