From feebeb67516bbf62dcb04c2e32456b8def2b08a2 Mon Sep 17 00:00:00 2001 From: Steven Solie Date: Tue, 27 Jun 2017 21:28:58 -0600 Subject: [PATCH] GCC 5 changes --- library/GNUmakefile.os4 | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/library/GNUmakefile.os4 b/library/GNUmakefile.os4 index dbe3f93..c232f5b 100644 --- a/library/GNUmakefile.os4 +++ b/library/GNUmakefile.os4 @@ -60,7 +60,7 @@ WARNINGS := \ # -Wconversion -Wshadow INCLUDES := -Iinclude -I. -I$(SDK_INCLUDE) - OPTIONS := -DUSE_64_BIT_INTS -D__USE_INLINE__ -Wa,-mregnames -fno-common -std=gnu99 -mcrt=clib2 + OPTIONS := -DUSE_64_BIT_INTS -D__USE_INLINE__ -Wa,-mregnames -fno-builtin -fno-common -std=c99 -mcrt=clib2 OPTIMIZE := -DNDEBUG -O3 #DEBUG := -ggdb @@ -160,6 +160,10 @@ cvs-tag: # General build rules for all object files and the individual libraries +lib/crtbegin.o : CFLAGS += -fno-aggressive-loop-optimizations +lib/crtbegin.o : crtbegin.c + @$(COMPILE) + lib/%.o : AFLAGS += $(LARGEDATA) lib/%.o : %.S @$(ASSEMBLE) @@ -171,6 +175,11 @@ lib/small-data/%.o : AFLAGS += $(SMALLDATA) lib/small-data/%.o : %.S @$(ASSEMBLE) +lib/small-data/crtbegin.o : CFLAGS += $(SMALLDATA) -fno-aggressive-loop-optimizations +lib/small-data/crtbegin.o : crtbegin.c + @$(COMPILE) + +lib/small-data/%.o : CFLAGS += $(SMALLDATA) lib/small-data/%.o : %.c @$(COMPILE) @@ -178,6 +187,11 @@ lib/soft-float/%.o : AFLAGS += $(SOFTFLOAT) lib/soft-float/%.o : %.S @$(ASSEMBLE) +lib/soft-float/crtbegin.o : CFLAGS += $(SOFTFLOAT) -fno-aggressive-loop-optimizations +lib/soft-float/crtbegin.o : crtbegin.c + @$(COMPILE) + +lib/soft-float/%.o : CFLAGS += $(SOFTFLOAT) lib/soft-float/%.o : %.c @$(COMPILE) @@ -185,6 +199,11 @@ lib/baserel/%.o : AFLAGS += $(BASEREL) lib/baserel/%.o : %.S @$(ASSEMBLE) +lib/baserel/crtbegin.o : CFLAGS += $(BASEREL) -fno-aggressive-loop-optimizations +lib/baserel/crtbegin.o : crtbegin.c + @$(COMPILE) + +lib/baserel/%.o : CFLAGS += $(BASEREL) lib/baserel/%.o : %.c @$(COMPILE) @@ -192,6 +211,11 @@ lib.threadsafe/%.o : AFLAGS += $(LARGEDATA) $(THREADSAFE) lib.threadsafe/%.o : %.S @$(ASSEMBLE) +lib.threadsafe/crtbegin.o : CFLAGS += $(THREADSAFE) $(LARGEDATA) -fno-aggressive-loop-optimizations +lib.threadsafe/crtbegin.o : crtbegin.c + @$(COMPILE) + +lib.threadsafe/%.o : CFLAGS += $(THREADSAFE) $(LARGEDATA) lib.threadsafe/%.o : %.c @$(COMPILE) @@ -199,6 +223,11 @@ lib.threadsafe/small-data/%.o : AFLAGS += $(SMALLDATA) $(THREADSAFE) lib.threadsafe/small-data/%.o : %.S @$(ASSEMBLE) +lib.threadsafe/small-data/crtbegin.o : CFLAGS += $(THREADSAFE) $(SMALLDATA) -fno-aggressive-loop-optimizations +lib.threadsafe/small-data/crtbegin.o : crtbegin.c + @$(COMPILE) + +lib.threadsafe/small-data/%.o : CFLAGS += $(THREADSAFE) $(SMALLDATA) lib.threadsafe/small-data/%.o : %.c @$(COMPILE) @@ -206,6 +235,11 @@ lib.threadsafe/soft-float/%.o : AFLAGS += $(SOFTFLOAT) $(THREADSAFE) lib.threadsafe/soft-float/%.o : %.S @$(ASSEMBLE) +lib.threadsafe/soft-float/crtbegin.o : CFLAGS += $(THREADSAFE) $(SOFTFLOAT) -fno-aggressive-loop-optimizations +lib.threadsafe/soft-float/crtbegin.o : crtbegin.c + @$(COMPILE) + +lib.threadsafe/soft-float/%.o : CFLAGS += $(THREADSAFE) $(SOFTFLOAT) lib.threadsafe/soft-float/%.o : %.c @$(COMPILE) @@ -213,6 +247,11 @@ lib.threadsafe/baserel/%.o : AFLAGS += $(BASEREL) $(THREADSAFE) lib.threadsafe/baserel/%.o : %.S @$(ASSEMBLE) +lib.threadsafe/baserel/crtbegin.o : CFLAGS += $(THREADSAFE) $(BASEREL) -fno-aggressive-loop-optimizations +lib.threadsafe/baserel/crtbegin.o : crtbegin.c + @$(COMPILE) + +lib.threadsafe/baserel/%.o : CFLAGS += $(THREADSAFE) $(BASEREL) lib.threadsafe/baserel/%.o : %.c @$(COMPILE)