gettext: fix build with gcc-14; enhance test environment
[oi-userland.git] / components / developer / gcc-10 / patches / 0028-i386-use-the-new-style-retpoline-thunk-names-for-ext.patch
blob42d14d4cc2a31328c4f7e43951f3d9628bd46a48
1 From 0792d4cb1100d0fce63a3925b06e29251f55c702 Mon Sep 17 00:00:00 2001
2 From: Richard Lowe <richlowe@richlowe.net>
3 Date: Wed, 7 Feb 2018 02:13:42 +0000
4 Subject: [PATCH 28/34] i386: use the new-style retpoline thunk names for
5 external thunks, because nothing else will work
7 ---
8 gcc/config/i386/i386.c | 4 +++-
9 1 file changed, 3 insertions(+), 1 deletion(-)
11 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
12 index 14152259bbe..ee7d5a56712 100644
13 --- a/gcc/config/i386/i386.c
14 +++ b/gcc/config/i386/i386.c
15 @@ -5353,7 +5353,9 @@ indirect_thunk_name (char name[32], unsigned int regno,
16 if (regno != INVALID_REGNUM && regno != CX_REG && ret_p)
17 gcc_unreachable ();
19 - if (USE_HIDDEN_LINKONCE)
20 + if (USE_HIDDEN_LINKONCE ||
21 + (cfun && cfun->machine->indirect_branch_type ==
22 + indirect_branch_thunk_extern))
24 const char *prefix;
26 --
27 2.31.1