[M3commit] CVS Update: cm3

Jay Krell jkrell at elego.de
Mon Jan 21 14:45:26 CET 2008


CVSROOT:	/usr/cvs
Changes by:	jkrell at birch.	08/01/21 14:45:26

Modified files:
	cm3/m3-sys/m3middle/src/: Target.m3 

Log message:
	munge calling conventions like PM3
	
	This is enough to convince gcc not to throw out calls to
	functions that return structs.
	
	It is not enough to convince gcc not to warn about the
	calls being dead -- well, nothing related to struct return
	really, more like code following a return within a TRY.
	TRY
	RETURN Foo();
	ELSE
	RETURN 1; (* gcc says not reachable *)
	END
	
	This is likely a "problem" on all platforms, except NT386.
	(confirmed only on PPC_DARWIN)
	
	Still need to check that this is *correct* (interoperates
	with Visual C++), but struct return is relatively rare
	due to its unclear efficiency.




More information about the M3commit mailing list