From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12499 invoked by alias); 1 Oct 2006 05:29:16 -0000 Received: (qmail 12478 invoked by uid 48); 1 Oct 2006 05:29:07 -0000 Date: Sun, 01 Oct 2006 05:29:00 -0000 Message-ID: <20061001052907.12477.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/29305] local label-as-value being placed before function prolog In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia 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-10/txt/msg00010.txt.bz2 List-Id: ------- Comment #3 from pinskia at gcc dot gnu dot org 2006-10-01 05:29 ------- It is failing right out if you don't have any computed gotos in your function (or a goto to that label). You should try doing: asm volatile("faulted: ud2"); and make faulted a static function but that might not work with unrolling, etc. Really there is no way for doing what you are asking and really not the correct way to think about what you are doing. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|c |middle-end Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29305