This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -xtaso_short option on DEC Alpha Linux ?
- From: Richard Henderson <rth at redhat dot com>
- To: Jim McCarthy <jkmccarthy at pacbell dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 22 Nov 2004 10:52:07 -0800
- Subject: Re: -xtaso_short option on DEC Alpha Linux ?
- References: <NGBBLDLPGKFOBPGJPJAHIEBMEPAA.jkmccarthy@pacbell.net>
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~