diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2025-03-27 21:25:36 +0100 |
---|---|---|
committer | Uros Bizjak <ubizjak@gmail.com> | 2025-03-27 21:26:09 +0100 |
commit | 2af32814cf2ba3c632fd5a3f69f275613383723d (patch) | |
tree | 03682d3a538a14e6e7e562714190779211fa6082 | |
parent | 50f8148a2754a1552704c6852c336ad008695388 (diff) | |
download | gcc-2af32814cf2ba3c632fd5a3f69f275613383723d.zip gcc-2af32814cf2ba3c632fd5a3f69f275613383723d.tar.gz gcc-2af32814cf2ba3c632fd5a3f69f275613383723d.tar.bz2 |
i386: Fix offset calculation in ix86_redzone_clobber
plus_constant expects integer as its third argument, not rtx.
gcc/ChangeLog:
* config/i386/i386.cc (ix86_redzone_clobber): Use integer, not rtx
as the third argument of plus_constant.
-rw-r--r-- | gcc/config/i386/i386.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index 18127bc..f38e3db 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -26465,8 +26465,7 @@ ix86_redzone_clobber () cfun->machine->asm_redzone_clobber_seen = true; if (ix86_using_red_zone ()) { - rtx base = plus_constant (Pmode, stack_pointer_rtx, - GEN_INT (-RED_ZONE_SIZE)); + rtx base = plus_constant (Pmode, stack_pointer_rtx, -RED_ZONE_SIZE); rtx mem = gen_rtx_MEM (BLKmode, base); set_mem_size (mem, RED_ZONE_SIZE); return mem; |