This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: don't assume pointer cast to unsigned long is a valid initializer
On Sun, Mar 02, 2003 at 04:04:55AM -0300, Alexandre Oliva wrote:
> static short i = (short)&_text;
> static long long j = (long long)&_text + 0x100000000LL - 1;
> typedef int TI attribute((TImode));
> static TI k = (TI)&_text + (TI)-1;
>
> Are these valid testcases? On how many platforms would they actually
> assemble? What if a R_*_16, R_*_64 or R_*_128 relocation is not
> available?
targetm.valid_pointer_mode is intended to describe this.
r~