Joern Rennecke <joern.renne...@embecosm.com> writes:
> sched_macro_fuse_insns uses the value in condreg1 without
> checking the return value of targetm.fixed_condition_code_regs.  As
> this variables
> is not initialized anywhere, this leads to constructing cc_reg_1 with
> an undefined value,
> and then using that in reg_referenced_p, if TARGET_FIXED_CONDITION_CODE_REGS
> has the default value as defined in target.def (hook_bool_uintp_uintp_false).
>
> The attached patch fixes this by checking the return value of
> targetm.fixed_condition_code_regs.  Bootstrapped & regtested on
> x86_64-pc-linux-gnu .
>
> 2019-04-04  Joern Rennecke  <joern.renne...@embecosm.com>
>
>       * sched-deps.c (sched_macro_fuse_insns): Check return value of
>       targetm.fixed_condition_code_regs.

OK, thanks.

Richard

Reply via email to