This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Promotion of integer return types to int
- From: Jim Wilson <wilson at specifixinc dot com>
- To: Alexandre Courbot <Alexandre dot Courbot at lifl dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 22 Sep 2003 22:59:41 -0700
- Subject: Re: Promotion of integer return types to int
- References: <200309191621.19571.Alexandre.Courbot@lifl.fr>
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