This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] PR41094 testcase: Link against libm
- From: "Andreas Krebbel" <krebbel at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 13 Nov 2009 12:20:46 +0100
- Subject: [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>