This is the mail archive of the gcc@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]

Re: -xtaso_short option on DEC Alpha Linux ?


On Mon, Nov 22, 2004 at 06:55:15AM -0800, Jim McCarthy wrote:
> Given that the GNU linker supports the -taso switch, I am curious to know if
> gcc support for -xtaso and especially -xtaso_short on DEC Alpha Linux is far
> behind ?

There are no plans to ever support this option.

You can *usually* get away with just ignoring the cast warnings and
supplying the -taso switch to the linker.  Pointers *will* still be
64 bits, but due to the link switch only 31 bits will ever be set,
which means that the cast-to-int and back will work.

This only fails to work when you've got pointers in structures that
wind up in external data formats, or if you assume structure sizes
instead of using sizeof or offsetof.


r~


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