This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/80519] if(p)free(p) with -Os
- From: "egall at gwmail dot gwu.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Apr 2017 12:19:37 +0000
- Subject: [Bug tree-optimization/80519] if(p)free(p) with -Os
- Auto-submitted: auto-generated
- References: <bug-80519-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80519
Eric Gallager <egall at gwmail dot gwu.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egall at gwmail dot gwu.edu
--- Comment #2 from Eric Gallager <egall at gwmail dot gwu.edu> ---
It'd be nice if the compiler could emit a warning when removing such a check,
that way gnulib wouldn't need to keep around the "useless-if-before-free"
script any more if the compiler could just do it instead