From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28701 invoked by alias); 7 Dec 2012 17:35:26 -0000 Received: (qmail 25055 invoked by uid 48); 7 Dec 2012 17:35:02 -0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/55610] cc1 is calling munmap() on part of itself on darwin Date: Fri, 07 Dec 2012 17:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at nitro dot med.uc.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg00757.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55610 --- Comment #4 from Jack Howarth 2012-12-07 17:35:00 UTC --- --- gcc-4.7.2/gcc/config/host-darwin.c.orig 2012-12-07 11:30:48.000000000 -0500 +++ gcc-4.7.2/gcc/config/host-darwin.c 2012-12-07 11:39:21.000000000 -0500 @@ -57,8 +57,8 @@ /* Round the size to a whole page size. Normally this is a no-op. */ sz = (sz + pagesize - 1) / pagesize * pagesize; - if (munmap (pch_address_space + sz, sizeof (pch_address_space) - sz) != 0) - fatal_error ("couldn%'t unmap pch_address_space: %m"); + /* if (munmap (pch_address_space + sz, sizeof (pch_address_space) - sz) != 0) + fatal_error ("couldn%'t unmap pch_address_space: %m"); */ if (ret) { eliminates the dyld: lazy symbol binding failure with... /sw/lib/gcc4.7/bin/gcc-4 -fplugin=/sw/lib/gcc4.7/lib/dragonegg.so -O3 -fplugin-arg-dragonegg-llvm-option=-load:/sw/opt/llvm-3.2/lib/LLVMPolly.so -fplugin-arg-dragonegg-llvm-option=-polly himenoBMTxpa.c under llvm/polly/dragonegg 3.2 branch. Will run full regression testing on the gcc 4.7.2 build to hunt for regressions from this change to darwin_gt_pch_use_address on x86_64-apple-darwin12.