[PATCH] Add warn_unused_result for malloc-like functions (PR tree-optimization/78902).

Martin Liška mliska@suse.cz
Fri Jun 7 06:27:00 GMT 2019


On 6/7/19 2:02 AM, Jeff Law wrote:
> Any thoughts on whether or not we'd want to IPA propagate this attribute
> like we do for the malloc attribute?

If I see correctly, the pass_warn_unused_result is run very early in the early
tree optimizations. Thus we can't propagate that right now.

Martin



More information about the Gcc-patches mailing list