public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/96493] New: powerpc local call linkage failure
@ 2020-08-06  3:37 amodra at gmail dot com
  2020-08-06  7:55 ` [Bug target/96493] " amodra at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: amodra at gmail dot com @ 2020-08-06  3:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96493
           Summary: powerpc local call linkage failure
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amodra at gmail dot com
  Target Milestone: ---

/* -O2 -mcpu=power8 */
static int __attribute__ ((target("cpu=power10"),noclone,noinline))
local_func (int x)
{
  return x;
}

int main()
{
  return local_func (0);
}

results in a linker complaint "call to `local_func' lacks nop, can't restore
toc; (toc save/adjust stub)".

rs6000.md call_local et al patterns can't be allowed to match when
caller/callee disagree about r2 usage.

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

end of thread, other threads:[~2020-08-12 22:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06  3:37 [Bug target/96493] New: powerpc local call linkage failure amodra at gmail dot com
2020-08-06  7:55 ` [Bug target/96493] " amodra at gmail dot com
2020-08-06 15:46 ` bergner at gcc dot gnu.org
2020-08-07  0:35 ` amodra at gmail dot com
2020-08-07  3:03 ` cvs-commit at gcc dot gnu.org
2020-08-07 13:39 ` bergner at gcc dot gnu.org
2020-08-12 16:26 ` bergner at gcc dot gnu.org
2020-08-12 22:47 ` cvs-commit at gcc dot gnu.org
2020-08-12 22:56 ` amodra 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).