From 09969f33c725480f635810e241881b5ece42091a Mon Sep 17 00:00:00 2001
From: sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue, 7 Nov 2006 19:14:27 +0000
Subject: [PATCH] 	PR other/25028 	* config/ia64/t-hpux (LIB1ASMFUNCS): 
 Filter out _fixtfdi, 	_fixunstfdi, and  _floatditf 	*
 gcc.dg/torture/fp-int-convert-float128-timode.c:  Do not XFAIL 	on
 HP-UX.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118565 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog                                               | 6 ++++++
 gcc/config/ia64/t-hpux                                      | 6 ++++++
 gcc/testsuite/ChangeLog                                     | 6 ++++++
 .../gcc.dg/torture/fp-int-convert-float128-timode.c         | 2 +-
 4 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 833078d8990b..1d01bd5c484a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-11-07  Steve Ellcey  <sje@cup.hp.com>
+
+	PR other/25028
+	* config/ia64/t-hpux (LIB1ASMFUNCS):  Filter out _fixtfdi,
+	_fixunstfdi, and  _floatditf
+
 2006-11-06  Anatoly Sokolov <aesok@post.ru>
 
 	* config/avr/avr-protos.h (mask_one_bit_p, const_int_pow2_p): Remove 
diff --git a/gcc/config/ia64/t-hpux b/gcc/config/ia64/t-hpux
index 7d294d17457c..b925c73a5127 100644
--- a/gcc/config/ia64/t-hpux
+++ b/gcc/config/ia64/t-hpux
@@ -7,6 +7,12 @@ MULTILIB_OPTIONS = milp32/mlp64
 MULTILIB_DIRNAMES = hpux32 hpux64
 MULTILIB_MATCHES =
 
+# On HP-UX we do not want _fixtfdi, _fixunstfdi, or _floatditf from
+# LIB1ASMSRC.  These functions map the 128 bit conversion function names
+# to 80 bit conversions and were done for Linux backwards compatibility.
+
+LIB1ASMFUNCS := $(filter-out _fixtfdi _fixunstfdi _floatditf,$(LIB1ASMFUNCS))
+
 # Support routines for HP-UX 128 bit floats.
 
 LIB2FUNCS_EXTRA=quadlib.c $(srcdir)/config/floatunsitf.c
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 74f54970121e..22e43d0f23ac 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2006-11-07  Steve Ellcey  <sje@cup.hp.com>
+
+	PR other/25028
+	* gcc.dg/torture/fp-int-convert-float128-timode.c:  Do not XFAIL
+	on HP-UX.
+
 2006-11-07 Paul Thomas <pault@gcc.gnu.org>
 
 	PR fortran/29539
diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode.c
index 7d090e16861c..7693d17d3168 100644
--- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode.c
+++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode.c
@@ -2,7 +2,7 @@
 /* Origin: Joseph Myers <joseph@codesourcery.com> */
 /* { dg-do run { target { ia64-*-* || { { i?86-*-* x86_64-*-*} && lp64 } } } } */
 /* { dg-xfail-if "" { i?86-*-* x86_64-*-* } { "*" } { "" } } */
-/* { dg-xfail-if "" { ia64-*-* && lp64 } { "*" } { "" } } */
+/* { dg-xfail-if "" { ia64-*-linux* } { "*" } { "" } } */
 /* { dg-options "" } */
 
 #include "fp-int-convert.h"
-- 
GitLab