2.3.47 imac build?

Ani Joshi ajoshi at shell.unixbox.com
Sun Feb 27 08:37:46 EST 2000


This little buglet is fixed with the attached patch i made a while back.
although it is really not needed anymore since cort tells me its fixed
(see 48pre probably, or bk).  anyhow, abs() is defined in misc.S.
but for those building 2.3.47 and don't want to see that annoying warning,
this patch will be fine.


ani


On Sat, 26 Feb 2000, Jeff Garzik wrote:

>
> "Brandon S. Allbery KF8NH" wrote:
> >
> > In message <38B82560.CE2A6EA4 at mandrakesoft.com>, Jeff Garzik writes:
> > +-----
> > | 1) investigate why this warning does not occur on x86.  (is it a gcc
> > | builtin?)
> > +--->8
> >
> > The gcc 2.95.1 info pages claim so.
>
> Thanks, I was too slack to look it up :)
>
> PPC arch compiles with -fno-builtin.  Why is this?  It seems sub-optimal
> and non-uniform, leading to little platform discrepancies like this...
>
> 	Jeff
>
>
>
> --
> Jeff Garzik              |
> Building 1024            | Viva la open source!
> MandrakeSoft, Inc.       |
>
>
-------------- next part --------------
diff -uNr linux.orig/arch/ppc/kernel/ppc_ksyms.c linux/arch/ppc/kernel/ppc_ksyms.c
--- linux.orig/arch/ppc/kernel/ppc_ksyms.c	Mon Feb 14 14:37:25 2000
+++ linux/arch/ppc/kernel/ppc_ksyms.c	Mon Feb 21 18:22:47 2000
@@ -56,7 +56,6 @@
 
 asmlinkage long long __ashrdi3(long long, int);
 asmlinkage long long __lshrdi3(long long, int);
-asmlinkage int abs(int);
 
 EXPORT_SYMBOL(clear_page);
 EXPORT_SYMBOL(do_signal);
diff -uNr linux.orig/arch/ppc/lib/Makefile linux/arch/ppc/lib/Makefile
--- linux.orig/arch/ppc/lib/Makefile	Mon Dec 20 15:43:40 1999
+++ linux/arch/ppc/lib/Makefile	Mon Feb 21 18:22:13 2000
@@ -6,7 +6,7 @@
 	$(CC) -D__ASSEMBLY__ $(AFLAGS) -c $< -o $*.o
 
 O_TARGET = lib.o
-O_OBJS  = checksum.o string.o strcase.o
+O_OBJS  = checksum.o string.o strcase.o abs.o
 
 ifdef CONFIG_SMP
 O_OBJS += locks.o
diff -uNr linux.orig/arch/ppc/lib/abs.S linux/arch/ppc/lib/abs.S
--- linux.orig/arch/ppc/lib/abs.S	Wed Dec 31 17:00:00 1969
+++ linux/arch/ppc/lib/abs.S	Mon Feb 21 18:21:59 2000
@@ -0,0 +1,7 @@
+        .globl abs
+abs:
+        mr. 3,3
+        bclr 4,0
+        neg 3,3
+        blr
+
diff -uNr linux.orig/include/asm-ppc/system.h linux/include/asm-ppc/system.h
--- linux.orig/include/asm-ppc/system.h	Mon Dec 27 15:10:20 1999
+++ linux/include/asm-ppc/system.h	Mon Feb 21 18:31:42 2000
@@ -148,4 +148,6 @@
 	return (void *) xchg_u32(m, (unsigned long) val);
 }
 
+
+asmlinkage int abs(int);
 #endif


More information about the Linuxppc-dev mailing list