From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30355 invoked by alias); 9 Feb 2006 00:38:12 -0000 Received: (qmail 30339 invoked by uid 48); 9 Feb 2006 00:38:10 -0000 Date: Thu, 09 Feb 2006 00:38:00 -0000 Message-ID: <20060209003810.30338.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/26187] computed goto code does not produce jumps In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bje 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-02/txt/msg00864.txt.bz2 List-Id: ------- Comment #2 from bje at gcc dot gnu dot org 2006-02-09 00:38 ------- Thanks; I guess I misunderstood the semantics of computed gotos. On closer inspection of the GCC manual, "You may not use this mechanism to jump to code in a different function. If you do that, totally unpredictable things will happen. The best way to avoid this is to store the label address only in automatic variables and never pass it as an argument." -- bje at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26187