This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Change INTERNAL_SYSCALL* so that it supports both archeswhich have error embedded in retval and arches which signal error otherwise


Roland McGrath wrote:

> I guess this is ok, but a little bulky.  If it's always `int err' and
> nonzero to indicate, on x86 that's something like "err = retval < 0 ?
> -retval : 0;".  Does the compiler really fail to eliminate all that work if
> `err' is dead?

I don't think it's "bulky" and I definitely don't want to take the
chance that gcc misses to optimize some variable out.

-- 
--------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]