------- Comment #5 from krebbel at gcc dot gnu dot org 2010-04-08 09:23 ------- (In reply to comment #4) > The extra cast happens if the function signatures are not compatible > (by means of useless_type_conversion_p).
Ok. Do you know why that behavior changed between gcc 4.4 and 4.5? Is there a way to obtain the function decl from D.1966_3 in the 4.5 example or do we really need to reject sibcall optimizations in that case? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43635