* gcc.dg/lto/20110201-1_0.c: Provide dummy sqrt.
From-SVN: r177593
This commit is contained in:
parent
bbb20f2fb5
commit
b205f1f7fb
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
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>
|
||||
|
||||
* gcc.target/i386/sse-22a.c: New test.
|
||||
|
|
|
@ -16,4 +16,14 @@ foo (_Complex double x, int b)
|
|||
x = 0;
|
||||
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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue