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


Jason Merrill <jason@redhat.com> writes:

| On 10 Nov 2003 05:02:49 +0100, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
| 
| > If you look at the way the C++ standard library works, you'll notice
| > that it handles storage allocation differently from other standard
| > algorithms like count_if or find.  I suppose that is no enough
| > evidence for you to acknowledge the difference.
| 
| C++ specifically allows op new and delete to be overridden.  C makes no
| such allowance for malloc/free.

That is true.  However that comment on memory management was to respond
to this specific statement

   > memory allocation is fundamentally different from counting the number
   > of characters in a string.

   This is an interesting statement from a language lawyer.

-- Gaby


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