This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/19831] Missing DSE/malloc/free optimization


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]