[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-05-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-04-29 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 --- Comment #8 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Sat Apr 29 10:05:13 2017 New Revision: 247407 URL: https://gcc.gnu.org/viewcvs?rev=247407&root=gcc&view=rev Log: 2017-04-29 Prathamesh Kulkarni PR

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-02-28 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 --- Comment #7 from Peter Bergner --- (In reply to Marc Glisse from comment #6) > * malloc, strdup, etc are not pure! Ahh, of course not. Nevermind. :-)

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-02-28 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 --- Comment #6 from Marc Glisse --- (In reply to Peter Bergner from comment #5) > Why do we have to special case these functions? Why can't we do this for > all functions that are marked as const/pure, since we know they have no side > effects o

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-02-28 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 Peter Bergner changed: What|Removed |Added CC||bergner at gcc dot gnu.org --- Comment #

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-02-23 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-02-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 --- Comment #3 from Andrew Pinski --- It makes sense to convert realloc(0, n) to just malloc and the rest just works.

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 --- Comment #1 from Martin Sebor --- Ditto for __builtin_strdup and __builtin_strndup. Both of those calls can (and arguably should) be eliminated. If they're not eliminated (but even if they are) a warning on them can and arguably should be is