This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 4/9] Gccgo port to s390[x] -- part I

This patch fixes the compiler flags in libgo/  In one
place, some compiler flags were missing that are consistently used
elswhere, resulting in an error message.

2014-09-05  Dominik Vogt  <>

        * libgo/ (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.


Dominik ^_^  ^_^


Dominik Vogt
IBM Germany
>From c22cbdd9aeaf69da3b85e2814178200f5cd6bac7 Mon Sep 17 00:00:00 2001
From: Dominik Vogt <>
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/ | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libgo/ b/libgo/
index e188155..71044c1 100755
--- a/libgo/
+++ b/libgo/
@@ -195,7 +195,8 @@ enum {
-${CC} -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c
+  -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c
 echo 'package syscall' > ${OUT}
 echo 'import "unsafe"' >> ${OUT}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]