Skip to content

Commit

Permalink
Missing __divtf3@@GCC_4.4.0 on ia64
Browse files Browse the repository at this point in the history
gcc/testsuite/
	PR libfortran/59227
	* gfortran.dg/erf_3.F90: Remove XFAIL on ia64-*-linux*.

libgcc/
	PR target/59230
	PR libfortran/59227
	* config/ia64/t-softfp-compat (softfp_file_list): Filter out
	soft-fp/divtf3.c.
	(LIB2ADD): Add config/ia64/divtf3.c.
	* config/ia64/divtf3.c: New file.
  • Loading branch information
andreas-schwab committed Jun 4, 2020
1 parent c0b99f6 commit 0ecf522
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gcc/testsuite/gfortran.dg/erf_3.F90
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
! { dg-do run { xfail ia64-*-linux* } }
! { dg-options "-fno-range-check -ffree-line-length-none -O0" }
! { dg-add-options ieee }
! { dg-skip-if "PR libfortran/59313" { hppa*-*-hpux* } }
!
! Check that simplification functions and runtime library agree on ERF,
! ERFC and ERFC_SCALED, for quadruple-precision.
!
! XFAILed for IA64 Linux because of a glibc bug:
! http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59227

program test
use, intrinsic :: iso_fortran_env
Expand Down
9 changes: 9 additions & 0 deletions libgcc/config/ia64/divtf3.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifdef SHARED
#define __divtf3 __divtf3_shared
#endif

#include "soft-fp/divtf3.c"

#ifdef SHARED
asm (".symver __divtf3_shared, __divtf3@@GCC_4.4.0");
#endif
3 changes: 3 additions & 0 deletions libgcc/config/ia64/t-softfp-compat
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ libgcc1-tf-functions = __divxf3 _fixtfdi _fixunstfdi _floatditf
LIB1ASMFUNCS := $(filter-out $(libgcc1-tf-functions), $(LIB1ASMFUNCS))
libgcc1-tf-compats = $(addsuffix .S, $(libgcc1-tf-functions))
LIB2ADD += $(addprefix $(srcdir)/config/ia64/, $(libgcc1-tf-compats))
# Wrap divtf3.c to set the default symbol version
softfp_file_list := $(filter-out $(srcdir)/soft-fp/divtf3.c, $(softfp_file_list))
LIB2ADD += $(srcdir)/config/ia64/divtf3.c

0 comments on commit 0ecf522

Please sign in to comment.