public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Olivier Hainque <hainque@adacore.com>
To: gcc@gcc.gnu.org
Cc: hainque@adacore.com
Subject: BIGGEST_ALIGNMENT vs g++ compat test expectation on aix ?
Date: Mon, 29 Jun 2009 14:10:00 -0000	[thread overview]
Message-ID: <20090629135915.GA1654@cardhu.act-europe.fr> (raw)

Working on a collect2 related patch resubmission for ppc-aix, I
stumbled on regressions in the c++ series for a problem unrelated to
my change. Not sure how you'd typically deal with these, so providing
the datapoints here.

tmpdir-g++.dg-struct-layout-1/t027 and a couple of other tests failed
from constructs like

    struct S2661 {
	union{v16sf b[31];Tal2short c __attribute__((aligned (4)));}a;
	float d;
    };

    struct S2661 s2661;
    struct S2661 a2661[5];

    info.als = __alignof__ (s2661);
    if (&a2661[3] & (info.als - 1)) FAIL ...

the alignment check is up to that of v16sf (64bytes), and this
occasionaly fails because csects are "only" aligned in accordance with

   rs6000.h:#define BIGGEST_ALIGNMENT 128

The discrepancy is visible straight from the assembly output
for e.g. t027_y (out of the unchanged compiler as well):

        .csect .data[RW],4
                        ^^^
        .align 6
              ^^^
a2661:
        .space 10240

Olivier



 




             reply	other threads:[~2009-06-29 13:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-29 14:10 Olivier Hainque [this message]
2009-06-30 15:14 ` David Edelsohn
2009-07-02 16:49   ` Olivier Hainque

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=20090629135915.GA1654@cardhu.act-europe.fr \
    --to=hainque@adacore.com \
    --cc=gcc@gcc.gnu.org \
    /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).