Fix register corruption at function call on ARM
commit41ce391c86df135609af33658414d4d452c5beb3
authorThomas Preud'homme <robotux@celest.fr>
Thu, 21 Nov 2013 13:09:44 +0000 (21 21:09 +0800)
committerThomas Preud'homme <robotux@celest.fr>
Thu, 21 Nov 2013 13:09:44 +0000 (21 21:09 +0800)
tree7378ca24ab7471f3be133104a931e222a4c66340
parent1b606d18840f8d0abe43ea80c0675c0639f84c51
Fix register corruption at function call on ARM

Prior to this commit, params could use some registers that do not appear
in the value stack. Therefore when generating function call, one of such
register could be reused, leading to wrong parameter content. This
happens when a structure is passed via core register, as only the first
register would appear in the value stack.
arm-gen.c