From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12728 invoked by alias); 8 Feb 2014 08:04:00 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 12715 invoked by uid 89); 8 Feb 2014 08:03:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX autolearn=no version=3.3.2 X-HELO: mail-ve0-f172.google.com Received: from mail-ve0-f172.google.com (HELO mail-ve0-f172.google.com) (209.85.128.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 08 Feb 2014 08:03:58 +0000 Received: by mail-ve0-f172.google.com with SMTP id c14so3513799vea.17 for ; Sat, 08 Feb 2014 00:03:55 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.220.92.135 with SMTP id r7mr14064833vcm.11.1391846635799; Sat, 08 Feb 2014 00:03:55 -0800 (PST) Received: by 10.58.169.83 with HTTP; Sat, 8 Feb 2014 00:03:55 -0800 (PST) In-Reply-To: <1391844590227-1009578.post@n5.nabble.com> References: <1391844590227-1009578.post@n5.nabble.com> Date: Sat, 08 Feb 2014 08:04:00 -0000 Message-ID: Subject: Re: FRE may run out of memory From: Andrew Pinski To: dxq Cc: GCC Mailing List Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00104.txt.bz2 On Fri, Feb 7, 2014 at 11:29 PM, dxq wrote: > hi all, > > We found that gcc would run out of memory on Windows when compiling a *big* > function (100000 lines). My suggestion to you is file a bug to http://gcc.gnu.org/bugzilla with the preprocessed source. Also with the exact version of GCC you have tried. There have been some improvements with the extreme testcases; at least on the trunk of GCC sources. Thanks, Andrew Pinski > > More investigation shows that gcc crashes at the function *compute_avail*, > in tree-fre pass. *compute_avail* collects information from basic blocks, > so memory is allocated to record informantion. > However, if there are huge number of basic blocks, the memory would be > exhausted and gcc would crash down, especially for Windows PC, only 2G or 4G > memory generally. It's ok On linux, and *compute_avail* allocates *2.4G* > memory. I guess some optimization passes in gcc like FRE didn't consider the > extreme > case. > > When disable tree-fre pass, gcc crashes at IRA pass. I will do more > investigation about that. > > Any suggestions? > > Thanks! > > danxiaoqiang > > > > -- > View this message in context: http://gcc.1065356.n5.nabble.com/FRE-may-run-out-of-memory-tp1009578.html > Sent from the gcc - patches mailing list archive at Nabble.com.