[Bug middle-end/29478] [4.2 Regression] optmization generates warning for casts

pinskia at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Oct 23 21:37:00 GMT 2006



------- Comment #8 from pinskia at gmail dot com  2006-10-23 21:37 -------
Subject: Re:  [4.2 Regression] optmization generates warning for casts

On 23 Oct 2006 17:30:22 -0000, amylaar at gcc dot gnu dot org
<gcc-bugzilla@gcc.gnu.org> wrote:
> I think it is wrong that we are optimizing the expression before converting
> it to the required type.
> Moreover, why is it right to drop NOP_EXPRESSIONS there?  If for some reason
> the compiler finds it needs to put the initializer in a temporary variable,
> and uses the type of the value for that variable, we'll get an alias set
> problem.

Hmm, This is one of the language hooks which really need to go away
for LTO as I understand it.  Also I the real problem comes from the
inliner or the gimplifier (I am betting the gimplifier) removing the
cast as it is useless in our type system.


-- 


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



More information about the Gcc-bugs mailing list