python/hypothesis: update to 6.122.3
[oi-userland.git] / components / developer / gcc-13 / patches / 0025-i386-use-the-new-style-retpoline-thunk-names-for-ext.patch
blobf8d499f2015596060d9a04cfb4324937139768cd
1 From 6184eaffecbdbbe5dfe1808871ba3c1ff47f2871 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: i386: use the new-style retpoline thunk names for
5 external thunks, because nothing else will work
7 ---
8 gcc/config/i386/i386.cc | 4 +++-
9 1 file changed, 3 insertions(+), 1 deletion(-)
11 diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
12 index 6387a7206f63..174d18505629 100644
13 --- a/gcc/config/i386/i386.cc
14 +++ b/gcc/config/i386/i386.cc
15 @@ -5901,7 +5901,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;