This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix alloca-{4,5}.c testcases
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: hjl dot tools at gmail dot com
- Date: Thu, 23 Sep 2010 13:13:00 +0200
- Subject: [committed] Fix alloca-{4,5}.c testcases
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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