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

Re: mode_mask_array not initialized for EXTRA_CC_MODES



  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


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