From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.bugs Subject: bug#18995: Error: Could not reserve dynamic heap area. Date: Sat, 8 Nov 2014 20:16:19 +0100 Message-ID: References: <834mu9r47v.fsf@gnu.org> <83y4rlpmsr.fsf@gnu.org> <83wq75plkm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c35088a1b60605075dc35c X-Trace: ger.gmane.org 1415474252 563 80.91.229.3 (8 Nov 2014 19:17:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2014 19:17:32 +0000 (UTC) Cc: 18995@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 08 20:17:22 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 1XnBVf-0004QR-Ec for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 20:17:19 +0100 Original-Received: from localhost ([::1]:36663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnBVf-00010F-0p for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 14:17:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnBVV-000108-Kk for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 14:17:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnBVP-0003Wb-GA for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 14:17:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnBVP-0003WX-DC for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 14:17:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XnBVO-0004dz-5t for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 14:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alexander Shukaev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Nov 2014 19:17: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.141547418417791 (code B ref 18995); Sat, 08 Nov 2014 19:17:02 +0000 Original-Received: (at 18995) by debbugs.gnu.org; 8 Nov 2014 19:16:24 +0000 Original-Received: from localhost ([127.0.0.1]:53964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnBUl-0004cs-D7 for submit@debbugs.gnu.org; Sat, 08 Nov 2014 14:16:23 -0500 Original-Received: from mail-la0-f50.google.com ([209.85.215.50]:64570) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnBUi-0004ci-1I for 18995@debbugs.gnu.org; Sat, 08 Nov 2014 14:16:20 -0500 Original-Received: by mail-la0-f50.google.com with SMTP id hz20so5996242lab.9 for <18995@debbugs.gnu.org>; Sat, 08 Nov 2014 11:16:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8PA8QdGkBH3vjd1gLRUgGz1m8OFQ1VpZxYNJ36JKKeA=; b=JOnBqzkpaO4WqfADpK8GeAcd93/LniUDYBYLzXcyd2m9kkWRyJW2OWZt53ZcZ/G0kt huy1GN1Awn/OXPR8mX0mCXbPrZy6W2NBMzA3CnWp4x+/N2HgrhUKhjoDJ0nwr0JHeX9j wn4utPrESUecfk7SHyEGuq9XZDOBJwmy1IUpzct9fPaJwjqrMIaRIFS9CAgexbJYqCBD Huwj4/qdiVcTJQSk0jHd8JLtOK9UmBs/1F67/bL4g5cgE3vXrk85sCyEyJ+jjN92RBLE TSjodzHZb74pyTm5QYv07kXPTOA+jLClX59Yuugvg6UGpFGv48Htc5+AWB239nXz2Z4t ionw== X-Received: by 10.152.42.226 with SMTP id r2mr19191260lal.29.1415474179059; Sat, 08 Nov 2014 11:16:19 -0800 (PST) Original-Received: by 10.112.202.106 with HTTP; Sat, 8 Nov 2014 11:16:19 -0800 (PST) In-Reply-To: <83wq75plkm.fsf@gnu.org> 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:95744 --001a11c35088a1b60605075dc35c Content-Type: text/plain; charset=UTF-8 > > 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? --001a11c35088a1b60605075dc35c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
So what, the optimized code goes only once throu= gh the loop, and then
bails out?=C2=A0 If so, what is the value of 'size' when the loop e= nds?

OK, so there was on= e more detail that I forgot to mention. It looks like I also had "-fun= roll-loops". After removing it, "-O3" works fine too (withou= t "volatile"). I think this is still a toolchain bug because &quo= t;-O3 -funroll-loops" combination works fine in the x64 build and what= 's more important --- it *should* work fine. Anyway, maybe it's a g= ood idea to somehow prevent people from passing "-funroll-loops" = by filtering it out from "CFLAGS" in "Makefile" for exa= mple?
--001a11c35088a1b60605075dc35c--