* gcc.dg/ftrapv-2.c (labsv): Call labs instead of abs.
From-SVN: r93223
This commit is contained in:
parent
ef6f56559b
commit
1237487644
|
@ -1,3 +1,7 @@
|
|||
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>
|
||||
|
||||
* g++.dg/warn/Wunused-9.C: Don't XFAIL the +f() case.
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
/* { dg-options "-ftrapv" } */
|
||||
|
||||
extern void abort(void);
|
||||
extern long labs(long);
|
||||
|
||||
int __attribute__((noinline))
|
||||
iabsv(int a)
|
||||
|
@ -44,7 +45,7 @@ inegv(int a)
|
|||
long __attribute__((noinline))
|
||||
labsv(long a)
|
||||
{
|
||||
return abs(a);
|
||||
return labs(a);
|
||||
}
|
||||
|
||||
long __attribute__((noinline))
|
||||
|
|
Loading…
Reference in New Issue