------- Additional Comments From jsm at polyomino dot org dot uk  2004-10-20 21:31 
-------
Subject: Re:  usual arithmetic conversion not applying correctly

On Wed, 20 Oct 2004, pinskia at gcc dot gnu dot org wrote:

> Otherwise, the integer promotions are performed on both operands. Then 
> the following rules are applied to the promoted operands: If both 
> operands have the same type, then no further conversion is needed. 

The integer promotions are where signed char is promoted to int.  Only 
after then are types compared.

It is not the job of the front end to optimise code.  The front end should 
generate datastructures corresponding exactly to the specified semantics 
of the language, including the promotions in this case.  Subsequent 
passes, preferably on GIMPLE but maybe including fold at present, can deal 
with eliminating conversions not needed for code generation.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18065

Reply via email to