From patchwork Wed Jun 1 15:41:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 98211 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 AC6E2B6F8C for ; Thu, 2 Jun 2011 01:41:31 +1000 (EST) Received: (qmail 14158 invoked by alias); 1 Jun 2011 15:41:29 -0000 Received: (qmail 14147 invoked by uid 22791); 1 Jun 2011 15:41:28 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Jun 2011 15:41:14 +0000 Received: from wpaz9.hot.corp.google.com (wpaz9.hot.corp.google.com [172.24.198.73]) by smtp-out.google.com with ESMTP id p51FfBuB013095; Wed, 1 Jun 2011 08:41:12 -0700 Received: from topo.tor.corp.google.com (topo.tor.corp.google.com [172.29.41.2]) by wpaz9.hot.corp.google.com with ESMTP id p51FfAXd011251; Wed, 1 Jun 2011 08:41:10 -0700 Received: by topo.tor.corp.google.com (Postfix, from userid 54752) id C66301DA1C9; Wed, 1 Jun 2011 11:41:09 -0400 (EDT) To: reply@codereview.appspotmail.com, crowl@google.com, collinwinter@google.com, gcc-patches@gcc.gnu.org Subject: [pph] Add new C test case (issue4559064) Message-Id: <20110601154109.C66301DA1C9@topo.tor.corp.google.com> Date: Wed, 1 Jun 2011 11:41:09 -0400 (EDT) From: dnovillo@google.com (Diego Novillo) X-System-Of-Record: true 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 This test case from the C testsuite started working after the last merge from trunk. Collin, this is the test I was referring to yesterday. I'm going to add some more C test cases to the testsuite that are currently not working. I think that's going to make our fixing job easier (otherwise, it's not trivial to test these test cases outside my own local tree). Tested on x86_64. Committed to pph. Diego. * g++.dg/pph/c1return-5.cc: New. * g++.dg/pph/c1return-5.h: New. --- This patch is available for review at http://codereview.appspot.com/4559064 diff --git a/gcc/testsuite/g++.dg/pph/c1return-5.cc b/gcc/testsuite/g++.dg/pph/c1return-5.cc new file mode 100644 index 0000000..804e113 --- /dev/null +++ b/gcc/testsuite/g++.dg/pph/c1return-5.cc @@ -0,0 +1 @@ +#include "c1return-5.h" diff --git a/gcc/testsuite/g++.dg/pph/c1return-5.h b/gcc/testsuite/g++.dg/pph/c1return-5.h new file mode 100644 index 0000000..8b72a51 --- /dev/null +++ b/gcc/testsuite/g++.dg/pph/c1return-5.h @@ -0,0 +1,16 @@ +#ifndef __PPH_GUARD_H +#define __PPH_GUARD_H +/* { dg-options "-mpreferred-stack-boundary=4" } */ +/* { dg-final { scan-assembler-not "and\[lq\]?\[^\\n\]*-64,\[^\\n\]*sp" } } */ + +/* This compile only test is to detect an assertion failure in stack branch + development. */ +struct bar +{ + int x; +} __attribute__((aligned(64))); + + +struct bar +foo (void) { } +#endif