lkml.org 
[lkml]   [2000]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.3.47 imac build?

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@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. |
>
> ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
>
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
\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.085 / U:0.536 seconds]
©2003-2014 Jasper Spaans. Advertise on this site