c/100625 - avoid building invalid labels in the GIMPLE FE
authorRichard Biener <rguenther@suse.de>
Mon, 17 May 2021 12:47:08 +0000 (14:47 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 17 May 2021 14:18:31 +0000 (16:18 +0200)
commit086882b1c8faa8f99f98a9219ccec42d89db50c2
treebe060598560d2eb026f155451bd85c13bf6b424d
parent47abe2abf1210847629ebc271b1fc8c6d53f0d47
c/100625 - avoid building invalid labels in the GIMPLE FE

When duplicate labes are diagnosed, avoid building a GIMPLE_LABEL.

2021-05-17  Richard Biener  <rguenther@suse.de>

PR c/100625
gcc/c/
* gimple-parser.c (c_parser_gimple_label): Avoid building
a GIMPLE label with NULL label decl.

gcc/testsuite/
* gcc.dg/gimplefe-error-9.c: New testcase.
gcc/c/gimple-parser.c
gcc/testsuite/gcc.dg/gimplefe-error-9.c [new file with mode: 0644]