This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR57980


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]