Commit e3fe09c1 by Uros Bizjak Committed by Uros Bizjak

c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,

c/ChangeLog:

	* c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,

c-family/ChangeLog:

	* c-common.c: Use HOST_WIDE_INT_M1U instead of
	~(unsigned HOST_WIDE_INT) 0.

From-SVN: r238643
parent 78f63b79
2016-07-22 Uros Bizjak <ubizjak@gmail.com>
* c-common.c: Use HOST_WIDE_INT_M1U instead of
~(unsigned HOST_WIDE_INT) 0.
2016-07-22 Martin Liska <mliska@suse.cz> 2016-07-22 Martin Liska <mliska@suse.cz>
PR gcov-profile/69028 PR gcov-profile/69028
......
...@@ -11999,7 +11999,7 @@ warn_for_sign_compare (location_t location, ...@@ -11999,7 +11999,7 @@ warn_for_sign_compare (location_t location,
if (bits < TYPE_PRECISION (result_type) if (bits < TYPE_PRECISION (result_type)
&& bits < HOST_BITS_PER_LONG && unsignedp) && bits < HOST_BITS_PER_LONG && unsignedp)
{ {
mask = (~ (unsigned HOST_WIDE_INT) 0) << bits; mask = HOST_WIDE_INT_M1U << bits;
if ((mask & constant) != mask) if ((mask & constant) != mask)
{ {
if (constant == 0) if (constant == 0)
......
2016-07-22 Uros Bizjak <ubizjak@gmail.com>
* c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
2016-07-20 David Malcolm <dmalcolm@redhat.com> 2016-07-20 David Malcolm <dmalcolm@redhat.com>
* c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to
......
...@@ -8594,7 +8594,7 @@ set_nonincremental_init_from_string (tree str, ...@@ -8594,7 +8594,7 @@ set_nonincremental_init_from_string (tree str,
bitpos = ((wchar_bytes - 1) * charwidth) + HOST_BITS_PER_CHAR; bitpos = ((wchar_bytes - 1) * charwidth) + HOST_BITS_PER_CHAR;
if (bitpos < HOST_BITS_PER_WIDE_INT) if (bitpos < HOST_BITS_PER_WIDE_INT)
{ {
if (val[0] & (((HOST_WIDE_INT) 1) << (bitpos - 1))) if (val[0] & (HOST_WIDE_INT_1 << (bitpos - 1)))
{ {
val[0] |= HOST_WIDE_INT_M1U << bitpos; val[0] |= HOST_WIDE_INT_M1U << bitpos;
val[1] = -1; val[1] = -1;
...@@ -8605,7 +8605,7 @@ set_nonincremental_init_from_string (tree str, ...@@ -8605,7 +8605,7 @@ set_nonincremental_init_from_string (tree str,
if (val[0] < 0) if (val[0] < 0)
val[1] = -1; val[1] = -1;
} }
else if (val[1] & (((HOST_WIDE_INT) 1) else if (val[1] & (HOST_WIDE_INT_1
<< (bitpos - 1 - HOST_BITS_PER_WIDE_INT))) << (bitpos - 1 - HOST_BITS_PER_WIDE_INT)))
val[1] |= HOST_WIDE_INT_M1U << (bitpos - HOST_BITS_PER_WIDE_INT); val[1] |= HOST_WIDE_INT_M1U << (bitpos - HOST_BITS_PER_WIDE_INT);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment