From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28315 invoked by alias); 11 Apr 2011 16:45:02 -0000 Received: (qmail 28260 invoked by uid 22791); 11 Apr 2011 16:45:01 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Apr 2011 16:44:57 +0000 Received: by yxn22 with SMTP id 22so3352171yxn.20 for ; Mon, 11 Apr 2011 09:44:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.139.15 with SMTP id r15mr3548187ann.137.1302540296154; Mon, 11 Apr 2011 09:44:56 -0700 (PDT) Received: by 10.100.214.4 with HTTP; Mon, 11 Apr 2011 09:44:56 -0700 (PDT) In-Reply-To: References: <20110409100809.BF9CD3BE18@mailhost.lps.ens.fr> Date: Mon, 11 Apr 2011 16:45:00 -0000 Message-ID: Subject: Re: Implement stack arrays even for unknown sizes From: Steven Bosscher To: Michael Matz Cc: Paul Richard Thomas , Dominique Dhumieres , fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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: 2011-04/txt/msg00771.txt.bz2 On Mon, Apr 11, 2011 at 6:04 PM, Michael Matz wrote: > On Sat, 9 Apr 2011, Paul Richard Thomas wrote: > >> I find that both nf.f90 and capacita.f90 segfault in runtime for any >> stack size. > > Try this patch. =A0I've verified that capacita and nf work with it and > -march=3Dnative -ffast-math -funroll-loops -fstack-arrays -O3 . =A0In fac= t all > of polyhedron works for me on these flags. =A0(I've set a ulimit -s of > 512MB, but I don't know if such a large amount is required). FWIW, I don't think it is reasonable to require ulimit -s to run polyhedron. Isn't there a way to put a maximum on the size of the arrays on stack, e.g. -fstack-arrays-limit=3D or something like that? BTW why does trans-array need gimple.h? Ciao! Steven