[Bug target/17224] [3.4/4.0 Regression]: relocation truncated to fit: GPREL22

schwab at suse dot de gcc-bugzilla@gcc.gnu.org
Mon Nov 29 23:17:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list