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: [RFC] Fixes to bootstrap from a C++ compiler (part 1)


    I suppose we could introduce a macro along the lines of:
    
    #define ALLOC(bytes, type) \
       ((type *) xmalloc (bytes))

    The cast would then be in this one place, making it rather 
    non-controversial to include it, I would think.

I agree.  This makes the code at the call site much cleaner and also
allows for changing strategies for casting without making huge changes
to the sources each time.


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