https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85404
Bug ID: 85404 Summary: -fcf-protection -mcet doesn't work with -fleading-underscore Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: igor.v.tsimbalist at intel dot com Blocks: 81652 Target Milestone: --- [hjl@gnu-cfl-1 gcc]$ cat x.c void func(void) __asm("_func"); void _func(int x) {} void func(void) {} [hjl@gnu-cfl-1 gcc]$ ./xgcc -B./ -c -fcf-protection -mcet -fleading-underscore x.c /tmp/ccPfHME2.s: Assembler messages: /tmp/ccPfHME2.s:37: Error: can't resolve `.L11' {*UND* section} - `.L1' {*UND* section} /tmp/ccPfHME2.s:38: Error: can't resolve `.L41' {*UND* section} - `.L11' {*UND* section} /tmp/ccPfHME2.s:45: Error: can't resolve `.L31' {*UND* section} - `.L21' {*UND* section} /tmp/ccPfHME2.s: Error: local label `"1" (instance number 1 of a fb label)' is not defined /tmp/ccPfHME2.s: Error: local label `"0" (instance number 1 of a fb label)' is not defined /tmp/ccPfHME2.s: Error: local label `"4" (instance number 1 of a fb label)' is not defined /tmp/ccPfHME2.s: Error: local label `"3" (instance number 1 of a fb label)' is not defined /tmp/ccPfHME2.s: Error: local label `"2" (instance number 1 of a fb label)' is not defined [hjl@gnu-cfl-1 gcc]$ Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81652 [Bug 81652] [meta-bug] -fcf-protection=full -mcet bugs