This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [m32c] reject illegal subregs of hard regs
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: DJ Delorie <dj at redhat dot com>
- Date: Fri, 9 Feb 2007 01:08:00 +0100
- Subject: Re: [m32c] reject illegal subregs of hard regs
- References: <200702082222.l18MMsai028179@greed.delorie.com>
On Thursday 08 February 2007 23:22, DJ Delorie wrote:
> + for (i = 0; i < sizeof(legal_subregs)/sizeof(legal_subregs[0]); i ++)
You don't have to use sizeof here, you can use the ARRAY_SIZE macro:
for (i = 0; i < ARRAY_SIZE (legal_subregs); i++)
Gr.
Steven