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]

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


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.

--- 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 ();

	Jakub


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