This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: mode_mask_array not initialized for EXTRA_CC_MODES
- To: richard dot earnshaw at arm dot com
- Subject: Re: mode_mask_array not initialized for EXTRA_CC_MODES
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 22 Oct 1998 23:59:28 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199810201618.RAA29083@sun52.NIS.cambridge>you write:
> This is a multipart MIME message.
>
> --==_Exmh_7299738900
> Content-Type: text/plain; charset=us-ascii
>
>
> The recent change to add mode_mask_array doesn't initialize the array for
> EXTRA_CC_MODES -- these are then used by nonzero_bits and like functions,
> but contain garbage, causing the ARM port to perform incorrect
> optimizations. Patch below:
>
> <date> Richard Earnshaw <rearnsha@arm.com>
>
> * machmode.h (mode_mask_array): No longer const.
> * rtl.c (init_rtl): Fully initialize it if EXTRA_CC_MODES defined.
Looks good to me.
Please install this patch.
Thanks!
jeff