aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@nextmovesoftware.com>2020-07-17 14:06:45 +0100
committerRoger Sayle <roger@nextmovesoftware.com>2020-07-17 14:06:45 +0100
commitc08ff9f81914c6028c586e5ecdec3736cd9a4fec (patch)
tree7439965d2f93867bf16c33bed122a492d5d3670d /gcc/function.c
parent737355072af4cd0c24a4a8967e1485c1f3a80bfe (diff)
downloadgcc-c08ff9f81914c6028c586e5ecdec3736cd9a4fec.zip
gcc-c08ff9f81914c6028c586e5ecdec3736cd9a4fec.tar.gz
gcc-c08ff9f81914c6028c586e5ecdec3736cd9a4fec.tar.bz2
middle-end: Prefer TRULY_NOOP_TRUNCATION_MODES_P over raw target hook.
2020-07-16 Roger Sayle <roger@nextmovesoftware.com> gcc/ChangeLog * function.c (assign_parm_setup_block): Use the macro TRULY_NOOP_TRUNCATION_MODES_P instead of calling targetm.truly_noop_truncation directly.
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 9eee9b5..cdfcc4b 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3013,8 +3013,8 @@ assign_parm_setup_block (struct assign_parm_data_all *all,
to the value directly in mode MODE, otherwise we must
start with the register in word_mode and explicitly
convert it. */
- if (targetm.truly_noop_truncation (size * BITS_PER_UNIT,
- BITS_PER_WORD))
+ if (mode == word_mode
+ || TRULY_NOOP_TRUNCATION_MODES_P (mode, word_mode))
reg = gen_rtx_REG (mode, REGNO (entry_parm));
else
{