This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]