From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20235 invoked by alias); 10 Sep 2006 11:16:47 -0000 Received: (qmail 20201 invoked by uid 48); 10 Sep 2006 11:16:39 -0000 Date: Sun, 10 Sep 2006 11:16:00 -0000 Message-ID: <20060910111639.20200.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/26983] [4.0/4.1/4.2 Regression] Missing label with builtin_setjmp/longjmp In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "steven at gcc dot gnu dot org" 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 X-SW-Source: 2006-09/txt/msg00761.txt.bz2 List-Id: ------- Comment #10 from steven at gcc dot gnu dot org 2006-09-10 11:16 ------- I've decided to go with LABEL_PRESERVE_P after all... Index: builtins.c =================================================================== --- builtins.c (revision 116785) +++ builtins.c (working copy) @@ -760,6 +760,12 @@ expand_builtin_setjmp (tree arglist, rtx emit_label (next_lab); + /* Because setjmp and longjmp are not represented in the CFG, a cfgcleanup + may find that the basic block starting with NEXT_LAB is unreachable. + The whole block, along with NEXT_LAB, would be removed. Make sure that + never happens. */ + LABEL_PRESERVE_P (next_lab) = 1; + expand_builtin_setjmp_receiver (next_lab); /* Set TARGET to one. */ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26983