PR ada/80146
* calls.c (prepare_call_address): Convert funexp to Pmode before
copying to temp reg.
From-SVN: r246570
+2017-03-29 Andreas Schwab <schwab@suse.de>
+
+ PR ada/80146
+ * calls.c (prepare_call_address): Convert funexp to Pmode before
+ copying to temp reg.
+
2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/80158
DECL_STATIC_CHAIN (fndecl_or_type) = 1;
rtx chain = targetm.calls.static_chain (fndecl_or_type, false);
+ if (GET_MODE (funexp) != Pmode)
+ funexp = convert_memory_address (Pmode, funexp);
+
/* Avoid long live ranges around function calls. */
funexp = copy_to_mode_reg (Pmode, funexp);