From d626937d017201e9747ba4815d9724fe57cfdbea Mon Sep 17 00:00:00 2001 From: Manuel Date: Wed, 14 Nov 2012 22:51:26 +0000 Subject: [PATCH] Add patches --- gcc-multilib/gcc-4.7.1-libada-pic.patch | 12 ++++++++++++ gcc-multilib/gcc-4.7.1-libgo-write.patch | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 gcc-multilib/gcc-4.7.1-libada-pic.patch create mode 100644 gcc-multilib/gcc-4.7.1-libgo-write.patch diff --git a/gcc-multilib/gcc-4.7.1-libada-pic.patch b/gcc-multilib/gcc-4.7.1-libada-pic.patch new file mode 100644 index 0000000..c89d6d8 --- /dev/null +++ b/gcc-multilib/gcc-4.7.1-libada-pic.patch @@ -0,0 +1,12 @@ +diff -Naur gcc-4.7.1-orig/libada/Makefile.in gcc-4.7.1/libada/Makefile.in +--- gcc-4.7.1-orig/libada/Makefile.in 2012-06-13 01:12:37.000000000 +1000 ++++ gcc-4.7.1/libada/Makefile.in 2012-06-16 15:04:32.179911023 +1000 +@@ -54,7 +54,7 @@ + PICFLAG = @PICFLAG@ + GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc + GNATLIBCFLAGS= -g -O2 +-GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) \ ++GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(PICFLAG) \ + -fexceptions -DIN_RTS @have_getipinfo@ + + host_subdir = @host_subdir@ diff --git a/gcc-multilib/gcc-4.7.1-libgo-write.patch b/gcc-multilib/gcc-4.7.1-libgo-write.patch new file mode 100644 index 0000000..340c313 --- /dev/null +++ b/gcc-multilib/gcc-4.7.1-libgo-write.patch @@ -0,0 +1,12 @@ +diff -Naur gcc-4.7.1-orig/libgo/runtime/print.c gcc-4.7.1/libgo/runtime/print.c +--- gcc-4.7.1-orig/libgo/runtime/print.c 2012-05-26 04:22:14.000000000 +1000 ++++ gcc-4.7.1/libgo/runtime/print.c 2012-06-16 15:06:28.553138502 +1000 +@@ -17,7 +17,8 @@ + G* g = runtime_g(); + + if(g == nil || g->writebuf == nil) { +- runtime_write(2, v, n); ++ ssize_t bytesWritten = runtime_write(2, v, n); ++ (void)bytesWritten; + return; + }