aboutsummaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2013-03-23 11:13:39 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2013-03-23 11:13:39 +0000
commit66de4d7c91fca7d178f619761565fed9826cd05c (patch)
tree531e09418de1364c9e9e88b283de5f7dd9b75cbd /gcc/calls.c
parent4f25c8fbfd7c6909cb107c2634a92fb0187966fc (diff)
downloadgcc-66de4d7c91fca7d178f619761565fed9826cd05c.zip
gcc-66de4d7c91fca7d178f619761565fed9826cd05c.tar.gz
gcc-66de4d7c91fca7d178f619761565fed9826cd05c.tar.bz2
calls.c (expand_call): Add missing guard to code handling return of non-BLKmode structures in MSB.
* calls.c (expand_call): Add missing guard to code handling return of non-BLKmode structures in MSB. * function.c (expand_function_end): Likewise. From-SVN: r197003
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index dd034b4..a585390 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -3171,7 +3171,9 @@ expand_call (tree exp, rtx target, int ignore)
group load/store machinery below. */
if (!structure_value_addr
&& !pcc_struct_value
+ && TYPE_MODE (rettype) != VOIDmode
&& TYPE_MODE (rettype) != BLKmode
+ && REG_P (valreg)
&& targetm.calls.return_in_msb (rettype))
{
if (shift_return_value (TYPE_MODE (rettype), false, valreg))