Patchwork [committed] Fix alloca-{4,5}.c testcases

login
register
mail settings
Submitter Jakub Jelinek
Date Sept. 23, 2010, 11:13 a.m.
Message ID <20100923111300.GF1269@tyan-ft48-01.lab.bos.redhat.com>
Download mbox | patch
Permalink /patch/65527/
State New
Headers show

Comments

Jakub Jelinek - Sept. 23, 2010, 11:13 a.m.
Hi!

-m32 should never be used in dg-options, plus alloca-5.c doesn't compile
with -DDEBUG.  Fixed thusly, committed as obvious.

2010-09-23  Jakub Jelinek  <jakub@redhat.com>

	* gcc.dg/torture/stackalign/alloca-4.c: Remove -m32 from dg-options.
	* gcc.dg/torture/stackalign/alloca-5.c: Likewise.  Fix up -DDEBUG
	build.


	Jakub

Patch

--- gcc/testsuite/gcc.dg/torture/stackalign/alloca-4.c.jj	2010-06-11 11:01:54.000000000 +0200
+++ gcc/testsuite/gcc.dg/torture/stackalign/alloca-4.c	2010-09-23 12:51:48.368533934 +0200
@@ -1,6 +1,6 @@ 
 /* PR middle-end/37009 */
 /* { dg-do run { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
-/* { dg-options "-m32 -mincoming-stack-boundary=2 -mpreferred-stack-boundary=2" } */
+/* { dg-options "-mincoming-stack-boundary=2 -mpreferred-stack-boundary=2" } */
 
 #include "check.h"
 
--- gcc/testsuite/gcc.dg/torture/stackalign/alloca-5.c.jj	2010-09-21 00:36:47.000000000 +0200
+++ gcc/testsuite/gcc.dg/torture/stackalign/alloca-5.c	2010-09-23 12:52:05.770533842 +0200
@@ -1,6 +1,6 @@ 
 /* PR middle-end/45234 */
 /* { dg-do run { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
-/* { dg-options "-m32 -mincoming-stack-boundary=2 -mpreferred-stack-boundary=2" } */
+/* { dg-options "-mincoming-stack-boundary=2 -mpreferred-stack-boundary=2" } */
 
 #include "check.h"
 
@@ -22,7 +22,7 @@  main (void)
   if (__builtin_strncmp (p, "good", 5) != 0)
     {
 #ifdef DEBUG
-      p[size] = '\0';
+      p[5] = '\0';
       printf ("Failed: %s != good\n", p);
 #endif
      abort ();