public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Dominik Vogt <vogt@linux.vnet.ibm.com>
To: "gofrontend-dev@googlegroups.com"
	<gofrontend-dev@googlegroups.com>,
	       gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [gofrontend-dev] Re: [PATCH 7/9] Gccgo port to s390[x] -- part I
Date: Thu, 30 Oct 2014 07:50:00 -0000	[thread overview]
Message-ID: <20141030072534.GA5946@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAOyqgcXi9s=gBpWn3csmShe41jPqbhPmFV+hrB7y96AR=E3uCg@mail.gmail.com>

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

On Wed, Oct 29, 2014 at 10:16:40AM -0700, Ian Taylor wrote:
> Thanks.  Part of the problem is that the m68k max alignment is 16
> bits, but the godump test expects it to be at least 64 bits.  This is
> BIGGEST_ALIGNMENT in config/m68k/m68k.h.  Another part of the problem
> seems to be that structs are sometimes aligned to 16 bits although
> there is no obvious reason for that.  I'm not sure where that is
> coming from.

Hm, the test cases make assumptions about the Abi (structure
padding and alignment) that are true on x86, x64_64 and s390[x].
That may not be the case on other platforms and hence the tests
fail.  Another candidate for test failures is the effect of
bitfields (named or anonymous) on structure layout.

> We could disable the test on m68k or make it more accepting.

Since the point of some of the tests is to make sure that the Go
structure layout matches the C layout, making the tests accept
deviations seems to be rather pointless.  It's possible to add
target selectors to all the "scan-file" lines, but that is a lot
of work and will likely become unmaintainable very soon when more
platforms need to be added.  Personally I cannot provide fixed
tests for all the Abis either, so my suggestion is to "xfail" the
test on all targets except s390[x] and x86_64 and leave it to the
people who know the other platforms to decide whether the test
should work there or how the test could be modified to work.

See attached patch.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany

[-- Attachment #2: 0001-Xfail-fdump-go-spec-tests-for-all-platforms-except-s.patch --]
[-- Type: text/x-diff, Size: 761 bytes --]

From fc92faa8532e3ea0ac3b4c8b18eb6b0a3ee862dc Mon Sep 17 00:00:00 2001
From: Dominik Vogt <vogt@linux.vnet.ibm.com>
Date: Thu, 30 Oct 2014 07:50:18 +0100
Subject: [PATCH] Xfail -fdump-go-spec tests for all platforms except s390[x]
 and x86_64.

---
 gcc/testsuite/gcc.misc-tests/godump-1.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.misc-tests/godump-1.c b/gcc/testsuite/gcc.misc-tests/godump-1.c
index f339cc9..91b8637 100644
--- a/gcc/testsuite/gcc.misc-tests/godump-1.c
+++ b/gcc/testsuite/gcc.misc-tests/godump-1.c
@@ -2,6 +2,7 @@
 
 /* { dg-options "-c -fdump-go-spec=godump-1.out" } */
 /* { dg-do compile } */
+/* { dg-xfail-if "not supported for target" { ! "s390*-*-* x86_64-*-*" } } */
 
 #include <stdint.h>
 
-- 
1.8.4.2


  reply	other threads:[~2014-10-30  7:25 UTC|newest]

Thread overview: 41+ 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 ` [PATCH 4/9] " Dominik Vogt
2014-10-04  1:19   ` [gofrontend-dev] " 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 [this message]
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
2014-10-30 15:13 [gofrontend-dev] Re: [PATCH 7/9] " Uros Bizjak
2014-10-30 15:35 ` Ian Taylor
2014-10-31  9:18   ` Dominik Vogt

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=20141030072534.GA5946@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).