From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5037 invoked by alias); 6 Dec 2002 23:55:07 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 4986 invoked by uid 61); 6 Dec 2002 23:55:05 -0000 Date: Fri, 06 Dec 2002 15:55:00 -0000 Message-ID: <20021206235505.4985.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, malekith@pld.org.pl, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, malekith@pld.org.pl, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: optimization/4382: [3.2/3.3 regression] __builtin_{set,long}jmp with -O3 can crash the compiler X-SW-Source: 2002-12/txt/msg00422.txt.bz2 List-Id: Old Synopsis: __builtin_{set,long}jmp with -O3 can crash the compiler New Synopsis: [3.2/3.3 regression] __builtin_{set,long}jmp with -O3 can crash the compiler State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Fri Dec 6 15:55:04 2002 State-Changed-Why: Confirmed. I get with 3.2.2pre and 3.3pre: tmp/g> /home/bangerth/bin/gcc-3.2.2-pre/bin/gcc -c -O3 x.c x.c: In function `main': x.c:21: Internal compiler error in make_edges, at cfgbuild.c:402 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. tmp/g> tmp/g> tmp/g> tmp/g> /home/bangerth/bin/gcc-3.3-pre/bin/gcc -c -O3 x.c x.c: In function `main': x.c:21: error: Wrong amount of branch edges after unconditional jump 0 x.c:21: internal compiler error: verify_flow_info failed Please submit a full bug report, with preprocessed source if appropriate. See for instructions. This used to work with 2.95, but failed with 3.0 first. The following slighty simpler code also crashes the compiler, but please don't anyone ask me whether this makes any sense any more: ------------------------------- void jumpaway(int *ptr) { __builtin_longjmp(ptr,1); } int main(void) { __builtin_setjmp(0); jumpaway(0); } -------------------------- http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4382