[Bug tree-optimization/88372] alloc_size attribute is ignored on function pointers

2018-12-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88372 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/88372] alloc_size attribute is ignored on function pointers

2018-12-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88372 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/88372] alloc_size attribute is ignored on function pointers

2018-12-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88372 --- Comment #5 from Martin Sebor --- Author: msebor Date: Fri Dec 14 22:45:55 2018 New Revision: 267158 URL: https://gcc.gnu.org/viewcvs?rev=267158&root=gcc&view=rev Log: PR tree-optimization/88372 - alloc_size attribute is ignored on function p

[Bug tree-optimization/88372] alloc_size attribute is ignored on function pointers

2018-12-06 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88372 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #4 from Martin Sebor -

[Bug tree-optimization/88372] alloc_size attribute is ignored on function pointers

2018-12-06 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88372 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug tree-optimization/88372] alloc_size attribute is ignored on function pointers

2018-12-06 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88372 --- Comment #2 from Richard Biener --- + /* If there is no function, look at the type of the called +expression in case it's been declared attribute alloc_size. */ + callee = gimple_call_fn (call); + if (callee && TREE_COD

[Bug tree-optimization/88372] alloc_size attribute is ignored on function pointers

2018-12-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88372 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|