From 856ba90edd7c9dce168d5ad40ec83b80b734fcc8 Mon Sep 17 00:00:00 2001 From: bernds Date: Tue, 30 Jul 2002 23:55:09 +0000 Subject: [PATCH] New target macro DECLARE_LIBRARY_RENAMES git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55889 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 ++++- gcc/config/fp-bit.c | 4 ++++ gcc/doc/tm.texi | 7 +++++++ gcc/libgcc2.c | 4 ++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4cb00df..01fd54a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -25,7 +25,10 @@ Bail out early if false_expr is NULL and we'd crash due to this. * genemit.c (gen_expand): Recognize return insns even if the return appears in a parallel. - + * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined. + * config/fp-bit.c: Likewise. + * doc/tm.texi: Document it. + 2002-07-30 David Edelsohn Zack Weinberg diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c index 3e42a4a..4253577 100644 --- a/gcc/config/fp-bit.c +++ b/gcc/config/fp-bit.c @@ -74,6 +74,10 @@ Boston, MA 02111-1307, USA. */ are referenced from within libc, since libgcc goes before and after the system library. */ +#ifdef DECLARE_LIBRARY_RENAMES + DECLARE_LIBRARY_RENAMES +#endif + #ifdef EXTENDED_FLOAT_STUBS __truncxfsf2 (){ abort(); } __extendsfxf2 (){ abort(); } diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 4715c31..4f98bf3 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -4598,6 +4598,13 @@ remainder in division of one unsigned full-word by another. If you do not define this macro, the default name is used, which is @code{__umoddi3}, a function defined in @file{libgcc.a}. +@findex DECLARE_LIBRARY_RENAMES +@item DECLARE_LIBRARY_RENAMES +This macro, if defined, should expand to a piece of C code that will get +expanded when compiling functions for libgcc.a. It can be used to +provide alternate names for gcc's internal library functions if there +are ABI-mandated names that the compiler should provide. + @findex INIT_TARGET_OPTABS @item INIT_TARGET_OPTABS Define this macro as a C statement that declares additional library diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index f91aadb..46b2f9c 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -43,6 +43,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "libgcc2.h" +#ifdef DECLARE_LIBRARY_RENAMES + DECLARE_LIBRARY_RENAMES +#endif + #if defined (L_negdi2) DWtype __negdi2 (DWtype u) -- 2.7.4