]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Directly declare sqrtf in gcc.dg/pr51867.c
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Feb 2012 18:18:38 +0000 (18:18 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Feb 2012 18:18:38 +0000 (18:18 +0000)
* gcc.dg/pr51867.c: Don't include <math.h>.
(sqrtf): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184279 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr51867.c

index 31de976a14a5504f4caad444f321c8183fd63e7e..e2679dce9a4745269e0675a27638dce6a841097b 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * gcc.dg/pr51867.c: Don't include <math.h>.
+       (sqrtf): Declare.
+
 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
 
        * gcc.dg/lto/20091013-1_1.c: xfail for avr.
index 3f1016e2c8f54a21cae9f3a4964f4e5af0d8c8a5..3e669cf7b46140d0fb84a487f5a0689a8585ad44 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O0 -fno-math-errno -fdump-rtl-expand" } */
-#include <math.h>
+
+extern float sqrtf(float);
 
 float a(float x)
 {