[11372] in Athena Bugs

home help back first fref pref prev next nref lref last post

decmips 7.6G: cc dumps core with __builtin_alloca()

daemon@ATHENA.MIT.EDU (Calvin Clark)
Mon Nov 15 02:14:31 1993

Date: Mon, 15 Nov 93 02:14:21 -0500
From: Calvin Clark <ckclark@MIT.EDU>
To: bugs@MIT.EDU

-------
System name:		hodge
Type and version:	KN01 7.6G (1 update(s) to same version)
Display type:		PMAX-MFB

What were you trying to do?

	Run codecenter on a program which includes <alloca.h>.
	But that's not important.

	What is important is that <alloca.h> under ULTRIX defines
	alloca to be __builtin_alloca.  It does nothing else.

What's wrong:

	; cat foo.c
	main () { __builtin_alloca (0); }
	; cc foo.c
	Fatal error in: /usr/lib/cmplrs/cc/ugen Trace/BPT trap - core dumped
	;

	This happens with arguments other than 0 as well.
	I just like typing the character `0'.

What should have happened:

	There should be no core dumping or toad sexing.

Please describe any relevant documentation references:
	alloca(3)

home help back first fref pref prev next nref lref last post