public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61949] [4.10 regression] SEGV compiling gcc.dg/pch/import-[12].c
Date: Wed, 30 Jul 2014 14:07:00 -0000	[thread overview]
Message-ID: <bug-61949-4-6vsxQo6R0H@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-61949-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61949

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Reduced testcase, compile with -m32 -msse -O2 -fno-omit-frame-pointer
(works on a x86_64-linux host, no 32bit host available right now):

struct md5_ctx
{
  unsigned int A;
  unsigned int B;
  unsigned int C;
  unsigned int D;

  unsigned int total[2];
  unsigned int buflen;
  char buffer[128] __attribute__ ((__aligned__ (__alignof__ (unsigned int))));
};

void * __attribute__((noinline,noclone))
md5_read_ctx (const struct md5_ctx *ctx, void *resbuf)
{
  unsigned int buffer[4];

  buffer[0] = (ctx->A);
  buffer[1] = (ctx->B);
  buffer[2] = (ctx->C);
  buffer[3] = (ctx->D);

  __builtin_memcpy (resbuf, buffer, 16);

  return resbuf;
}


int main()
{
  char resbuf[16];
  struct md5_ctx c;
  md5_read_ctx (&c, resbuf);
  return 0;
}

Does this testcase fail on Solaris 10?


  parent reply	other threads:[~2014-07-30 14:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-29 15:10 [Bug middle-end/61949] New: " ro at gcc dot gnu.org
2014-07-29 15:10 ` [Bug middle-end/61949] " ro at gcc dot gnu.org
2014-07-30 10:01 ` rguenth at gcc dot gnu.org
2014-07-30 12:14 ` ro at CeBiTec dot Uni-Bielefeld.DE
2014-07-30 12:14 ` ro at gcc dot gnu.org
2014-07-30 14:07 ` rguenth at gcc dot gnu.org [this message]
2014-07-30 14:54 ` [Bug target/61949] " hjl.tools at gmail dot com
2015-02-17 18:58 ` [Bug target/61949] [5 " jakub at gcc dot gnu.org
2015-02-19 14:33 ` jakub at gcc dot gnu.org

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=bug-61949-4-6vsxQo6R0H@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).