]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
New target macro DECLARE_LIBRARY_RENAMES
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Jul 2002 23:55:09 +0000 (23:55 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Jul 2002 23:55:09 +0000 (23:55 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55889 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/fp-bit.c
gcc/doc/tm.texi
gcc/libgcc2.c

index 4cb00df8980a11df8ce885cb9a91e2ff6d983344..01fd54a1674c63d0481fee26ad354c3fd2dd64a3 100644 (file)
        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  <edelsohn@gnu.org>
            Zack Weinberg  <zack@codesourcery.com>
 
index 3e42a4a899f30de610be86b4fca5a457e8fc97c5..4253577acdf3812a538e093c85b4e39483887e43 100644 (file)
@@ -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(); }
index 4715c310eb08ca3371a9287d53f3943aa98e8a6b..4f98bf317c6c61fdc377d7a4dacefd86f51da7f5 100644 (file)
@@ -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
index f91aadbe7281ddedc78f49fdbfad37c2a7f936f1..46b2f9c8c27ee1828b5b3f34ef5f83283bb15824 100644 (file)
@@ -43,6 +43,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 
 #include "libgcc2.h"
 \f
+#ifdef DECLARE_LIBRARY_RENAMES
+  DECLARE_LIBRARY_RENAMES
+#endif
+
 #if defined (L_negdi2)
 DWtype
 __negdi2 (DWtype u)