summaryrefslogtreecommitdiff
path: root/package/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-01-01 16:42:38 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2014-01-01 16:42:38 (GMT)
commitbc2f511c2392159717ea20a3a71a4b23de0ed134 (patch)
treed6f6f324435601aef091f4013ffaf659623d0d0f /package/gcc
parentf3f7a7f082ffce3fe30555c73276f4c070c0b6da (diff)
make native gcc for microblaze working
Diffstat (limited to 'package/gcc')
-rw-r--r--package/gcc/Makefile9
-rw-r--r--package/gcc/patches/4.7.3/cflags.patch (renamed from package/gcc/patches/cflags.patch)0
-rw-r--r--package/gcc/patches/4.7.3/cross-gcc-fix.patch (renamed from package/gcc/patches/cross-gcc-fix.patch)0
-rw-r--r--package/gcc/patches/4.7.3/gcc-cppflags.patch (renamed from package/gcc/patches/gcc-cppflags.patch)0
-rw-r--r--package/gcc/patches/4.7.3/ltmain.patch (renamed from package/gcc/patches/ltmain.patch)0
-rw-r--r--package/gcc/patches/4.7.3/mirbsd-compat.patch (renamed from package/gcc/patches/mirbsd-compat.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-cris.patch (renamed from package/gcc/patches/musl-cris.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-cross.patch (renamed from package/gcc/patches/musl-cross.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-m68k.patch (renamed from package/gcc/patches/musl-m68k.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-mips64.patch (renamed from package/gcc/patches/musl-mips64.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-ppc.patch (renamed from package/gcc/patches/musl-ppc.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-sh.patch (renamed from package/gcc/patches/musl-sh.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-sparc.patch (renamed from package/gcc/patches/musl-sparc.patch)0
-rw-r--r--package/gcc/patches/4.7.3/sdt.patch (renamed from package/gcc/patches/sdt.patch)0
-rw-r--r--package/gcc/patches/4.8.2/patch-libatomic_Makefile_in12
15 files changed, 19 insertions, 2 deletions
diff --git a/package/gcc/Makefile b/package/gcc/Makefile
index 2c2fb70..f0e1750 100644
--- a/package/gcc/Makefile
+++ b/package/gcc/Makefile
@@ -8,7 +8,7 @@ PKG_NAME:= gcc
PKG_DESCR:= GNU C compiler
PKG_SECTION:= lang
PKG_OPTS:= noremove
-PKG_DEPENDS:= libmpc libgmp mpfr
+PKG_DEPENDS:= libmpc libgmp mpfr libgcc
PKG_BUILDDEP:= libmpc gmp mpfr
PKG_ARCH_DEPENDS:= !avr32
@@ -37,6 +37,12 @@ ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS64EL),y)
CONFIGURE_ARGS+= --with-abi=$(ADK_TARGET_ABI)
endif
+ifeq ($(ADK_TOOLCHAIN_GCC_SJLJ),y)
+CONFIGURE_ARGS+= --enable-sjlj-exceptions
+else
+CONFIGURE_ARGS+= --disable-sjlj-exceptions
+endif
+
ifneq ($(ADK_PACKAGE_GXX),)
CONFIGURE_ARGS+= --enable-languages=c,c++
else
@@ -50,7 +56,6 @@ CONFIGURE_ARGS+= --host=$(REAL_GNU_TARGET_NAME) \
--without-headers \
--libexecdir=/usr/lib \
--disable-libssp \
- --disable-sjlj-exceptions \
--disable-biarch \
--disable-libmudflap \
--disable-libgomp \
diff --git a/package/gcc/patches/cflags.patch b/package/gcc/patches/4.7.3/cflags.patch
index 3623d38..3623d38 100644
--- a/package/gcc/patches/cflags.patch
+++ b/package/gcc/patches/4.7.3/cflags.patch
diff --git a/package/gcc/patches/cross-gcc-fix.patch b/package/gcc/patches/4.7.3/cross-gcc-fix.patch
index f39b35f..f39b35f 100644
--- a/package/gcc/patches/cross-gcc-fix.patch
+++ b/package/gcc/patches/4.7.3/cross-gcc-fix.patch
diff --git a/package/gcc/patches/gcc-cppflags.patch b/package/gcc/patches/4.7.3/gcc-cppflags.patch
index 0971bbe..0971bbe 100644
--- a/package/gcc/patches/gcc-cppflags.patch
+++ b/package/gcc/patches/4.7.3/gcc-cppflags.patch
diff --git a/package/gcc/patches/ltmain.patch b/package/gcc/patches/4.7.3/ltmain.patch
index 215889b..215889b 100644
--- a/package/gcc/patches/ltmain.patch
+++ b/package/gcc/patches/4.7.3/ltmain.patch
diff --git a/package/gcc/patches/mirbsd-compat.patch b/package/gcc/patches/4.7.3/mirbsd-compat.patch
index 2f3ea0c..2f3ea0c 100644
--- a/package/gcc/patches/mirbsd-compat.patch
+++ b/package/gcc/patches/4.7.3/mirbsd-compat.patch
diff --git a/package/gcc/patches/musl-cris.patch b/package/gcc/patches/4.7.3/musl-cris.patch
index 4889263..4889263 100644
--- a/package/gcc/patches/musl-cris.patch
+++ b/package/gcc/patches/4.7.3/musl-cris.patch
diff --git a/package/gcc/patches/musl-cross.patch b/package/gcc/patches/4.7.3/musl-cross.patch
index 453ba9a..453ba9a 100644
--- a/package/gcc/patches/musl-cross.patch
+++ b/package/gcc/patches/4.7.3/musl-cross.patch
diff --git a/package/gcc/patches/musl-m68k.patch b/package/gcc/patches/4.7.3/musl-m68k.patch
index 54c7e0e..54c7e0e 100644
--- a/package/gcc/patches/musl-m68k.patch
+++ b/package/gcc/patches/4.7.3/musl-m68k.patch
diff --git a/package/gcc/patches/musl-mips64.patch b/package/gcc/patches/4.7.3/musl-mips64.patch
index 671ba9f..671ba9f 100644
--- a/package/gcc/patches/musl-mips64.patch
+++ b/package/gcc/patches/4.7.3/musl-mips64.patch
diff --git a/package/gcc/patches/musl-ppc.patch b/package/gcc/patches/4.7.3/musl-ppc.patch
index f4211ee..f4211ee 100644
--- a/package/gcc/patches/musl-ppc.patch
+++ b/package/gcc/patches/4.7.3/musl-ppc.patch
diff --git a/package/gcc/patches/musl-sh.patch b/package/gcc/patches/4.7.3/musl-sh.patch
index 7738f26..7738f26 100644
--- a/package/gcc/patches/musl-sh.patch
+++ b/package/gcc/patches/4.7.3/musl-sh.patch
diff --git a/package/gcc/patches/musl-sparc.patch b/package/gcc/patches/4.7.3/musl-sparc.patch
index 228b852..228b852 100644
--- a/package/gcc/patches/musl-sparc.patch
+++ b/package/gcc/patches/4.7.3/musl-sparc.patch
diff --git a/package/gcc/patches/sdt.patch b/package/gcc/patches/4.7.3/sdt.patch
index 7ee2cf1..7ee2cf1 100644
--- a/package/gcc/patches/sdt.patch
+++ b/package/gcc/patches/4.7.3/sdt.patch
diff --git a/package/gcc/patches/4.8.2/patch-libatomic_Makefile_in b/package/gcc/patches/4.8.2/patch-libatomic_Makefile_in
new file mode 100644
index 0000000..e67a62d
--- /dev/null
+++ b/package/gcc/patches/4.8.2/patch-libatomic_Makefile_in
@@ -0,0 +1,12 @@
+--- gcc-4.8.2.orig/libatomic/Makefile.in 2013-10-16 09:27:58.000000000 +0200
++++ gcc-4.8.2/libatomic/Makefile.in 2014-01-01 11:37:38.000000000 +0100
+@@ -298,7 +298,8 @@ PAT_N = $(word 2,$(PAT_SPLIT))
+ PAT_S = $(word 3,$(PAT_SPLIT))
+ IFUNC_DEF = -DIFUNC_ALT=$(PAT_S)
+ IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS))
+-M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo
++@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo
++@AMDEP_FALSE@M_DEPS =
+ M_SIZE = -DN=$(PAT_N)
+ M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT))
+ M_FILE = $(PAT_BASE)_n.c