operands to min and max must have the same type...
Alexandre Oliva
aoliva@redhat.com
Fri Feb 28 22:38:00 GMT 2003
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lscxx-unpromote-size-type.patch
Type: text/x-patch
Size: 4195 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030228/864d02ee/attachment.bin>
-------------- next part --------------
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Gcc-patches
mailing list