[patch] Do not generate useless integral conversions
Eric Botcazou
ebotcazou@adacore.com
Tue Jun 24 21:18:00 GMT 2014
> I think that was on purpose to avoid arithmetics in enum types. As those
> conversions are useless and thus stripped later is it really important
> to retain enum and boolean kind here?
The problem is that convert.c is called by front-ends and the patch also
removed the callback into them that made it possible to have some control.
So, yes, it's pretty annoying to see totally bogus conversion nodes being
introduced into your ASTs behind your back...
--
Eric Botcazou
More information about the Gcc-patches
mailing list