mirror of git://gcc.gnu.org/git/gcc.git
hwint.h (HOST_WIDE_INT_0): New define.
* hwint.h (HOST_WIDE_INT_0): New define. (HOST_WIDE_INT_0U): Ditto. * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0. * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0. * simplify-rtx.c: Ditto. * tree-object-size.c: Ditto. From-SVN: r238545
This commit is contained in:
parent
52ed68f71a
commit
07e96250ae
|
|
@ -1,3 +1,12 @@
|
||||||
|
2016-07-20 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
|
* hwint.h (HOST_WIDE_INT_0): New define.
|
||||||
|
(HOST_WIDE_INT_0U): Ditto.
|
||||||
|
* double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
|
||||||
|
* dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
|
||||||
|
* simplify-rtx.c: Ditto.
|
||||||
|
* tree-object-size.c: Ditto.
|
||||||
|
|
||||||
2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
|
2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* config/s390/s390.c (s390_encode_section_info): Remove mode size
|
* config/s390/s390.c (s390_encode_section_info): Remove mode size
|
||||||
|
|
|
||||||
|
|
@ -557,7 +557,7 @@ div_and_round_double (unsigned code, int uns,
|
||||||
case CEIL_MOD_EXPR: /* round toward positive infinity */
|
case CEIL_MOD_EXPR: /* round toward positive infinity */
|
||||||
if (!quo_neg && (*lrem != 0 || *hrem != 0)) /* ratio > 0 && rem != 0 */
|
if (!quo_neg && (*lrem != 0 || *hrem != 0)) /* ratio > 0 && rem != 0 */
|
||||||
{
|
{
|
||||||
add_double (*lquo, *hquo, HOST_WIDE_INT_1, (HOST_WIDE_INT) 0,
|
add_double (*lquo, *hquo, HOST_WIDE_INT_1, HOST_WIDE_INT_0,
|
||||||
lquo, hquo);
|
lquo, hquo);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -593,7 +593,7 @@ div_and_round_double (unsigned code, int uns,
|
||||||
HOST_WIDE_INT_M1, HOST_WIDE_INT_M1, lquo, hquo);
|
HOST_WIDE_INT_M1, HOST_WIDE_INT_M1, lquo, hquo);
|
||||||
else
|
else
|
||||||
/* quo = quo + 1; */
|
/* quo = quo + 1; */
|
||||||
add_double (*lquo, *hquo, HOST_WIDE_INT_1, (HOST_WIDE_INT) 0,
|
add_double (*lquo, *hquo, HOST_WIDE_INT_1, HOST_WIDE_INT_0,
|
||||||
lquo, hquo);
|
lquo, hquo);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -1217,7 +1217,7 @@ set_all_positions_unneeded (store_info *s_info)
|
||||||
s_info->positions_needed.large.count = end;
|
s_info->positions_needed.large.count = end;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
s_info->positions_needed.small_bitmask = (unsigned HOST_WIDE_INT) 0;
|
s_info->positions_needed.small_bitmask = HOST_WIDE_INT_0U;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return TRUE if any bytes from S_INFO store are needed. */
|
/* Return TRUE if any bytes from S_INFO store are needed. */
|
||||||
|
|
@ -1229,8 +1229,7 @@ any_positions_needed_p (store_info *s_info)
|
||||||
return (s_info->positions_needed.large.count
|
return (s_info->positions_needed.large.count
|
||||||
< s_info->end - s_info->begin);
|
< s_info->end - s_info->begin);
|
||||||
else
|
else
|
||||||
return (s_info->positions_needed.small_bitmask
|
return (s_info->positions_needed.small_bitmask != HOST_WIDE_INT_0U);
|
||||||
!= (unsigned HOST_WIDE_INT) 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return TRUE if all bytes START through START+WIDTH-1 from S_INFO
|
/* Return TRUE if all bytes START through START+WIDTH-1 from S_INFO
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,8 @@ extern char sizeof_long_long_must_be_8[sizeof (long long) == 8 ? 1 : -1];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define HOST_WIDE_INT_UC(X) HOST_WIDE_INT_C (X ## U)
|
#define HOST_WIDE_INT_UC(X) HOST_WIDE_INT_C (X ## U)
|
||||||
|
#define HOST_WIDE_INT_0 HOST_WIDE_INT_C (0)
|
||||||
|
#define HOST_WIDE_INT_0U HOST_WIDE_INT_UC (0)
|
||||||
#define HOST_WIDE_INT_1 HOST_WIDE_INT_C (1)
|
#define HOST_WIDE_INT_1 HOST_WIDE_INT_C (1)
|
||||||
#define HOST_WIDE_INT_1U HOST_WIDE_INT_UC (1)
|
#define HOST_WIDE_INT_1U HOST_WIDE_INT_UC (1)
|
||||||
#define HOST_WIDE_INT_M1 HOST_WIDE_INT_C (-1)
|
#define HOST_WIDE_INT_M1 HOST_WIDE_INT_C (-1)
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ along with GCC; see the file COPYING3. If not see
|
||||||
occasionally need to sign extend from low to high as if low were a
|
occasionally need to sign extend from low to high as if low were a
|
||||||
signed wide int. */
|
signed wide int. */
|
||||||
#define HWI_SIGN_EXTEND(low) \
|
#define HWI_SIGN_EXTEND(low) \
|
||||||
((((HOST_WIDE_INT) low) < 0) ? HOST_WIDE_INT_M1 : ((HOST_WIDE_INT) 0))
|
((((HOST_WIDE_INT) low) < 0) ? HOST_WIDE_INT_M1 : HOST_WIDE_INT_0)
|
||||||
|
|
||||||
static rtx neg_const_int (machine_mode, const_rtx);
|
static rtx neg_const_int (machine_mode, const_rtx);
|
||||||
static bool plus_minus_operand_p (const_rtx);
|
static bool plus_minus_operand_p (const_rtx);
|
||||||
|
|
|
||||||
|
|
@ -738,7 +738,7 @@ merge_object_sizes (struct object_size_info *osi, tree dest, tree orig,
|
||||||
orig_bytes = object_sizes[object_size_type][SSA_NAME_VERSION (orig)];
|
orig_bytes = object_sizes[object_size_type][SSA_NAME_VERSION (orig)];
|
||||||
if (orig_bytes != unknown[object_size_type])
|
if (orig_bytes != unknown[object_size_type])
|
||||||
orig_bytes = (offset > orig_bytes)
|
orig_bytes = (offset > orig_bytes)
|
||||||
? (unsigned HOST_WIDE_INT) 0 : orig_bytes - offset;
|
? HOST_WIDE_INT_0U : orig_bytes - offset;
|
||||||
|
|
||||||
if ((object_size_type & 2) == 0)
|
if ((object_size_type & 2) == 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue