Fix allocation of struct in registers on ARM
commitb7d017dec89984b8536139ec6053fc0255413c27
authorThomas Preud'homme <robotux@celest.fr>
Tue, 5 Nov 2013 09:50:30 +0000 (5 17:50 +0800)
committerThomas Preud'homme <robotux@celest.fr>
Tue, 5 Nov 2013 09:50:30 +0000 (5 17:50 +0800)
tree0a85a56f7459ec7190cef82c0c47c91b884c00a7
parentcf02f920c148a77794b05ba09d73586e5f0b3601
Fix allocation of struct in registers on ARM

Allocation of struct in core and/or VFP registers on ARM is made by
manipulating the value stack to create 3 distinct zones: parameters
allocated on stack, parameters of type struct allocated in core
registers and parameters of type struct allocated in VFP registers.
Parameters of primitive type can be in any zone. This commit change the
order of the zones from stack, VFP, core to stack, core, VFP (from
highest addresses to lowest ones) in order to correctly deal the
situation when structures are allocated both in core and VFP registers.
arm-gen.c