This patch prepares for the patch which disables mode
promotion of pseudos on rs6000.
gcc/ChangeLog:
* config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
Replace PROMOTE_MODE marco with its content.
(cherry picked from commit
a3f6bd7891495a0ed65f7da7a55d36c730328692)
int *punsignedp ATTRIBUTE_UNUSED,
const_tree, int for_return ATTRIBUTE_UNUSED)
{
- PROMOTE_MODE (mode, *punsignedp, type);
+ if (GET_MODE_CLASS (mode) == MODE_INT
+ && GET_MODE_SIZE (mode) < (TARGET_32BIT ? 4 : 8))
+ mode = TARGET_32BIT ? SImode : DImode;
return mode;
}