This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: malloc attributes and realloc
- From: Olivier Galibert <galibert at pobox dot com>
- To: Robert Dewar <dewar at gnat dot com>
- Cc: Bruce Korb <bkorb at veritas dot com>, gcc at gcc dot gnu dot org
- Date: Fri, 2 Jan 2004 11:51:37 +0100
- Subject: Re: malloc attributes and realloc
- References: <3FF4EB4F.E8115D24@veritas.com> <3FF4540E.1040009@gnat.com>
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.