From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7374 invoked by alias); 12 Mar 2005 21:28:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 7334 invoked by uid 48); 12 Mar 2005 21:28:10 -0000 Date: Sat, 12 Mar 2005 21:28:00 -0000 Message-ID: <20050312212810.7333.qmail@sourceware.org> From: "amylaar at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030630050433.11375.wilson@gcc.gnu.org> References: <20030630050433.11375.wilson@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/11375] rtl_dump_file problems in rest_of_compilation X-Bugzilla-Reason: CC X-SW-Source: 2005-03/txt/msg01524.txt.bz2 List-Id: ------- Additional Comments From amylaar at gcc dot gnu dot org 2005-03-12 21:28 ------- (In reply to comment #0) > Consider the relatively new bt-load optimization. It runs in the middle of the > flow2 pass. It opens and closes its own dump file, DFI_branch_target_load. > This is all well and good, but there is a problem here. Dump files don't stack. > So when we calll open_dump_file for DFI_branch_target_load, we end up closing > the DFI_flow2 file accidentally. Then when we close DFI_branch_target_load, we > have no dump file at all. 35 lines later, we attempt to close DFI_flow2, but > this does nothing at all. Meanwhile, lots of info that should have gone into > the flow2 dump file disappears. In September 2004, open_dump_file was changed so that it aborts when a dump file is already open. That made the sh64-elf compiler abort when running with -da. I've fixed this with this patch: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01467.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11375