OSDN Git Service

* libgcc2.c: Inline __udiv_w_sdiv when compiling __udivdi3,
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Oct 2002 20:25:38 +0000 (20:25 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Oct 2002 20:25:38 +0000 (20:25 +0000)
__divdi3, __umoddi3, or __moddi3.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58382 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/libgcc2.c

index 6f75f84..5181450 100644 (file)
@@ -1,5 +1,10 @@
 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
 
+       * libgcc2.c: Inline __udiv_w_sdiv when compiling __udivdi3,
+       __divdi3, __umoddi3, or __moddi3.
+
+2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
+
        * c-opts.c (missing_arg): Use cl_options[opt_index].opt_code
        instead of just opt_index as switch expression.
 
index b1e9edc..4c78eb4 100644 (file)
@@ -366,8 +366,17 @@ __muldi3 (DWtype u, DWtype v)
 }
 #endif
 \f
+#if (defined (L_udivdi3) || defined (L_divdi3) || \
+     defined (L_umoddi3) || defined (L_moddi3))
+#define L_udiv_w_sdiv
+#endif
+
 #ifdef L_udiv_w_sdiv
 #if defined (sdiv_qrnnd)
+#if (defined (L_udivdi3) || defined (L_divdi3) || \
+     defined (L_umoddi3) || defined (L_moddi3))
+static inline
+#endif
 UWtype
 __udiv_w_sdiv (UWtype *rp, UWtype a1, UWtype a0, UWtype d)
 {