Skip to content

Commit

Permalink
Add -fforce-omit-frame-pointer (illumos#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Jun 2, 2023
1 parent 7d6780d commit 257828f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions gcc/common.opt
Original file line number Diff line number Diff line change
Expand Up @@ -2230,6 +2230,10 @@ fomit-frame-pointer
Common Var(flag_omit_frame_pointer) Optimization
When possible do not generate stack frames.

fforce-omit-frame-pointer
Common Var(flag_force_omit_frame_pointer) Optimization
When possible, do not generate stack frames. Hinders debugging with mdb and dtrace.

fopenmp-target-simd-clone
Common Alias(fopenmp-target-simd-clone=,any,none)

Expand Down
7 changes: 5 additions & 2 deletions gcc/config/i386/i386-options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2973,8 +2973,11 @@ ix86_option_override_internal (bool main_args_p,
* questionable benefit anyway, even on i386.
*/

flag_omit_frame_pointer = 0;
opts->x_flag_omit_frame_pointer = 0;
if (flag_force_omit_frame_pointer == 0)
{
flag_omit_frame_pointer = 0;
opts->x_flag_omit_frame_pointer = 0;
}

/* Save the initial options in case the user does function specific
options. */
Expand Down

0 comments on commit 257828f

Please sign in to comment.