Commit 5a36c51b by Richard Sandiford Committed by Richard Sandiford

cuintp.c: Update comments to refer to tree_fits_shwi_p rather than host_integerp.

gcc/ada/
	* gcc-interface/cuintp.c: Update comments to refer to
	tree_fits_shwi_p rather than host_integerp.
	* gcc-interface/decl.c (gnat_to_gnu_entity): Use tree_fits_uhwi_p
	rather than host_integerp.
	* gcc-interface/utils.c (rest_of_record_type_compilation): Likewise.

gcc/
	* expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
	than host_integerp.

From-SVN: r204957
parent cc269bb6
2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
* expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
than host_integerp.
2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
* builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c, * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c, config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c, gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
* gcc-interface/cuintp.c: Update comments to refer to
tree_fits_shwi_p rather than host_integerp.
* gcc-interface/decl.c (gnat_to_gnu_entity): Use tree_fits_uhwi_p
rather than host_integerp.
* gcc-interface/utils.c (rest_of_record_type_compilation): Likewise.
2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
* gcc-interface/decl.c, gcc-interface/misc.c, gcc-interface/utils.c: * gcc-interface/decl.c, gcc-interface/misc.c, gcc-interface/utils.c:
Replace host_integerp (..., 1) with tree_fits_uhwi_p throughout. Replace host_integerp (..., 1) with tree_fits_uhwi_p throughout.
......
...@@ -150,7 +150,7 @@ UI_From_gnu (tree Input) ...@@ -150,7 +150,7 @@ UI_From_gnu (tree Input)
Int_Vector vec; Int_Vector vec;
#if HOST_BITS_PER_WIDE_INT == 64 #if HOST_BITS_PER_WIDE_INT == 64
/* On 64-bit hosts, host_integerp tells whether the input fits in a /* On 64-bit hosts, tree_fits_shwi_p tells whether the input fits in a
signed 64-bit integer. Then a truncation tells whether it fits signed 64-bit integer. Then a truncation tells whether it fits
in a signed 32-bit integer. */ in a signed 32-bit integer. */
if (tree_fits_shwi_p (Input)) if (tree_fits_shwi_p (Input))
...@@ -162,7 +162,7 @@ UI_From_gnu (tree Input) ...@@ -162,7 +162,7 @@ UI_From_gnu (tree Input)
else else
return No_Uint; return No_Uint;
#else #else
/* On 32-bit hosts, host_integerp tells whether the input fits in a /* On 32-bit hosts, tree_fits_shwi_p tells whether the input fits in a
signed 32-bit integer. Then a sign test tells whether it fits signed 32-bit integer. Then a sign test tells whether it fits
in a signed 64-bit integer. */ in a signed 64-bit integer. */
if (tree_fits_shwi_p (Input)) if (tree_fits_shwi_p (Input))
......
...@@ -1484,8 +1484,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition) ...@@ -1484,8 +1484,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
&& AGGREGATE_TYPE_P (gnu_type) && AGGREGATE_TYPE_P (gnu_type)
&& tree_fits_uhwi_p (TYPE_SIZE_UNIT (gnu_type)) && tree_fits_uhwi_p (TYPE_SIZE_UNIT (gnu_type))
&& !(TYPE_IS_PADDING_P (gnu_type) && !(TYPE_IS_PADDING_P (gnu_type)
&& !host_integerp (TYPE_SIZE_UNIT && !tree_fits_uhwi_p (TYPE_SIZE_UNIT
(TREE_TYPE (TYPE_FIELDS (gnu_type))), 1))) (TREE_TYPE (TYPE_FIELDS (gnu_type))))))
static_p = true; static_p = true;
/* Now create the variable or the constant and set various flags. */ /* Now create the variable or the constant and set various flags. */
......
...@@ -1753,8 +1753,8 @@ rest_of_record_type_compilation (tree record_type) ...@@ -1753,8 +1753,8 @@ rest_of_record_type_compilation (tree record_type)
&& TREE_CODE (curpos) == PLUS_EXPR && TREE_CODE (curpos) == PLUS_EXPR
&& tree_fits_uhwi_p (TREE_OPERAND (curpos, 1)) && tree_fits_uhwi_p (TREE_OPERAND (curpos, 1))
&& TREE_CODE (TREE_OPERAND (curpos, 0)) == MULT_EXPR && TREE_CODE (TREE_OPERAND (curpos, 0)) == MULT_EXPR
&& host_integerp && tree_fits_uhwi_p
(TREE_OPERAND (TREE_OPERAND (curpos, 0), 1), 1)) (TREE_OPERAND (TREE_OPERAND (curpos, 0), 1)))
{ {
tree offset = TREE_OPERAND (TREE_OPERAND (curpos, 0), 0); tree offset = TREE_OPERAND (TREE_OPERAND (curpos, 0), 0);
unsigned HOST_WIDE_INT addend unsigned HOST_WIDE_INT addend
......
...@@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see
#include "rtl.h" #include "rtl.h"
/* For optimize_size */ /* For optimize_size */
#include "flags.h" #include "flags.h"
/* For host_integerp, tree_low_cst, fold_convert, size_binop, ssize_int, /* For tree_fits_[su]hwi_p, tree_low_cst, fold_convert, size_binop, ssize_int,
TREE_CODE, TYPE_SIZE, int_size_in_bytes, */ TREE_CODE, TYPE_SIZE, int_size_in_bytes, */
#include "tree-core.h" #include "tree-core.h"
/* For GET_MODE_BITSIZE, word_mode */ /* For GET_MODE_BITSIZE, word_mode */
......
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