divmod-1.c patch (promoting problem)

Richard Henderson rth@redhat.com
Tue Aug 21 16:14:00 GMT 2001


On Tue, Aug 21, 2001 at 04:58:43PM +0300, Aldy Hernandez wrote:
> here's a patch to fix the testcase and add the prototypes.

Go ahead and convert the entire test case to proper ISO C
prototyped declarations.  I.e.


int
div1(signed char x)
{
  return x / -1;
}
...
unsigned long
mod6(unsigned long x, unsigned long y)
{
  return x % y;
}



r~



More information about the Gcc-patches mailing list