https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85986
Bug ID: 85986 Summary: config/rl78/rl78.c:984: bad test ? 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: rl78 rl78/rl78.c:984:4: warning: logical ‘and’ of mutually exclusive tests is always false [-Wlogical-op] Source code is if (GET_CODE (XEXP (x, 0)) == SYMBOL_REF && GET_CODE (XEXP (x, 0)) == CONST_INT) Maybe better code if (GET_CODE (XEXP (x, 0)) == SYMBOL_REF || GET_CODE (XEXP (x, 0)) == CONST_INT)