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


On Fri, Jan 02, 2004 at 12:08:30AM +0700, Robert Dewar wrote:
> 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.

But any C compiler on a decently modern architecture that does not
have such an ordering would be considered broken, language lawyering
or not.  The era of near pointers is gone, and it's for the best.

  OG.


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