From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18995: Error: Could not reserve dynamic heap area. Date: Sat, 08 Nov 2014 21:50:13 +0200 Message-ID: <83vbmppj4a.fsf@gnu.org> References: <834mu9r47v.fsf@gnu.org> <83y4rlpmsr.fsf@gnu.org> <83wq75plkm.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1415476286 29938 80.91.229.3 (8 Nov 2014 19:51:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2014 19:51:26 +0000 (UTC) Cc: 18995@debbugs.gnu.org To: Alexander Shukaev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 08 20:51:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XnC2Y-0003N4-MI for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 20:51:18 +0100 Original-Received: from localhost ([::1]:36715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnC2Y-0006Kr-BM for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 14:51:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnC2P-0006Km-99 for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 14:51:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnC2J-0006H0-BN for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 14:51:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnC2J-0006Gw-84 for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 14:51:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XnC2I-0005WW-Cw for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 14:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Nov 2014 19:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18995 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18995-submit@debbugs.gnu.org id=B18995.141547623421197 (code B ref 18995); Sat, 08 Nov 2014 19:51:02 +0000 Original-Received: (at 18995) by debbugs.gnu.org; 8 Nov 2014 19:50:34 +0000 Original-Received: from localhost ([127.0.0.1]:53985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnC1p-0005Vo-DO for submit@debbugs.gnu.org; Sat, 08 Nov 2014 14:50:34 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:44644) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnC1l-0005Vb-Iu for 18995@debbugs.gnu.org; Sat, 08 Nov 2014 14:50:30 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NEQ00F00K9VBP00@a-mtaout21.012.net.il> for 18995@debbugs.gnu.org; Sat, 08 Nov 2014 21:50:27 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NEQ00FFSKG33H80@a-mtaout21.012.net.il>; Sat, 08 Nov 2014 21:50:27 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95746 > Date: Sat, 8 Nov 2014 20:16:19 +0100 > From: Alexander Shukaev > Cc: 18995@debbugs.gnu.org > > So what, the optimized code goes only once through the loop, and then > bails out? If so, what is the value of 'size' when the loop ends? > > > OK, so there was one more detail that I forgot to mention. It looks like I also > had "-funroll-loops". After removing it, "-O3" works fine too (without > "volatile"). I think this is still a toolchain bug because "-O3 -funroll-loops" > combination works fine in the x64 build and what's more important --- it > *should* work fine. Anyway, maybe it's a good idea to somehow prevent people > from passing "-funroll-loops" by filtering it out from "CFLAGS" in "Makefile" > for example? Do you understand why -funroll-loops causes the code to fail to work? Because I cannot. Unless I'm missing something, this sounds like a GCC bug.