This is the mail archive of the gcc@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: Promotion of integer return types to int


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



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