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


 > I don't understand your reasoning here. C does not permit general
 > pointer comparisons, or rather does not provide defined semantics
 > for all such comparisons, for example, you cannot use > on pointers
 > and expect it to create a well-ordering of pointers.

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.

		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


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