This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PR41094 testcase: Link against libm


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>
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]