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

            Bug ID: 114963
           Summary: RISCV -msave-restore -fno-omit-frame-pointer does not
                    emit save/restore library calls
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: craig.topper at gmail dot com
  Target Milestone: ---

It appears that combining -msave-restore and -fno-omit-frame-pointer results in
no save/restore library calls being emitted.

I also found this blog post that seems to imply it worked at some point, but
broke unwinding.
https://www.codethink.co.uk/articles/2023/riscv-stack-unwinding-bug/ I checked
a few previous versions on compiler explorer and was not able to get the
library calls.

Reply via email to