[gnu.gcc] crt0... should it be part of GCC?

rfg@MCC.COM (Ron Guilmette) (03/29/89)

Should crt0 be included as a standard part of GCC distributions?

Is this necessary to insure that GCC conforms to the Dec. 1988
draft ANSI C standard for a "hosted" implementation?

I believe that the answer to both questions is yes.  The Dec. '88
draft (pg. 8) says:

	"A return from the initial call to the main function is
	equivalent to calling the exit function with the value
	returned by the main function as its argument."

Without a "standard conforming" crt0 file, this cannot be insured
on various GCC targets.  In particular it seems that this rule of
the draft standard is *not* satisfied by the default crt0 on a
Sun 3 (using SunOS 3.5).

// Ron Guilmette  -  MCC  -  Experimental (parallel) Systems Kit Project
// 3500 West Balcones Center Drive,  Austin, TX  78759  -  (512)338-3740
// ARPA: rfg@mcc.com
// UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg