public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/94417] New: -fcf-protection -mcmodel=large is broken
@ 2020-03-30 23:37 hjl.tools at gmail dot com
  2020-03-31  5:30 ` [Bug target/94417] -fcf-protection -mcmodel=large/-mforce-indirect-call " hjl.tools at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2020-03-30 23:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94417

            Bug ID: 94417
           Summary: -fcf-protection -mcmodel=large is broken
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86-64

From:

https://bugs.llvm.org/show_bug.cgi?id=45364

Testcase:

void ext();
__attribute((noinline)) static void a() { ext(); }
void b() { a(); }

Compile with "gcc -O2 -mcmodel=large -fcf-protection".  Note the indirect
call to "a", which does not have an endbr64.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-04-17 22:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30 23:37 [Bug target/94417] New: -fcf-protection -mcmodel=large is broken hjl.tools at gmail dot com
2020-03-31  5:30 ` [Bug target/94417] -fcf-protection -mcmodel=large/-mforce-indirect-call " hjl.tools at gmail dot com
2020-03-31  5:36 ` hjl.tools at gmail dot com
2020-03-31 15:12 ` hjl.tools at gmail dot com
2020-04-08 16:48 ` cvs-commit at gcc dot gnu.org
2020-04-08 16:52 ` hjl.tools at gmail dot com
2020-04-17 22:24 ` cvs-commit at gcc dot gnu.org
2020-04-17 22:33 ` cvs-commit at gcc dot gnu.org
2020-04-17 22:34 ` hjl.tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).