This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 4/9] Gccgo port to s390[x] -- part I
- From: Dominik Vogt <vogt at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: gofrontend-dev at googlegroups dot com
- Date: Tue, 9 Sep 2014 13:53:37 +0100
- Subject: [PATCH 4/9] Gccgo port to s390[x] -- part I
- Authentication-results: sourceware.org; auth=none
- References: <20140909124446 dot GA25290 at linux dot vnet dot ibm dot com>
- Reply-to: vogt at linux dot vnet dot ibm dot com
This patch fixes the compiler flags in libgo/mksysinfo.sh. In one
place, some compiler flags were missing that are consistently used
elswhere, resulting in an error message.
ChangeLog
2014-09-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
* libgo/mksysinfo.sh (OUT):
Add the same compile flags that configure uses to detect whether off64_t
is present or not when generating the go structures for the C types.
Otherwise the go type for off64_t may not be generated.
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany
>From c22cbdd9aeaf69da3b85e2814178200f5cd6bac7 Mon Sep 17 00:00:00 2001
From: Dominik Vogt <vogt@linux.vnet.ibm.com>
Date: Fri, 5 Sep 2014 07:30:37 +0100
Subject: [PATCH 4/9] LIBGO: Fix generation of off64_t.
Use -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE as elsewhere to make sure off64_t
is generated.
---
libgo/mksysinfo.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index e188155..71044c1 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -195,7 +195,8 @@ enum {
};
EOF
-${CC} -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c
+${CC} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
+ -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c
echo 'package syscall' > ${OUT}
echo 'import "unsafe"' >> ${OUT}
--
1.8.4.2