This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Propagate CALL_EXPR_TAILCALL through expand_builtin_* (PR middle-end/21265)


Hi!

CALL_EXPR_TAILCALL bit is not propagated through various builtin
expanders, so some calls that were previously (e.g. in 3.4.x) tail call
optimized  are not optimized any more.

Fixed by the patch below.
Ok for HEAD?  Is this suitable for 4.0 branch as well (it is actually
a regression)?

The second patch is on top of the object size checking patch I posted
yesterday, so that CALL_EXPR_TAILCALL is propagated even there.

	Jakub

Attachment: T9
Description: Text document

Attachment: T9a
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]