This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: expected_retval attribute proposal
- To: Jeffrey A Law <law at cygnus dot com>
- Subject: Re: expected_retval attribute proposal
- From: Jamie Lokier <egcs at tantalophile dot demon dot co dot uk>
- Date: Thu, 11 May 2000 17:51:35 +0200
- Cc: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>, jh at suse dot cz, egcs at egcs dot cygnus dot com, libc-hacker at sourceware dot cygnus dot com
- References: <200005101715.TAA01106@loewis.home.cs.tu-berlin.de> <3235.957979123@upchuck>
Jeffrey A Law wrote:
> Most return values are non-negative
True, but a lot of code says "if (call() == 0)" or "if (call() == -1)"
which that assumption doesn't help with. Those two could be treated as
special cases though.
-- Jamie