diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-05-13 19:26:53 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-05-13 19:26:53 +0200 |
commit | 6b6435ca5c2933e729e4634f29e39215f2751f49 (patch) | |
tree | 2f28041afbe9849437b1305f83cf429afde4add1 /gcc | |
parent | d8d68c5bd56c661bc13206f44c193a3360d8f042 (diff) | |
download | gcc-6b6435ca5c2933e729e4634f29e39215f2751f49.zip gcc-6b6435ca5c2933e729e4634f29e39215f2751f49.tar.gz gcc-6b6435ca5c2933e729e4634f29e39215f2751f49.tar.bz2 |
i386.c (ix86_compute_frame_layout, [...]): Use HOST_WIDE_INT_C macro.
* config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
(ix86_split_to_parts): Likewise. Fix up formatting.
From-SVN: r236215
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 23 |
2 files changed, 16 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 17c0ea4..1c19f92 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-05-13 Jakub Jelinek <jakub@redhat.com> + + * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue, + ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro. + (ix86_split_to_parts): Likewise. Fix up formatting. + 2016-05-13 H.J. Lu <hongjiu.lu@intel.com> * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 501e26f..7f9004f 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -11960,7 +11960,7 @@ ix86_compute_frame_layout (struct ix86_frame *frame) to_allocate = offset - frame->sse_reg_save_offset; if ((!to_allocate && frame->nregs <= 1) - || (TARGET_64BIT && to_allocate >= (HOST_WIDE_INT) 0x80000000)) + || (TARGET_64BIT && to_allocate >= HOST_WIDE_INT_C (0x80000000))) frame->save_regs_using_mov = false; if (ix86_using_red_zone () @@ -13382,7 +13382,7 @@ ix86_expand_prologue (void) { HOST_WIDE_INT size = allocate; - if (TARGET_64BIT && size >= (HOST_WIDE_INT) 0x80000000) + if (TARGET_64BIT && size >= HOST_WIDE_INT_C (0x80000000)) size = 0x80000000 - STACK_CHECK_PROTECT - 1; if (TARGET_STACK_PROBE) @@ -14323,7 +14323,7 @@ ix86_expand_split_stack_prologue (void) different function: __morestack_large. We pass the argument size in the upper 32 bits of r10 and pass the frame size in the lower 32 bits. */ - gcc_assert ((allocate & (HOST_WIDE_INT) 0xffffffff) == allocate); + gcc_assert ((allocate & HOST_WIDE_INT_C (0xffffffff)) == allocate); gcc_assert ((args_size & 0xffffffff) == args_size); if (split_stack_fn_large == NULL_RTX) @@ -24557,20 +24557,17 @@ ix86_split_to_parts (rtx operand, rtx *parts, machine_mode mode) real_to_target (l, CONST_DOUBLE_REAL_VALUE (operand), mode); /* real_to_target puts 32-bit pieces in each long. */ - parts[0] = - gen_int_mode - ((l[0] & (HOST_WIDE_INT) 0xffffffff) - | ((l[1] & (HOST_WIDE_INT) 0xffffffff) << 32), - DImode); + parts[0] = gen_int_mode ((l[0] & HOST_WIDE_INT_C (0xffffffff)) + | ((l[1] & HOST_WIDE_INT_C (0xffffffff)) + << 32), DImode); if (upper_mode == SImode) parts[1] = gen_int_mode (l[2], SImode); else - parts[1] = - gen_int_mode - ((l[2] & (HOST_WIDE_INT) 0xffffffff) - | ((l[3] & (HOST_WIDE_INT) 0xffffffff) << 32), - DImode); + parts[1] + = gen_int_mode ((l[2] & HOST_WIDE_INT_C (0xffffffff)) + | ((l[3] & HOST_WIDE_INT_C (0xffffffff)) + << 32), DImode); } else gcc_unreachable (); |