This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: divmod-1.c patch (promoting problem)


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~


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