-#ifdef L_divtf3
+#ifdef L__divtf3
// Compute a 80-bit IEEE double-extended quotient.
//
// From the Intel IA-64 Optimization Guide, choose the minimum latency
.endp __divtf3
#endif
-#ifdef L_divdf3
+#ifdef L__divdf3
// Compute a 64-bit IEEE double quotient.
//
// From the Intel IA-64 Optimization Guide, choose the minimum latency
.endp __divdf3
#endif
-#ifdef L_divsf3
+#ifdef L__divsf3
// Compute a 32-bit IEEE float quotient.
//
// From the Intel IA-64 Optimization Guide, choose the minimum latency
.endp __divsf3
#endif
-#ifdef L_divdi3
+#ifdef L__divdi3
// Compute a 64-bit integer quotient.
//
// From the Intel IA-64 Optimization Guide, choose the minimum latency
.endp __divdi3
#endif
-#ifdef L_moddi3
+#ifdef L__moddi3
// Compute a 64-bit integer modulus.
//
// From the Intel IA-64 Optimization Guide, choose the minimum latency
.endp __moddi3
#endif
-#ifdef L_udivdi3
+#ifdef L__udivdi3
// Compute a 64-bit unsigned integer quotient.
//
// From the Intel IA-64 Optimization Guide, choose the minimum latency
.endp __udivdi3
#endif
-#ifdef L_umoddi3
+#ifdef L__umoddi3
// Compute a 64-bit unsigned integer modulus.
//
// From the Intel IA-64 Optimization Guide, choose the minimum latency
.endp __umoddi3
#endif
-#ifdef L_divsi3
+#ifdef L__divsi3
// Compute a 32-bit integer quotient.
//
// From the Intel IA-64 Optimization Guide, choose the minimum latency
.endp __divsi3
#endif
-#ifdef L_modsi3
+#ifdef L__modsi3
// Compute a 32-bit integer modulus.
//
// From the Intel IA-64 Optimization Guide, choose the minimum latency
.endp __modsi3
#endif
-#ifdef L_udivsi3
+#ifdef L__udivsi3
// Compute a 32-bit unsigned integer quotient.
//
// From the Intel IA-64 Optimization Guide, choose the minimum latency
.endp __udivsi3
#endif
-#ifdef L_umodsi3
+#ifdef L__umodsi3
// Compute a 32-bit unsigned integer modulus.
//
// From the Intel IA-64 Optimization Guide, choose the minimum latency
.endp __umodsi3
#endif
-#ifdef L_save_stack_nonlocal
+#ifdef L__save_stack_nonlocal
// Notes on save/restore stack nonlocal: We read ar.bsp but write
// ar.bspstore. This is because ar.bsp can be read at all times
// (independent of the RSE mode) but since it's read-only we need to
.endp __ia64_save_stack_nonlocal
#endif
-#ifdef L_nonlocal_goto
+#ifdef L__nonlocal_goto
// void __ia64_nonlocal_goto(void *target_label, void *save_area,
// void *static_chain);
.endp __ia64_nonlocal_goto
#endif
-#ifdef L_restore_stack_nonlocal
+#ifdef L__restore_stack_nonlocal
// This is mostly the same as nonlocal_goto above.
// ??? This has not been tested yet.
.endp __ia64_restore_stack_nonlocal
#endif
-#ifdef L_trampoline
+#ifdef L__trampoline
// Implement the nested function trampoline. This is out of line
// so that we don't have to bother with flushing the icache, as
// well as making the on-stack trampoline smaller.
LIB1ASMSRC = ia64/lib1funcs.asm
-LIB1ASMFUNCS = _divtf3 _divdf3 _divsf3 \
- _divdi3 _moddi3 _udivdi3 _umoddi3 \
- _divsi3 _modsi3 _udivsi3 _umodsi3 _save_stack_nonlocal \
- _nonlocal_goto _restore_stack_nonlocal _trampoline
+# We use different names for the DImode div/mod files so that they won't
+# conflict with libgcc2.c files. We used to use __ia64 as a prefix, now
+# we use __ as the prefix. Note that L_divdi3 in libgcc2.c actually defines
+# a TImode divide function, so there is no actual overlap here between
+# libgcc2.c and lib1funcs.asm.
+LIB1ASMFUNCS = __divtf3 __divdf3 __divsf3 \
+ __divdi3 __moddi3 __udivdi3 __umoddi3 \
+ __divsi3 __modsi3 __udivsi3 __umodsi3 __save_stack_nonlocal \
+ __nonlocal_goto __restore_stack_nonlocal __trampoline
# ??? Hack to get -P option used when compiling lib1funcs.asm, because Intel
# assembler does not accept # line number as a comment.