[LLVMdev] [RFC] New function attributes for errno-setting functions

Dan Gohman dan433584 at gmail.com
Fri Sep 13 14:46:53 PDT 2013


On Fri, Sep 13, 2013 at 2:07 PM, Hal Finkel <hfinkel at anl.gov> wrote:

> ----- Original Message -----
> >
> > Food for thought: If you have a codebase which can't use
> > -fno-math-errno, because it relies on errno values from math
> > functions, it may be a more effective long-term strategy to work on
> > modernizing your codebase, eliminating the dependencies on errno,
> > rather than going through the trouble of adding even more complexity
> > to compilers to keep errno support limping along.
> >
>
> Wouldn't that require 'modernizing' POSIX? ;) How else can you get the
> error code from open() or any number of other functions


open is not a math function.

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130913/67f88e9b/attachment.html>


More information about the llvm-dev mailing list