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

--- Comment #8 from Jan Hubicka <hubicka at ucw dot cz> 2010-10-19 05:47:31 UTC 
---
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46076
> 
> --- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-10-19 
> 04:42:40 UTC ---
> (In reply to comment #6)
> > I think both indirect inlining and constant propagation should be able to 
> > get
> > past the cast especially when there is no type mismatch in the testcase.
> 
> Either try with (void) in the function declaration or try using the C++
> front-end.  () and (void) are different in C :).

Well, still we have no real reason to not optimize this.  C programs does this.
Honza

Reply via email to