This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19831] Missing DSE/malloc/free optimization
- From: "dberlin at dberlin dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Feb 2005 03:42:12 -0000
- Subject: [Bug tree-optimization/19831] Missing DSE/malloc/free optimization
- References: <20050208213513.19831.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dberlin at gcc dot gnu dot org 2005-02-09 03:42 -------
Subject: Re: New: Missing DSE/malloc/free
optimization
> void *malloc(__SIZE_TYPE__);
> void free(void*);
> int f(void)
> {
> char *i = malloc(1);
> *i = 1;
> free (i);
> }
>
> This is something which is useful when we want to much higer level optimizations.
This would require an attribute free, which is on the tree-profiling
branch
Otherwise, you wouldn't know that free is really "free"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19831