This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17224] [3.4/4.0 Regression]: relocation truncated to fit: GPREL22
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Nov 2004 23:17:46 -0000
- Subject: [Bug target/17224] [3.4/4.0 Regression]: relocation truncated to fit: GPREL22
- References: <20040829002954.17224.tege-gcc@swox.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 <stdint.h>
intptr_t foo () { static int n; return (intptr_t) &n - 89477598;}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17224