[PATCH] PR41094 testcase: Link against libm

Andreas Krebbel krebbel@linux.vnet.ibm.com
Fri Nov 13 13:24:00 GMT 2009


Hi,

the testcase for BZ 41094 currently fails to link when built with -O0
due a missing pow function.

Fixed with the attached patch.

Ok for mainline?

Bye,

-Andreas-


2009-11-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gcc.dg/torture/pr41094.c: Linking against libm is needed for -O0.


Index: gcc/testsuite/gcc.dg/torture/pr41094.c
===================================================================
*** gcc/testsuite/gcc.dg/torture/pr41094.c.orig	2009-11-09 11:20:55.000000000 +0100
--- gcc/testsuite/gcc.dg/torture/pr41094.c	2009-11-13 11:23:25.000000000 +0100
***************
*** 1,5 ****
  /* { dg-do run } */
! /* { dg-options "-ffast-math" } */
  
  #include <math.h>
  
--- 1,5 ----
  /* { dg-do run } */
! /* { dg-options "-ffast-math -lm" } */
  
  #include <math.h>
  



More information about the Gcc-patches mailing list