This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] dead const/pure/alloca call removal
Gabriel Dos Reis <firstname.lastname@example.org> 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.