https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85094
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Mar 29 10:37:58 2018 New Revision: 258950 URL: https://gcc.gnu.org/viewcvs?rev=258950&root=gcc&view=rev Log: PR c/85094 * fold-const.c (operand_equal_p): Handle DEBUG_BEGIN_STMT. For STATEMENT_LIST, pass down OEP_LEXICOGRAPHIC and maybe OEP_NO_HASH_CHECK for recursive call, to avoid exponential checking. * c-c++-common/Wduplicated-branches-14.c: New test. Added: trunk/gcc/testsuite/c-c++-common/Wduplicated-branches-14.c Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/testsuite/ChangeLog