Promotion of integer return types to int

Jim Wilson wilson@specifixinc.com
Tue Sep 23 06:40:00 GMT 2003


Alexandre Courbot wrote:
> I couldn't help but notice that the C parser automatically promotes any type 
> that can be promoted to int when used to return values. This happens in 
> c-decl.c, line 5650:

This does appear to be unnecessary, and potentially harmful.  However, 
it isn't clear what effect this will have on all targets.  This change 
would have to be done carefully with a lot of testing.

> I've noticed that someone already submitted a patch for this 
> (http://gcc.gnu.org/ml/gcc-patches/2003-05/msg01630.html) but it hasn't been 
> included.

It appears to have been dropped.  This is a common problem, as we don't 
always have time to respond to every submitted patch.  You can resubmit 
the patch as per the documentation
	http://gcc.gnu.org/contribute.html#patches

You may also want to submit a bug report into bugzilla.  This can be 
useful to make sure problems aren't completely forgotten about, as we 
don't track patches sent to gcc-patches.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list