public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Eric Botcazou <ebotcazou@adacore.com>
To: Matthew Wahab <matthew.wahab@foss.arm.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [C] Issue an error on scalar va_list with reverse storage order
Date: Tue, 08 Dec 2015 17:09:00 -0000	[thread overview]
Message-ID: <1616478.bpRHuiYqrS@polaris> (raw)
In-Reply-To: <5666F885.6060602@foss.arm.com>

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

> The new gcc.dg/sso-9.c test is failing for aarch64 and arm targets. There's
> no error generated if I compile the test from the command line for
> aarch64-none-elf. GCC for x86_64 does generate the error.

Fixed like so, applied as obvious, thanks for the heads up.


	* gcc.dg/sso-9.c (foo): Robustify trick.

-- 
Eric Botcazou

[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 437 bytes --]

Index: gcc.dg/sso-9.c
===================================================================
--- gcc.dg/sso-9.c	(revision 231394)
+++ gcc.dg/sso-9.c	(working copy)
@@ -22,6 +22,6 @@ void foo (int i, ...)
 {
   struct Rec a;
   va_start (a.v, i);
-  a.v = a.v, x = va_arg (a.v, int); /* { dg-error "array type|reverse storage order" } */
+  a.v = 0, x = va_arg (a.v, int); /* { dg-error "type|reverse storage order" } */
   va_end (a.v);
 }

      reply	other threads:[~2015-12-08 17:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-03 14:54 Eric Botcazou
2015-12-03 23:29 ` Joseph Myers
2015-12-08 15:34 ` Matthew Wahab
2015-12-08 17:09   ` Eric Botcazou [this message]

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=1616478.bpRHuiYqrS@polaris \
    --to=ebotcazou@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=matthew.wahab@foss.arm.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).