[LLVMdev] disable insertion of unreachables

Max Stonebraker max.stonebraker at gmail.com
Sun Sep 20 20:56:48 PDT 2009


> If there's sensible control flow after a function returns, don't mark
> it or calls to it noreturn.

How do I prevent llvm-gcc from labelling a particular function with the
noreturn attribute so an unreachable is not inserted after a call to it?
Does llvm-gcc keep a list of functions somewhere that it thinks do not
return?

Max

On Tue, Sep 8, 2009 at 10:30 PM, Eli Friedman <eli.friedman at gmail.com>wrote:

> On Tue, Sep 8, 2009 at 10:16 PM, Max
> Stonebraker<max.stonebraker at gmail.com> wrote:
> > Is there any way to avoid having the unreachables inserted in the first
> > place?
>
> If there's sensible control flow after a function returns, don't mark
> it or calls to it noreturn.  If in fact cannot return, the concept of
> control flow after the function returns fundamentally makes no sense.
>
> -Eli
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090920/27d91b74/attachment.html>


More information about the llvm-dev mailing list