From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30359 invoked by alias); 13 Apr 2016 19:41:37 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 30343 invoked by uid 89); 13 Apr 2016 19:41:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:D*es, HContent-Transfer-Encoding:8bit X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 13 Apr 2016 19:41:34 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aqQfK-0008UH-Pw for fortran@gcc.gnu.org; Wed, 13 Apr 2016 21:41:30 +0200 Received: from 180eps.cdf.udc.es ([193.147.37.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Apr 2016 21:41:30 +0200 Received: from aluaces by 180eps.cdf.udc.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Apr 2016 21:41:30 +0200 To: fortran@gcc.gnu.org From: Alberto Luaces Subject: Re: Local arrays of variable size are allocated Date: Wed, 13 Apr 2016 19:41:00 -0000 Message-ID: <87shypguu3.fsf@eps142.cdf.udc.es> References: <7F67D7D3-A6B5-43EA-9CFA-6489FB2520C2@lps.ens.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00045.txt.bz2 Dominique d'Humières writes: >> Can adjust anything so only stack space is used? > > Which options are you using? You may want to try -Ofast. Spot on, Dominique! -Ofast triggers "-fstack-arrays", which does exactly what I need. -- Alberto