From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125202 invoked by alias); 9 May 2015 04:37:43 -0000 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 Received: (qmail 125167 invoked by uid 48); 9 May 2015 04:37:39 -0000 From: "dougmencken at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/66038] SIGSEGV at stage 2 build/genmatch --gimple ../../gcc-5.1.0/gcc/match.pd Date: Sat, 09 May 2015 04:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dougmencken at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg00735.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66038 --- Comment #3 from Douglas Mencken --- (In reply to Richard Biener from comment #2) > I think you may run into a host compiler issue? (ISTR a similar bug for > darwin) > > What is your host compiler? I suppose ppc-darwin still uses gcc 4.2.x, > right? My stage0 compiler is 4.9.2 (not Apple-patched 4.2.1). I also mentioned its "-v output" in above comment. But I doubt it is related to host compiler... This is happening on stage2, and $ prev-gcc/build/genmatch --gimple ../gcc-5.1.0/gcc/match.pd works well. It is $ gcc/build/genmatch --gimple ../gcc-5.1.0/gcc/match.pd that fails. Backtrace. $ gdb --args gcc/build/genmatch --gimple ../gcc-5.1.0/gcc/match.pd (gdb) run Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x419e04bc 0x0000dcb0 in operand::gen_transform () (gdb) bt #0 0x0000dcb0 in operand::gen_transform () #1 0x00007fd8 in get_operator () #2 0x000099a0 in parser::parse_operator_list () #3 0x0000cc38 in parser::parse_pattern () #4 0x0000dc44 in parser::parser () #5 0x0006357c in main () at ../../../../gcc-5.1.0/libstdc++-v3/libsupc++/eh_alloc.cc:121