[PATCH] Fix PR57980
Marek Polacek
polacek@redhat.com
Tue Aug 13 12:06:00 GMT 2013
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
More information about the Gcc-patches
mailing list