This is the mail archive of the gcc-patches@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: [3.3] [PATCH] Do not promote integer return value...


"Alexander Aganichev" <aaganichev@yandex.ru> writes:

> The problem: Z80 port I'm working on require "char" and "int" passed
> in the different registers (at least SDSI compiler do that). GCC
> promotes integer types smaller than "int" to "int" without checking
> for PROMOTE_FUNCTION_RETURN macros.
>
> I'm not sure which of two patches I've made should be applied to the
> tree and if it should be rewritten in the different way (f.e., by
> using PROMOTE_MODE or if this code need to be removed at all). Here
> are possible patches:
>
> First version (removes promotion on all platforms):

Do you have a test case for this?  Please supply one and tell us on
which platforms you have tested this,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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