operands to min and max must have the same type...

Phil Edwards phil@jaj.com
Tue Mar 4 20:38:00 GMT 2003


On Fri, Feb 28, 2003 at 07:37:04PM -0300, Alexandre Oliva wrote:
> If we do arithmetic operations with size or ptrdiff types and they
> happen to be built-in types narrower than int, they get promoted to
> int, and then we can't find a match for min and max unless we do it on
> both operands, which we don't.  Here's a patch that cures this.  Ok to
> install if it completes a cross build to a target that has 16-bit
> pointers and 32-bit integers?


\begin{rth}
Ok.
\end{rth}

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the Gcc-patches mailing list