This is the mail archive of the gcc-patches@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]

Re: [tree-ssa] dead const/pure/alloca call removal


Gabriel Dos Reis <gdr@integrable-solutions.net> writes:

> Since very few (if any) useful programs are strictly conforming, I
> believe this is an area of we should value usability and praticality
> over abstract strict conformance.

I completely agree with this sentiment in general, but I'm not sure I
buy it in the particular case of malloc()/free().  I think most
programmers would be happy to have the compiler eliminate
malloc()/free() if possible.  Certainly it should only be done when
optimizing, and certainly there should be an option to disable it.
But I think the majority would be happy to have it happen by default.

Ian


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