This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ARM ISR routines.
- To: Nick Clifton <nickc at cambridge dot redhat dot com>
- Subject: Re: ARM ISR routines.
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Wed, 27 Jun 2001 14:33:12 +0100
- cc: Graham Stott <grahams at redhat dot com>, gcc-patches at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Organization: ARM Ltd.
- Reply-To: Richard dot Earnshaw at arm dot com
> Hi Graham,
>
> > Why not use the HOST_UNIT macro instead of these casts
>
> Because HOST_UNIT is only for constants, and will not work on arbitrary
> expressions. (Check out the appending of 'UL' in __STDC__ mode.)
>
HOST_UINT is currently broken and generates ANSI/K+R warnings with the
default bootstrap arguments. We need to get rid of it/change it into a
form that really works with default options. It was compilers that
generated warnings for ((unsigned HOST_WIDE_INT)0xffffffff) that were
broken and the existing hack makes things worse not better.
I think Graham's suggestion is reasonable.
R.