public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Eric Botcazou <ebotcazou@adacore.com>
To: Richard Earnshaw <Richard.Earnshaw@foss.arm.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [patch 6/6] scalar-storage-order merge: testsuite
Date: Fri, 19 Jun 2015 09:17:00 -0000	[thread overview]
Message-ID: <20211935.pEZnLrjCzp@polaris> (raw)
In-Reply-To: <2795379.nNeUsDUHZn@polaris>

> > Can I modify an existing struct to create an opposite endian variant?
> > Eg.
> > 
> > struct bar
> > {
> > 
> > 	int a;
> > 
> > };
> > 
> > struct wibble
> > {
> > 
> > 	struct __attr_sso__ bar a;
> > 
> > };
> 
> The compiler accepts it, but apparently discards the attribute silently,
> which looks like a bug to me.  Let me investigate.

This looks like an existing hole, the following is also silently accepted:

struct S1 { int i; };

struct S2 { struct __attribute__((unknown_attribute)) S1 s1; };

-- 
Eric Botcazou

  reply	other threads:[~2015-06-19  9:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-16  8:46 [patch 0/6] scalar-storage-order merge Eric Botcazou
2015-06-16  8:52 ` [patch 1/6] scalar-storage-order merge: Ada front-end Eric Botcazou
2015-06-16  8:56 ` [patch 2/6] scalar-storage-order merge: C front-end Eric Botcazou
2015-06-16  9:07   ` Ramana Radhakrishnan
2015-06-16  9:11     ` Andrew Pinski
2015-06-18 19:16     ` Eric Botcazou
2015-06-16 11:39   ` Richard Sandiford
2015-06-18 19:17     ` Eric Botcazou
2015-06-16 21:25   ` Joseph Myers
2015-06-19  9:36     ` Eric Botcazou
2015-06-16  8:59 ` [patch 3/6] scalar-storage-order merge: C++ front-end Eric Botcazou
2015-06-16  9:24 ` [patch 4/6] scalar-storage-order merge: bulk Eric Botcazou
2015-06-16  9:53 ` [patch 5/6] scalar-storage-order merge: rest Eric Botcazou
2015-06-16  9:59 ` [patch 6/6] scalar-storage-order merge: testsuite Eric Botcazou
2015-06-16 13:30   ` Richard Earnshaw
2015-06-18 20:29     ` Eric Botcazou
2015-06-19  9:17       ` Eric Botcazou [this message]
2015-10-06 10:57 [patch 0/6] scalar-storage-order merge (2) Eric Botcazou
2015-10-06 11:08 ` [patch 6/6] scalar-storage-order merge: testsuite Eric Botcazou
2015-10-12 22:26   ` Jeff Law

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=20211935.pEZnLrjCzp@polaris \
    --to=ebotcazou@adacore.com \
    --cc=Richard.Earnshaw@foss.arm.com \
    --cc=gcc-patches@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).