PR c/85094
commit436900af364e4cf0e8830670508613f383a4c070
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Mar 2018 10:37:58 +0000 (29 10:37 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Mar 2018 10:37:58 +0000 (29 10:37 +0000)
treec59d98270fe371507005e2bd264ca89f620eb47a
parent8310b1525f0adcc9b3570adb182f83b8e3c4efbc
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258950 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wduplicated-branches-14.c [new file with mode: 0644]