Commit b205f1f7 by Ulrich Weigand Committed by Ulrich Weigand

* gcc.dg/lto/20110201-1_0.c: Provide dummy sqrt.

From-SVN: r177593
parent bbb20f2f
2011-08-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gcc.dg/lto/20110201-1_0.c: Provide dummy sqrt.
2011-08-09 Uros Bizjak <ubizjak@gmail.com> 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/sse-22a.c: New test. * gcc.target/i386/sse-22a.c: New test.
......
...@@ -16,4 +16,14 @@ foo (_Complex double x, int b) ...@@ -16,4 +16,14 @@ foo (_Complex double x, int b)
x = 0; x = 0;
return cabs(x); return cabs(x);
} }
/* We provide a dummy sqrt to avoid link failures on targets that do not
expand sqrt inline. Note that we do not link against libm in order
to ensure cabs is not satisfied by the library, but must be folded. */
double __attribute__((used))
sqrt (double x)
{
return x;
}
int main() { return 0; } int main() { return 0; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment