Commit d8088c6f by Bernd Schmidt Committed by Bernd Schmidt

New target macro DECLARE_LIBRARY_RENAMES

From-SVN: r55889
parent c01d477a
...@@ -25,7 +25,10 @@ ...@@ -25,7 +25,10 @@
Bail out early if false_expr is NULL and we'd crash due to this. 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 * genemit.c (gen_expand): Recognize return insns even if the return
appears in a parallel. 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> 2002-07-30 David Edelsohn <edelsohn@gnu.org>
Zack Weinberg <zack@codesourcery.com> Zack Weinberg <zack@codesourcery.com>
......
...@@ -74,6 +74,10 @@ Boston, MA 02111-1307, USA. */ ...@@ -74,6 +74,10 @@ Boston, MA 02111-1307, USA. */
are referenced from within libc, since libgcc goes before and after the are referenced from within libc, since libgcc goes before and after the
system library. */ system library. */
#ifdef DECLARE_LIBRARY_RENAMES
DECLARE_LIBRARY_RENAMES
#endif
#ifdef EXTENDED_FLOAT_STUBS #ifdef EXTENDED_FLOAT_STUBS
__truncxfsf2 (){ abort(); } __truncxfsf2 (){ abort(); }
__extendsfxf2 (){ abort(); } __extendsfxf2 (){ abort(); }
......
...@@ -4598,6 +4598,13 @@ remainder in division of one unsigned full-word by another. If you do ...@@ -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 not define this macro, the default name is used, which is
@code{__umoddi3}, a function defined in @file{libgcc.a}. @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 @findex INIT_TARGET_OPTABS
@item INIT_TARGET_OPTABS @item INIT_TARGET_OPTABS
Define this macro as a C statement that declares additional library Define this macro as a C statement that declares additional library
......
...@@ -43,6 +43,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -43,6 +43,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "libgcc2.h" #include "libgcc2.h"
#ifdef DECLARE_LIBRARY_RENAMES
DECLARE_LIBRARY_RENAMES
#endif
#if defined (L_negdi2) #if defined (L_negdi2)
DWtype DWtype
__negdi2 (DWtype u) __negdi2 (DWtype u)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment