From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31582 invoked by alias); 20 Oct 2009 15:26:23 -0000 Received: (qmail 31571 invoked by uid 22791); 20 Oct 2009 15:26:22 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Oct 2009 15:26:18 +0000 Received: from relay1.suse.de (mail2.suse.de [195.135.221.8]) by mx2.suse.de (Postfix) with ESMTP id 7140C867E2 for ; Tue, 20 Oct 2009 17:26:16 +0200 (CEST) Date: Tue, 20 Oct 2009 16:00:00 -0000 From: Richard Guenther To: gcc-patches@gcc.gnu.org Subject: [PATCH] New testcase Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg01293.txt.bz2 Committed. 2009-10-20 Richard Guenther * gcc.dg/lto/20091020-3_0.c: New testcase. Index: testsuite/gcc.dg/lto/20091020-3_0.c =================================================================== --- testsuite/gcc.dg/lto/20091020-3_0.c (revision 0) +++ testsuite/gcc.dg/lto/20091020-3_0.c (revision 0) @@ -0,0 +1,20 @@ +/* { dg-lto-do assemble } */ + +typedef __SIZE_TYPE__ size_t; +static int stack_dir; +static void find_stack_direction () +{ + static char *addr = ((void *)0); + auto char dummy; + if (addr == ((void *)0)) + { + addr = &(dummy); + find_stack_direction (); + } +} +void * C_alloca (size_t size) +{ + if (stack_dir == 0) + find_stack_direction (); +} +