pr23234.c

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

C
59
字号
/* The problem in this PR was mostly finding a suitable place to insert   the reciprocals of the function arguments.  This test case tries to   test three possible ways of how this may go wrong.  *//* { dg-options "-O2 -ffast-math" } *//* { dg-do compile } *//* The original test case.  */doublef1 (double a, double b, double c){  double y0;  double y1;  if (a == 0.0)    {      y0 = -c / b;      return y0;    }  y0 = c / b;  y1 = a / b;  return y0 * y1;}/* Labels may end up in the middle of a block.  Also bad.  */doublef2 (double a, double b, double c){  double y0;  double y1;a_label:another_label:  if (a == 0.0)    {      y0 = -c / b;      return y0;    }  y0 = c / b;  y1 = a / b;  return y0 * y1;}/* Uses must still be dominated by their defs.  */doublef3 (double a, double b, double c){  double y0;  double y1;  y0 = -c / b;  if (a == 0.0)    {      return y0;    }  y0 = c / b;  y1 = a / b;  return y0 * y1;}

⌨️ 快捷键说明

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