This is the mail archive of the gcc@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] Marking C++ new operator as malloc?


>>>>> "Mark" == Mark Mitchell <mark@codesourcery.com> writes:

Mark> If the compiler treats:
Mark>   int *p = new int;
Mark> any differently from:
Mark>   int &r = *new int;
Mark> then we're missing an optimization opportunity.

AFAIK we don't have a way to mark a function as "cannot return NULL".
This is PR 20318.

Tom


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