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: malloc attributes and realloc


Ian Lance Taylor <ian@wasabisystems.com> writes:

| "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
| 
| > Hum, that is surprising.  If we can't rely on pointer ordering, then
| > libiberty/alloca.c wouldn't work since it uses exactly this ordering
| > to detect the stack growth direction and also to detect when storage
| > can be freed.
| 
| libiberty/alloca.c was never fully portable.  It even says so on the
| second line of the file.  It is merely a good enough implementation
| which happens to work where it is needed--namely to bootstrap gcc on
| systems on which the native compiler doesn't support alloca.

OK, but what about std::less<T*>?

-- Gaby


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