public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Dominik Vogt <vogt@linux.vnet.ibm.com>
To: gcc-patches@gcc.gnu.org
Cc: gofrontend-dev@googlegroups.com
Subject: [PATCH 4/9] Gccgo port to s390[x] -- part I
Date: Tue, 09 Sep 2014 12:53:00 -0000	[thread overview]
Message-ID: <20140909125337.GE25290@linux.vnet.ibm.com> (raw)
In-Reply-To: <20140909124446.GA25290@linux.vnet.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

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

[-- Attachment #2: 0004-LIBGO-Fix-generation-of-off64_t.patch --]
[-- Type: text/x-diff, Size: 846 bytes --]

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


  parent reply	other threads:[~2014-09-09 12:53 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-09 12:44 [PATCH 0/9] " Dominik Vogt
2014-09-09 12:48 ` [PATCH 1/9] " Dominik Vogt
2014-09-09 12:49 ` [PATCH 2/9] " Dominik Vogt
2014-10-09 18:56   ` [gofrontend-dev] " Ian Lance Taylor
2014-09-09 12:51 ` [PATCH 3/9] " Dominik Vogt
2014-10-03 18:28   ` [gofrontend-dev] " Ian Lance Taylor
2014-09-09 12:53 ` Dominik Vogt [this message]
2014-10-04  1:19   ` [gofrontend-dev] [PATCH 4/9] " Ian Lance Taylor
2014-10-06  6:52     ` Dominik Vogt
2014-09-09 12:56 ` [PATCH 5/9] " Dominik Vogt
2014-10-04  1:26   ` [gofrontend-dev] " Ian Lance Taylor
2014-10-06  7:42     ` Dominik Vogt
2014-10-06 14:29       ` Ian Lance Taylor
2014-10-07 10:45         ` Dominik Vogt
2014-10-09 20:07           ` Ian Lance Taylor
2014-09-09 12:58 ` [PATCH 6/9] " Dominik Vogt
2014-10-16 22:59   ` [gofrontend-dev] " Ian Lance Taylor
2014-09-09 13:02 ` [PATCH 7/9] " Dominik Vogt
2014-10-16 23:46   ` [gofrontend-dev] " Ian Lance Taylor
2014-10-28 14:40     ` Dominik Vogt
2014-10-28 17:37       ` Ian Taylor
2014-10-29  9:05         ` Dominik Vogt
2014-10-29 16:43   ` Andreas Schwab
2014-10-29 16:43     ` [gofrontend-dev] " Ian Taylor
2014-10-29 17:05       ` Andreas Schwab
2014-10-29 17:50         ` Ian Taylor
2014-10-30  7:50           ` Dominik Vogt
2014-10-30 15:05             ` Ian Taylor
2014-10-31  9:30               ` Dominik Vogt
2014-10-31 16:50                 ` Ian Taylor
2014-10-30 21:57             ` Joseph S. Myers
2014-09-09 13:04 ` [PATCH 8/9] " Dominik Vogt
2014-10-17  0:03   ` [gofrontend-dev] " Ian Lance Taylor
2014-10-29  9:13     ` Dominik Vogt
2014-10-29 15:22       ` Ian Taylor
2014-09-09 13:06 ` [PATCH 9/9] " Dominik Vogt
2014-10-17  0:07   ` [gofrontend-dev] " Ian Lance Taylor
2014-10-17  0:45 ` [gofrontend-dev] [PATCH 0/9] " Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140909125337.GE25290@linux.vnet.ibm.com \
    --to=vogt@linux.vnet.ibm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gofrontend-dev@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).