This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

IA64 HP-UX quadlib.c changes


This is a patch to get rid of some warnings during the compilation of
quadlib.c for HP-UX IA64 and to do a little cleanup and to remove the
definition of _U_Qfneg because that routine already exists in the IA64
HP-UX libc and should not also be put into libgcc.

Comments/Approval?

Steve Ellcey
sje@cup.hp.com

2002-09-12  Steve Ellcey  <sje@cup.hp.com>

	* config/ia64/quadlib.c (_U_Qfcmp): Make extern.
	(_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
	(_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
	Add declarations.
	(_U_Qfneg): Remove.

*** gcc.orig/gcc/config/ia64/quadlib.c	Thu Sep 12 13:38:02 2002
--- gcc/gcc/config/ia64/quadlib.c	Thu Sep 12 13:38:14 2002
*************** along with GNU CC; see the file COPYING.
*** 27,34 ****
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
! int _U_Qfcmp (long double a, long double b, int);
! long _U_Qfcnvfxt_quad_to_sgl (long double);
  
  int
  _U_Qfeq (long double a, long double b)
--- 27,41 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
! extern int _U_Qfcmp (long double a, long double b, int);
! 
! int _U_Qfeq (long double, long double);
! int _U_Qfne (long double, long double);
! int _U_Qfgt (long double, long double);
! int _U_Qfge (long double, long double);
! int _U_Qflt (long double, long double);
! int _U_Qfle (long double, long double);
! int _U_Qfcomp (long double, long double);
  
  int
  _U_Qfeq (long double a, long double b)
*************** _U_Qfcomp (long double a, long double b)
*** 73,82 ****
      return 0;
  
    return (_U_Qfcmp (a, b, 22) != 0 ? 1 : -1);
- }
- 
- long double
- _U_Qfneg (long double a)
- {
-   return (0.0L - a);
  }
--- 80,83 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]