aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@redhat.com>2002-07-30 23:55:09 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2002-07-30 23:55:09 +0000
commitd8088c6f0717b2b7cfe12122c31c65b9b8eec42c (patch)
treef38c1781eb2aeb18a5c4a133085504e8688f441a /gcc
parentc01d477a666b0555b7e6595820359b5e5b33869c (diff)
downloadgcc-d8088c6f0717b2b7cfe12122c31c65b9b8eec42c.zip
gcc-d8088c6f0717b2b7cfe12122c31c65b9b8eec42c.tar.gz
gcc-d8088c6f0717b2b7cfe12122c31c65b9b8eec42c.tar.bz2
New target macro DECLARE_LIBRARY_RENAMES
From-SVN: r55889
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/fp-bit.c4
-rw-r--r--gcc/doc/tm.texi7
-rw-r--r--gcc/libgcc2.c4
4 files changed, 19 insertions, 1 deletions
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 <edelsohn@gnu.org>
Zack Weinberg <zack@codesourcery.com>
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)