From 5c105d9f3fd086aff195d3849dcf847d6b0bd927 Mon Sep 17 00:00:00 2001 From: blogic Date: Fri, 5 Oct 2012 10:12:53 +0000 Subject: branch Attitude Adjustment git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches/100-workaround-gcc-4.6.2-hang.patch | 20 +++++ tools/sdcc/patches/200-fix_order_of_linking.patch | 92 ++++++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 tools/sdcc/patches/100-workaround-gcc-4.6.2-hang.patch create mode 100644 tools/sdcc/patches/200-fix_order_of_linking.patch (limited to 'tools/sdcc/patches') diff --git a/tools/sdcc/patches/100-workaround-gcc-4.6.2-hang.patch b/tools/sdcc/patches/100-workaround-gcc-4.6.2-hang.patch new file mode 100644 index 000000000..71db14f81 --- /dev/null +++ b/tools/sdcc/patches/100-workaround-gcc-4.6.2-hang.patch @@ -0,0 +1,20 @@ +--- a/src/SDCCicode.c ++++ b/src/SDCCicode.c +@@ -1130,6 +1130,9 @@ iCode *getBuiltinParms (iCode *ic, int * + return ic; + } + ++#pragma GCC push_options ++#pragma GCC optimize ("O0") ++ + /*-----------------------------------------------------------------*/ + /* operandOperation - performs operations on operands */ + /*-----------------------------------------------------------------*/ +@@ -1405,6 +1408,7 @@ operandOperation (operand * left, operan + + return retval; + } ++#pragma GCC pop_options + + + /*-----------------------------------------------------------------*/ diff --git a/tools/sdcc/patches/200-fix_order_of_linking.patch b/tools/sdcc/patches/200-fix_order_of_linking.patch new file mode 100644 index 000000000..644349755 --- /dev/null +++ b/tools/sdcc/patches/200-fix_order_of_linking.patch @@ -0,0 +1,92 @@ +diff --git a/sdcc/sdas/as6808/Makefile.in b/sdcc/sdas/as6808/Makefile.in +index 5041265..0b8732e 100644 +--- a/sdas/as6808/Makefile.in ++++ b/sdas/as6808/Makefile.in +@@ -36,7 +36,8 @@ VPATH = @srcdir@ + + CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util + CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS) +-LDFLAGS = @LDFLAGS@ -lm ++LDFLAGS = @LDFLAGS@ ++LIBS = -lm + + OBJDIR = obj + +@@ -65,7 +66,7 @@ transform = @program_transform_name@ + all: checkconf $(ASX) + + $(ASX): $(ASOBJECTS) +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) $(LIBS) + + # Compiling and installing everything and running test + # ---------------------------------------------------- +diff --git a/sdcc/sdas/as8051/Makefile.in b/sdcc/sdas/as8051/Makefile.in +index 8fa5946..fde3001 100644 +--- a/sdas/as8051/Makefile.in ++++ b/sdas/as8051/Makefile.in +@@ -36,7 +36,8 @@ VPATH = @srcdir@ + + CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util + CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS) +-LDFLAGS = @LDFLAGS@ -lm ++LDFLAGS = @LDFLAGS@ ++LIBS = -lm + + OBJDIR = obj + +@@ -65,7 +66,7 @@ transform = @program_transform_name@ + all: checkconf $(ASX) + + $(ASX): $(ASOBJECTS) +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) $(LIBS) + + # Compiling and installing everything and running test + # ---------------------------------------------------- +diff --git a/sdcc/sdas/asgb/Makefile.in b/sdcc/sdas/asgb/Makefile.in +index 2763b3f..f9afb23 100644 +--- a/sdas/asgb/Makefile.in ++++ b/sdas/asgb/Makefile.in +@@ -36,7 +36,8 @@ VPATH = @srcdir@ + + CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util + CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS) +-LDFLAGS = @LDFLAGS@ -lm ++LDFLAGS = @LDFLAGS@ ++LIBS = -lm + + OBJDIR = obj + +@@ -65,7 +66,7 @@ transform = @program_transform_name@ + all: checkconf $(ASX) + + $(ASX): $(ASOBJECTS) +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) $(LIBS) + + # Compiling and installing everything and running test + # ---------------------------------------------------- +diff --git a/sdcc/sdas/asz80/Makefile.in b/sdcc/sdas/asz80/Makefile.in +index d2bf1ac..89bd91c 100644 +--- a/sdas/asz80/Makefile.in ++++ b/sdas/asz80/Makefile.in +@@ -36,7 +36,8 @@ VPATH = @srcdir@ + + CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/Util + CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS) +-LDFLAGS = @LDFLAGS@ -lm ++LDFLAGS = @LDFLAGS@ ++LIBS = -lm + + OBJDIR = obj + +@@ -65,7 +66,7 @@ transform = @program_transform_name@ + all: checkconf $(ASX) + + $(ASX): $(ASOBJECTS) +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) $(LIBS) + + # Compiling and installing everything and running test + # ---------------------------------------------------- -- cgit v1.2.3