GIMPLEFE: Handle missing labels in goto statements
authorMikhail Maltsev <maltsevm@gmail.com>
Wed, 31 May 2017 13:47:51 +0000 (13:47 +0000)
committerMikhail Maltsev <miyuki@gcc.gnu.org>
Wed, 31 May 2017 13:47:51 +0000 (13:47 +0000)
commit9fc5e7a4430d16742e4cb910f0dbb26460cee50e
tree009737cd39726f8f5c9f92652993449744dfcd13
parentafd88efc0530ec39d926c9932e4302cff9a2e526
GIMPLEFE: Handle missing labels in goto statements

gcc/c/

PR testsuite/80580
* gimple-parser.c (c_parser_gimple_if_stmt): Check for empty labels.

gcc/testsuite/

PR testsuite/80580
* gcc.dg/gimplefe-error-7.c: New test.

From-SVN: r248738
gcc/c/ChangeLog
gcc/c/gimple-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gimplefe-error-7.c [new file with mode: 0644]