https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104680

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
> trunk.git/gcc/config/avr/avr.cc:8674:22: warning: Identical inner 'if' 
> condition is always true. [identicalInnerCondition]

In avr_out_fract:

8665   │           /* We need to consider to-be-discarded bits
8666   │              if the value is negative.  */
8667   │           if (sn < s0)
8668   │             {
8669   │               avr_asm_len ("tst %0" CR_TAB
8670   │                            "brpl 0f",
8671   │                            &all_regs_rtx[src.regno_msb], plen, 2);
8672   │               /* Test to-be-discarded bytes for any nozero bits.
8673   │                  ??? Could use OR or SBIW to test two registers at
once.  */
8674   │               if (sn < s0)
8675   │                 avr_asm_len ("cp %0,__zero_reg__", &all_regs_rtx[sn],
plen, 1);
8676   │ 

sn < s0 is checked at line 8667, then again at line 8675.

Reply via email to