From: John David Anglin Date: Tue, 14 Feb 2006 00:22:04 +0000 (+0000) Subject: quadlib.c: Use defines instead of enum qfcmp_magic. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fe4610e618b184172ecaa49fb4729e7c349025c;p=platform%2Fupstream%2Fgcc.git quadlib.c: Use defines instead of enum qfcmp_magic. * pa/quadlib.c: Use defines instead of enum qfcmp_magic. From-SVN: r110947 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a1a30e3..53af55e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-02-13 John David Anglin + + * pa/quadlib.c: Use defines instead of enum qfcmp_magic. + 2006-02-13 Zdenek Dvorak PR rtl-optimization/26235 diff --git a/gcc/config/pa/quadlib.c b/gcc/config/pa/quadlib.c index bce99d2..1e66021 100644 --- a/gcc/config/pa/quadlib.c +++ b/gcc/config/pa/quadlib.c @@ -1,5 +1,5 @@ /* Subroutines for long double support. - Copyright (C) 2000, 2002, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2000, 2002, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GCC. @@ -27,16 +27,20 @@ along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -/* HPUX TFmode compare requires a library call to _U_Qfcmp, which takes a - magic number as its third argument, that indicates what to do. - The return value is an integer to be compared against zero. */ -enum qfcmp_magic { - QCMP_INV = 1, /* Raise FP_INVALID on SNaN as a side effect. */ - QCMP_UNORD = 2, - QCMP_EQ = 4, - QCMP_LT = 8, - QCMP_GT = 16 -} magic; +/* HPUX TFmode compare requires a library call to _U_Qfcmp. It takes + a magic number as its third argument which indicates what to do. + The return value is an integer to be compared against zero. The + comparison conditions are the same as those listed in Table 8-12 + of the PA-RISC 2.0 Architecture book for the fcmp instruction. */ + +/* Raise FP_INVALID on SNaN as a side effect. */ +#define QCMP_INV 1 + +/* Comparison relations. */ +#define QCMP_UNORD 2 +#define QCMP_EQ 4 +#define QCMP_LT 8 +#define QCMP_GT 16 int _U_Qfcmp (long double a, long double b, int); long _U_Qfcnvfxt_quad_to_sgl (long double);