Fix compilation for PowerPC - see #57

This commit is contained in:
Wolfgang Thaller 2018-05-14 00:01:59 +02:00
parent 982bd1ba67
commit 1ae9256e9c
1 changed files with 4 additions and 1 deletions

View File

@ -5513,6 +5513,7 @@ expand_function_end (void)
tree decl_result = DECL_RESULT (current_function_decl);
rtx decl_rtl = DECL_RTL (decl_result);
#ifdef IS_PASCAL_FUNC
if (IS_PASCAL_FUNC(TREE_TYPE(current_function_decl), current_function_decl))
{
enum machine_mode mode = GET_MODE(decl_rtl);;
@ -5524,7 +5525,9 @@ expand_function_end (void)
emit_move_insn (return_slot, decl_rtl);
crtl->return_rtx = return_slot;
}
else if (REG_P (decl_rtl)
else
#endif
if (REG_P (decl_rtl)
? REGNO (decl_rtl) >= FIRST_PSEUDO_REGISTER
: DECL_REGISTER (decl_result))
{