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

            Bug ID: 45588
           Summary: calling noreturn functions generates definitions of
                    functions with static linkage
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedb...@nondot.org
          Reporter: ndesaulni...@google.com
                CC: llvm-bugs@lists.llvm.org, srhi...@google.com

__attribute__((noreturn))
void foo (void);

static
void bar (void) {
    return foo();
}
void baz (void) {
    return bar();
}

clang -O2 will emit a definition for bar, gcc will not.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to