omit-frame-pointer2.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 35 行

C
35
字号
// Reduced from PR c++/5246, PR c++/2447// { dg-options "-O -fomit-frame-pointer" }// { dg-do run }void step (int){  void *sp = __builtin_alloca (0);}void f2 (void){  step (2);  throw int();}void f1 (void){  try    {      step (1);      f2 ();      step (-1);    }  catch (int)    {      step (3);    }}int main (){  f1 ();  return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?