This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix warning in libgcc2.c while compiling __moddi3


This almost could be consider obvious but I wanted a second opinion
before committing?

OK? Bootstrapped and tested on powerpc-apple-darwin.

Thanks,
Andrew Pinski


ChangeLog:


* libgcc2.c (__moddi3): Cast &w to UDWtype*.

Index: libgcc2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/libgcc2.c,v
retrieving revision 1.176
diff -u -p -r1.176 libgcc2.c
--- libgcc2.c	27 Sep 2004 08:01:56 -0000	1.176
+++ libgcc2.c	28 Sep 2004 14:01:30 -0000
@@ -1022,7 +1022,7 @@ __moddi3 (DWtype u, DWtype v)
   if (vv.s.high < 0)
     vv.ll = -vv.ll;

-  (void) __udivmoddi4 (uu.ll, vv.ll, &w);
+  (void) __udivmoddi4 (uu.ll, vv.ll, (UDWtype*)&w);
   if (c)
     w = -w;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]