From: Ulrich Weigand Date: Wed, 12 Jan 2005 12:05:47 +0000 (+0000) Subject: * gcc.dg/ftrapv-2.c (labsv): Call labs instead of abs. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1237487644a2e164aee455f99a6925279ecb992e;p=platform%2Fupstream%2Fgcc.git * gcc.dg/ftrapv-2.c (labsv): Call labs instead of abs. From-SVN: r93223 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ee78dce..90a14e2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2005-01-12 Ulrich Weigand + + * gcc.dg/ftrapv-2.c (labsv): Call labs instead of abs. + 2005-01-12 Ben Elliston * g++.dg/warn/Wunused-9.C: Don't XFAIL the +f() case. diff --git a/gcc/testsuite/gcc.dg/ftrapv-2.c b/gcc/testsuite/gcc.dg/ftrapv-2.c index de66129..d79b86d 100644 --- a/gcc/testsuite/gcc.dg/ftrapv-2.c +++ b/gcc/testsuite/gcc.dg/ftrapv-2.c @@ -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))