summaryrefslogtreecommitdiff
path: root/patches/gcc-15.1.0-x86_64-pc-elf/0001-platform.patch
blob: 1b3c0f294088262797bb757e45a2d0bb5a319a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- /dev/null
+++ gcc/config/i386/t-x86_64-pc-elf
@@ -0,0 +1,2 @@
+MULTILIB_EXTRA_OPTS += mno-red-zone mcmodel=large fno-gnu-tm fPIE
+CRTSTUFF_T_CFLAGS = -mno-red-zone -mcmodel=large -fno-gnu-tm -fPIE
--- gcc/config.gcc	2024-08-01 10:17:14.000000000 +0200
+++ gcc/config.gcc	2024-09-16 14:03:02.049140896 +0200
@@ -1960,6 +1960,7 @@
 	tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h"
 	;;
 x86_64-*-elf*)
+	tmake_file="${tmake_file} i386/t-x86_64-pc-elf"
 	tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h"
 	;;
 x86_64-*-rtems*)