This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR57980
- From: Marek Polacek <polacek at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Richard Biener <richard dot guenther at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Marc Glisse <marc dot glisse at inria dot fr>
- Date: Tue, 13 Aug 2013 14:06:49 +0200
- Subject: Re: [PATCH] Fix PR57980
- References: <20130809143518 dot GH17022 at redhat dot com> <ea7cf32a-879d-4c31-ab5c-1e6f4995845e at email dot android dot com> <20130812085644 dot GK17022 at redhat dot com> <20130813102459 dot GE1814 at tucnak dot redhat dot com> <20130813102726 dot GF1814 at tucnak dot redhat dot com>
On Tue, Aug 13, 2013 at 12:27:26PM +0200, Jakub Jelinek wrote:
> Also, for the testcase,
> typedef int V __attribute__ ((vector_size (sizeof (int))));
> looks weird, that is one element vector, can you use 2 * sizeof (int)
> instead and add -w to dg-options (for the various -Wpsabi warnings)?
Ok, adjusted with the following; will commit as obvious.
2013-08-13 Marek Polacek <polacek@redhat.com>
* gcc.dg/pr57980.c: Use vector of two elements, not just one.
--- gcc/testsuite/gcc.dg/pr57980.c.mp 2013-08-13 14:03:22.104617686 +0200
+++ gcc/testsuite/gcc.dg/pr57980.c 2013-08-13 14:04:42.889937026 +0200
@@ -1,8 +1,8 @@
/* PR tree-optimization/57980 */
/* { dg-do compile } */
-/* { dg-options "-O -foptimize-sibling-calls" } */
+/* { dg-options "-O -foptimize-sibling-calls -w" } */
-typedef int V __attribute__ ((vector_size (sizeof (int))));
+typedef int V __attribute__ ((vector_size (2 * sizeof (int))));
extern V f (void);
V
Marek