Re: cc to gcc problems

Arnt Gulbrandsen (
22 Mar 1997 18:13:31 +0100

To subscribers of the xforms list from Arnt Gulbrandsen <> : (Steve Lamont)
> To subscribers of the xforms list from (Steve Lamont) :
> > The first thing I've noticed is the difference between the cc and
> > gcc versions of realloc().

Well. Since this is about red hat linux, Mr. Primos might care do
this this command:

$ ls -l /usr/bin/cc
lrwxrwxrwx 1 root root 3 Dec 30 09:53 /usr/bin/cc -> gcc

> I'm not sure what difference you've observed but I suspect that this
> isn't gcc related but library related.

Or a misinstalled auxilliary gcc, just as likely.

FWIW, POSIX specifies that realloc(0,s) be equivalent with
malloc(newsize) and realloc(p,0) be equivalent with free(p). Linux
libc has complied with both these requirements since... well, since
the dawn of time :)

To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: