Patchwork Fix PR57980

login
register
mail settings
Submitter Marek Polacek
Date Aug. 13, 2013, 12:06 p.m.
Message ID <20130813120648.GP17022@redhat.com>
Download mbox | patch
Permalink /patch/266781/
State New
Headers show

Comments

Marek Polacek - Aug. 13, 2013, 12:06 p.m.
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.


	Marek

Patch

--- 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