[SFN] sync up debug-only stmt list's side effects with empty stmts too
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 22 Dec 2017 02:07:31 +0000 (02:07 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 22 Dec 2017 02:07:31 +0000 (02:07 +0000)
commit18408e962e5afb9cb3f45f897cc8dd1f9b91417f
tree0e7d1c33665858f6ba7e584ff9b9744de0b9c9c2
parentcacb2cce55df175925c16dd3c640e08c4c8a8374
[SFN] sync up debug-only stmt list's side effects with empty stmts too

for  gcc/c-family/ChangeLog

PR debug/83527
PR debug/83419
* c-semantics.c (only_debug_stmts_after_p): New.
(pop_stmt_list): Clear side effects in debug-only stmt list.
Check for single nondebug stmt followed by debug stmts only.

for  gcc/testsuite/ChangeLog

PR debug/83527
PR debug/83419
* gcc.dg/pr83527.c: New.

From-SVN: r255966
gcc/c-family/ChangeLog
gcc/c-family/c-semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83527.c [new file with mode: 0644]