From patchwork Thu Sep 23 11:13:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 65527 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 6CDD1B70E7 for ; Thu, 23 Sep 2010 21:12:01 +1000 (EST) Received: (qmail 29134 invoked by alias); 23 Sep 2010 11:11:57 -0000 Received: (qmail 29123 invoked by uid 22791); 23 Sep 2010 11:11:56 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Sep 2010 11:11:51 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o8NBBoEN002206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Sep 2010 07:11:50 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o8NBBnP0006030 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Sep 2010 07:11:49 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4) with ESMTP id o8NBD4pP019746; Thu, 23 Sep 2010 13:13:04 +0200 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id o8NBD0rV019745; Thu, 23 Sep 2010 13:13:00 +0200 Date: Thu, 23 Sep 2010 13:13:00 +0200 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Cc: hjl.tools@gmail.com Subject: [committed] Fix alloca-{4,5}.c testcases Message-ID: <20100923111300.GF1269@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 * 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 --- 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 ();