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]
Other format: [Raw text]

Re: [RS6000] Fix PR12817


On Sat, Nov 27, 2004 at 02:21:30PM -0800, Dale Johannesen wrote:
> +  info_ptr->world_save_p = 1;
> +  info_ptr->world_save_p
> +    = (WORLD_SAVE_P (info_ptr)
> +       && DEFAULT_ABI == ABI_DARWIN
> +       && ! (current_function_calls_setjmp && flag_exceptions)
> +       && info_ptr->first_fp_reg_save == FIRST_SAVED_FP_REGNO
> +       && info_ptr->first_gp_reg_save == FIRST_SAVED_GP_REGNO
> +       && info_ptr->first_altivec_reg_save == FIRST_SAVED_ALTIVEC_REGNO
> +       && info_ptr->cr_save_p);
> 
> The first line is redundant.

Note the WORLD_SAVE_P test on the next line.  It's part of the trick to
have this function reduce down to

  info_ptr->world_save_p = 0;

on anything but Darwin.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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