PATCH: fix argument promotion
John David Anglin
dave@hiauly1.hia.nrc.ca
Mon Jun 4 09:42:00 GMT 2001
> The C changes are OK, but can you please add a testcase for this to the C
> testsuite if one isn't there already, rather than relying on Fortran to
> show the problem up? Someone else will need to review the C++ changes.
The testcase that I have is below. Not sure where or how is should be
hooked into the testsuite.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
#include <stdbool.h>
int f (int a, int b, int c, _Bool d, _Bool e, _Bool f, char g)
{
if (g != 1 || d != true || e != true || f != true) abort ();
return a + b + c;
}
main ()
{
exit (f (1, 2, -3, true, true, true, '\001'));
}
More information about the Gcc-patches
mailing list