[Bug target/86084] New: trunk/gcc/config/m32c/m32c.c:4368: suspicious comparison ?
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jun 7 18:03:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86084
Bug ID: 86084
Summary: trunk/gcc/config/m32c/m32c.c:4368: suspicious
comparison ?
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Target: m32c
trunk/gcc/config/m32c/m32c.c:4368:2: warning: logical ‘or’ of equal expressions
[-Wlogical-op]
Source code is
if (GET_CODE (operands[0]) == MEM
|| GET_CODE (operands[0]) == MEM)
Maybe better code
if (GET_CODE (operands[0]) == MEM
|| GET_CODE (operands[1]) == MEM)
More information about the Gcc-bugs
mailing list