arithmetic HI+PSI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

When I add a pointer (PSImode) with an int (HImode) (ex: sp-=cnt) ,
gcc expands the signed int by zero_extend'ing  the int and then adding
both PSI values (instead of sign extending).
How should I fix this ?
POINTERS_EXTEND_UNSIGNED is 0.

And what is the difference between ptr_mode and Pmode ?

thanks,
Aurélien



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux