From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5598 invoked by alias); 4 Sep 2008 10:53:42 -0000 Received: (qmail 4930 invoked by uid 48); 4 Sep 2008 10:52:22 -0000 Date: Thu, 04 Sep 2008 10:53:00 -0000 Message-ID: <20080904105222.4929.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/36881] [4.4 Regression] Creating runtime relocations for code which does not need it In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hubicka at gcc dot gnu dot org" 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 X-SW-Source: 2008-09/txt/msg00515.txt.bz2 ------- Comment #4 from hubicka at gcc dot gnu dot org 2008-09-04 10:52 ------- Ugly -fPIC friendly workaround would be to add runtime initialization. I.E. if (!initialized) {populate my array; initialized = true;} that would still allow conversion to happen and generate better code than expand_switch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36881