Commit 12374876 by Ulrich Weigand Committed by Ulrich Weigand

* gcc.dg/ftrapv-2.c (labsv): Call labs instead of abs.

From-SVN: r93223
parent ef6f5655
2005-01-12 Ulrich Weigand <uweigand@de.ibm.com>
* gcc.dg/ftrapv-2.c (labsv): Call labs instead of abs.
2005-01-12 Ben Elliston <bje@au.ibm.com> 2005-01-12 Ben Elliston <bje@au.ibm.com>
* g++.dg/warn/Wunused-9.C: Don't XFAIL the +f() case. * g++.dg/warn/Wunused-9.C: Don't XFAIL the +f() case.
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
/* { dg-options "-ftrapv" } */ /* { dg-options "-ftrapv" } */
extern void abort(void); extern void abort(void);
extern long labs(long);
int __attribute__((noinline)) int __attribute__((noinline))
iabsv(int a) iabsv(int a)
...@@ -44,7 +45,7 @@ inegv(int a) ...@@ -44,7 +45,7 @@ inegv(int a)
long __attribute__((noinline)) long __attribute__((noinline))
labsv(long a) labsv(long a)
{ {
return abs(a); return labs(a);
} }
long __attribute__((noinline)) long __attribute__((noinline))
......
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