This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 20040309-1.c vs overflow being undefined
- From: Richard Henderson <rth at redhat dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Falk Hueffner <falk at debian dot org>, gcc at gcc dot gnu dot org
- Date: Sun, 27 Nov 2005 10:50:30 -0800
- Subject: Re: 20040309-1.c vs overflow being undefined
- References: <878xvaovqt.fsf@debian.org> <200511271725.jARHPSJi017117@earth.phy.uc.edu>
On Sun, Nov 27, 2005 at 12:25:28PM -0500, Andrew Pinski wrote:
> Actually I am not seeing that but instead I am seeing the subtraction done in
> short and not in int (which is far as I can tell and remember reading the
> promotion rules in C doing).
You're wrong about the C promotion rules.
r~