Re: cc to gcc problems

Arnt Gulbrandsen (agulbra@troll.no)
22 Mar 1997 18:13:31 +0100

To subscribers of the xforms list from Arnt Gulbrandsen <agulbra@troll.no> :

spl@szechuan.ucsd.edu (Steve Lamont)
> To subscribers of the xforms list from spl@szechuan.ucsd.edu (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 :)

--Arnt
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/