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]
Other format: [Raw text]

Re: [patch] Fix 20020307-1.c.


> Hi,
> 
> Attached is a patch to fix the failure of 20020307-1.c on h8300 port.
> On h8300, int can be 16 bit.  Thus we don't get an expected result
> from (int)((1U << 16) - 1).  The patch makes it use long.
> 
> Tested on h8300 port.
> 
> OK to commit to both mainline and branch?

It would be better to make the function take a long as well.  Other than 
that, OK.

>  #define FUNC(N) void f##N(int j) { if ((j & MASK(N)) >= BITS(N)) abort();}
here:                        ^^^

R.


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