[csl-arm] Backport function arg promotion changes.

Paul Brook paul@codesourcery.com
Tue May 18 12:58:00 GMT 2004


The attached patch backports the function arg promotion changes from mainline 
to csl-arm-branch.

It includes
http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00470.html
plus subsequent fixes.

Tested with cross to arm-none-elf.
Ok?

Paul

2004-05-12  Paul Brook  <paul@codesourcery.com>

	* calls.c (precompute_arguments): Use PROMOTE_FUNCTION_MODE instead
	of PROMOTE_FOR_CALL_ONLY.
	* explow.c (promote_mode): Ditto.
	* function.c (assign_temp): Ditto.
	* system.h: Poison PROMOTE_FOR_CALL_ONLY.
	* config/arm/arm-protos.h (arm_function_value): Add prototype.
	* config/arm/arm.c (arm_promote_prototypes): New function.
	(TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
	TARGET_PROMOTE_PROTOTYPES): Define.
	(arm_function_value): New function.
	* config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
	(FUNCTION_VALUE): Use arm_function_value.
	(PROMOTE_PROTOTYPES): Define.
	* config/cris/cris.h: Use PROMOTE_FUNCTION_MODE instead
	of PROMOTE_FOR_CALL_ONLY/PROMOTE_MODE.
	* config/mmix/mmix.h: Ditto.
	* config/s390/s390.h: Ditto.
	* config/sparc/sparc.h: Ditto.
	* doc/tm.texi: Document PROMOTE_FUNCTION_MODE.
	Remove PROMOTE_FOR_CALL_ONLY.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.csl_promote
Type: text/x-diff
Size: 16584 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040518/c34f86a1/attachment.bin>


More information about the Gcc-patches mailing list