From: Camm Maguire Date: Mon, 30 Dec 2019 15:46:22 +0000 (+0000) Subject: Version_2_6_13pre36 X-Git-Tag: archive/raspbian/2.6.12-92+rpi1^2~82 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=86aa018f933b67c78d71a84aa811420900c8da84;p=gcl.git Version_2_6_13pre36 Gbp-Pq: Name Version_2_6_13pre36 --- diff --git a/o/makefile b/o/makefile index 7494e3f4..57db00ea 100644 --- a/o/makefile +++ b/o/makefile @@ -34,7 +34,7 @@ boot.o: boot.c $(DECL) boot.h $(CC) -c $(CFLAGS) $(DEFS) -fPIC $*.c $(AUX_INFO) prelink.o: prelink.c $(DECL) - $(CC) -fPIE -c $(CFLAGS) $(DEFS) $*.c $(AUX_INFO) + $(CC) -fPIE -c $(filter-out -pg,$(CFLAGS)) $(DEFS) $*.c $(AUX_INFO) %.o: %.c $(DECL) $(CC) -c $(CFLAGS) $(DEFS) $*.c $(AUX_INFO) diff --git a/o/sfasli.c b/o/sfasli.c index 171c51ae..bced5424 100755 --- a/o/sfasli.c +++ b/o/sfasli.c @@ -111,46 +111,17 @@ LFD(build_symbol_table)(void) { } -extern int mcount(); -extern int _mcount(); -extern int __divdi3(); -extern int __moddi3(); -extern int __udivdi3(); -extern int __umoddi3(); -extern void sincos(double,double *,double *); -extern int __divsi3(); -extern int __modsi3(); -extern int __udivsi3(); -extern int __umodsi3(); -extern int $$divI(); -extern int $$divU(); -extern int $$remI(); -extern int $$remU(); -extern int __divq(); -extern int __divqu(); -extern int __remq(); -extern int __remqu(); - -#ifndef DARWIN #ifndef _WIN32 int use_symbols(double d,...) { - sincos(d,&d,&d); - -#ifdef GCL_GPROF - _mcount(); -#endif - - return (int)d; +#ifndef DARWIN + extern void sincos(double,double *,double *); -} -#endif + sincos(d,&d,&d); #else -int -use_symbols(double d,...) { - d=sin(d)+cos(d); +#endif return (int)d;