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

            Bug ID: 113981
           Summary: risc-v: non-void C++ function with no return statement
                    has no ret
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Simon.Richter at hogyros dot de
  Target Milestone: ---

On RISC-V with -O3, the C++ program

int f() {}

emits a completely empty function.

It correctly warns about the missing return statement, but also does not emit a
"ret" instruction.

Reply via email to