diff options
author | Esben Haabendal <esben.haabendal@prevas.dk> | 2012-09-26 16:41:02 +0200 |
---|---|---|
committer | Esben Haabendal <esben.haabendal@prevas.dk> | 2012-09-26 16:41:02 +0200 |
commit | e23defd4ec3da6fb98b48c246466a31e4552f9a3 (patch) | |
tree | 3c625031d1f8a586542c91c2fa47c7051443c7f8 | |
parent | bdc4ed3df17b428e388bdadc0cae8ea3faa3c3b8 (diff) | |
download | crosstool-ng-e23defd4ec3da6fb98b48c246466a31e4552f9a3.tar.gz crosstool-ng-e23defd4ec3da6fb98b48c246466a31e4552f9a3.tar.bz2 crosstool-ng-e23defd4ec3da6fb98b48c246466a31e4552f9a3.zip |
libc/uClibc: add workaround patch for ICE in m68k builds
This patch/workaround is similar to the one proposed in
http://www.mail-archive.com/uclibc@uclibc.org/msg02475.html
Bug reproduced with GCC 4.6.3.
[ALL ] In file included from libc/inet/inet_ntoa.c:8:0:
[ALL ] libc/inet/addr.c: In function 'inet_ntoa_r':
[ALL ] libc/inet/addr.c:135:1: warning: visibility attribute not supported in this configuration; ignored [-Wattri
butes]
[ERROR] libc/inet/addr.c:135:1: internal compiler error: in output_move_qimode, at config/m68k/m68k.c:3160
Signed-off-by: "Esben Haabendal" <esben@haabendal.dk>
Message-Id: <87sja4d1ke.fsf@arh128.prevas.dk>
Patchwork-Id: 187181
-rw-r--r-- | patches/uClibc/0.9.33.2/100-m68k-ice.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/uClibc/0.9.33.2/100-m68k-ice.patch b/patches/uClibc/0.9.33.2/100-m68k-ice.patch new file mode 100644 index 00000000..410f8d60 --- /dev/null +++ b/patches/uClibc/0.9.33.2/100-m68k-ice.patch @@ -0,0 +1,19 @@ +diff -urN uClibc-0.9.33.2~orig/Rules.mak uClibc-0.9.33.2/Rules.mak +--- uClibc-0.9.33.2~orig/Rules.mak 2012-05-15 09:20:09.000000000 +0200 ++++ uClibc-0.9.33.2/Rules.mak 2012-09-24 14:09:51.092953729 +0200 +@@ -226,6 +226,7 @@ + + OPTIMIZATION:= + # Use '-Os' optimization if available, else use -O2, allow Config to override ++ifneq ($(TARGET_ARCH),m68k) + $(eval $(call check-gcc-var,-Os)) + ifneq ($(CFLAG_-Os),) + OPTIMIZATION += $(CFLAG_-Os) +@@ -233,6 +234,7 @@ + $(eval $(call check-gcc-var,-O2)) + OPTIMIZATION += $(CFLAG_-O2) + endif ++endif + # Use the gcc 3.4 -funit-at-a-time optimization when available + $(eval $(call check-gcc-var,-funit-at-a-time)) + OPTIMIZATION += $(CFLAG_-funit-at-a-time) |