This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

[PATCH] Yet another brown paper bag fix


Without this, libc does not want to compile (obviously).
I'm mailing it to gcc-patches as well.

1999-12-10  Jakub Jelinek  <jakub@redhat.com>

	* stdlib/longlong.h (__sparc_v9__): Use %rDIGIT instead of %DIGIT
	where appropriate.

--- libc/stdlib/longlong.h.jj	Fri Dec 10 15:15:34 1999
+++ libc/stdlib/longlong.h	Fri Dec 10 17:24:35 1999
@@ -1185,8 +1185,8 @@ UDItype __umulsidi3 (USItype, USItype);
 #if (defined (__sparc_v9__) || (defined (__sparc__) && defined (__arch64__)) \
     || defined (__sparcv9)) && W_TYPE_SIZE == 64
 #define add_ssaaaa(sh, sl, ah, al, bh, bl)				\
-  __asm__ ("addcc %4,%5,%1
-  	    add %2,%3,%0
+  __asm__ ("addcc %r4,%5,%1
+  	    add %r2,%3,%0
   	    bcs,a,pn %%xcc, 1f
   	    add %0, 1, %0
   	    1:"								\
@@ -1199,8 +1199,8 @@ UDItype __umulsidi3 (USItype, USItype);
 	   __CLOBBER_CC)
 
 #define sub_ddmmss(sh, sl, ah, al, bh, bl) 				\
-  __asm__ ("subcc %4,%5,%1
-  	    sub %2,%3,%0
+  __asm__ ("subcc %r4,%5,%1
+  	    sub %r2,%3,%0
   	    bcs,a,pn %%xcc, 1f
   	    sub %0, 1, %0
   	    1:"								\

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.26 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

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