------- Comment #32 from pcarlini at suse dot de 2007-04-06 16:46 ------- (In reply to comment #31) > For generic targets, can't you just > > -errno = 0; > +static __thread int errno = 0; > > on releases of gcc (4.3+) that have the wherewithal to fudge the issue for all > systems, even the ones without builtin-TLS?
Nice idea, but I'm not sure it would work (i'm not very familiar with __thread, etc.): are we sure that with that kind of declaration the strtof & co functions themselves automatically use that new "improved" errno instead of the global one? Besides that, from a correctness point of view, I don't think we want to fail in case of underflow, other implementations behave differently from v3... -- pcarlini at suse dot de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bkoz at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31117