From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32129 invoked by alias); 29 Nov 2004 23:17:51 -0000 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 Received: (qmail 31667 invoked by uid 48); 29 Nov 2004 23:17:46 -0000 Date: Mon, 29 Nov 2004 23:17:00 -0000 Message-ID: <20041129231746.31666.qmail@sourceware.org> From: "schwab at suse dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040829002954.17224.tege-gcc@swox.com> References: <20040829002954.17224.tege-gcc@swox.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/17224] [3.4/4.0 Regression]: relocation truncated to fit: GPREL22 X-Bugzilla-Reason: CC X-SW-Source: 2004-11/txt/msg03727.txt.bz2 List-Id: ------- Additional Comments From schwab at suse dot de 2004-11-29 23:17 ------- Note that the following generates the same code, but IMHO is fully defined (apart of the implementation-defined behaviour of the intptr_t cast). #include intptr_t foo () { static int n; return (intptr_t) &n - 89477598;} -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17224