remmina: update to 1.4.37
[oi-userland.git] / components / developer / gcc-13 / patches / 0035-Add-fforce-omit-frame-pointer.patch
blob791ef8c3df888829110eb3d017c49961091de517
1 From a8db46399145170704c8046a6fc8fd3005e20892 Mon Sep 17 00:00:00 2001
2 From: Andy Fiddaman <illumos@fiddaman.net>
3 Date: Wed, 26 Oct 2022 12:53:51 +0000
4 Subject: Add -fforce-omit-frame-pointer
6 ---
7 gcc/common.opt | 4 ++++
8 gcc/config/i386/i386-options.cc | 7 +++++--
9 2 files changed, 9 insertions(+), 2 deletions(-)
11 diff --git a/gcc/common.opt b/gcc/common.opt
12 index d5460f4727c2..e02f3bef41fa 100644
13 --- a/gcc/common.opt
14 +++ b/gcc/common.opt
15 @@ -2230,6 +2230,10 @@ fomit-frame-pointer
16 Common Var(flag_omit_frame_pointer) Optimization
17 When possible do not generate stack frames.
19 +fforce-omit-frame-pointer
20 +Common Var(flag_force_omit_frame_pointer) Optimization
21 +When possible, do not generate stack frames. Hinders debugging with mdb and dtrace.
23 fopenmp-target-simd-clone
24 Common Alias(fopenmp-target-simd-clone=,any,none)
26 diff --git a/gcc/config/i386/i386-options.cc b/gcc/config/i386/i386-options.cc
27 index 50a2511c5e2d..7fe1047185c8 100644
28 --- a/gcc/config/i386/i386-options.cc
29 +++ b/gcc/config/i386/i386-options.cc
30 @@ -2979,8 +2979,11 @@ ix86_option_override_internal (bool main_args_p,
31 * questionable benefit anyway, even on i386.
34 - flag_omit_frame_pointer = 0;
35 - opts->x_flag_omit_frame_pointer = 0;
36 + if (flag_force_omit_frame_pointer == 0)
37 + {
38 + flag_omit_frame_pointer = 0;
39 + opts->x_flag_omit_frame_pointer = 0;
40 + }
42 /* Save the initial options in case the user does function specific
43 options. */