aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2015-09-13 16:54:48 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2015-09-13 16:54:48 +0000
commitff507401c03ac8c83066346b7072888313d8ed91 (patch)
tree581243f6def8feace515f5ce869cbdcdb7206d60 /gcc
parent09a23476dfc4ea56adc24faf73198781cd755057 (diff)
downloadgcc-ff507401c03ac8c83066346b7072888313d8ed91.zip
gcc-ff507401c03ac8c83066346b7072888313d8ed91.tar.gz
gcc-ff507401c03ac8c83066346b7072888313d8ed91.tar.bz2
tree-vrp.c: remove typedefs that hide pointerness
gcc/ChangeLog: 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * tree-vrp.c (struct assert_locus_d): Rename to assert_locus. (dump_asserts_for): Adjust. (register_new_assert_for): Likewise. (process_assert_insertions): Likewise. (insert_range_assertions): Likewise. From-SVN: r227724
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/tree-vrp.c22
2 files changed, 18 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 67799b6..5e8bc63 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,13 @@
2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+ * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
+ (dump_asserts_for): Adjust.
+ (register_new_assert_for): Likewise.
+ (process_assert_insertions): Likewise.
+ (insert_range_assertions): Likewise.
+
+2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+
* tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
and remove typedef.
(new_temp_expr_table): Adjust.
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index d7615e1..00923c0 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -126,7 +126,7 @@ static tree vrp_evaluate_conditional_warnv_with_ops (enum tree_code,
SSA name may have more than one assertion associated with it, these
locations are kept in a linked list attached to the corresponding
SSA name. */
-struct assert_locus_d
+struct assert_locus
{
/* Basic block where the assertion would be inserted. */
basic_block bb;
@@ -148,11 +148,9 @@ struct assert_locus_d
tree expr;
/* Next node in the linked list. */
- struct assert_locus_d *next;
+ assert_locus *next;
};
-typedef struct assert_locus_d *assert_locus_t;
-
/* If bit I is present, it means that SSA name N_i has a list of
assertions that should be inserted in the IL. */
static bitmap need_assert_for;
@@ -160,7 +158,7 @@ static bitmap need_assert_for;
/* Array of locations lists where to insert assertions. ASSERTS_FOR[I]
holds a list of ASSERT_LOCUS_T nodes that describe where
ASSERT_EXPRs for SSA name N_I should be inserted. */
-static assert_locus_t *asserts_for;
+static assert_locus **asserts_for;
/* Value range array. After propagation, VR_VALUE[I] holds the range
of values that SSA name N_I may take. */
@@ -4897,7 +4895,7 @@ void debug_all_asserts (void);
void
dump_asserts_for (FILE *file, tree name)
{
- assert_locus_t loc;
+ assert_locus *loc;
fprintf (file, "Assertions to be inserted for ");
print_generic_expr (file, name, 0);
@@ -4979,7 +4977,7 @@ register_new_assert_for (tree name, tree expr,
edge e,
gimple_stmt_iterator si)
{
- assert_locus_t n, loc, last_loc;
+ assert_locus *n, *loc, *last_loc;
basic_block dest_bb;
gcc_checking_assert (bb == NULL || e == NULL);
@@ -5054,7 +5052,7 @@ register_new_assert_for (tree name, tree expr,
/* If we didn't find an assertion already registered for
NAME COMP_CODE VAL, add a new one at the end of the list of
assertions associated with NAME. */
- n = XNEW (struct assert_locus_d);
+ n = XNEW (struct assert_locus);
n->bb = dest_bb;
n->e = e;
n->si = si;
@@ -6333,7 +6331,7 @@ find_assert_locations (void)
indicated by LOC. Return true if we made any edge insertions. */
static bool
-process_assert_insertions_for (tree name, assert_locus_t loc)
+process_assert_insertions_for (tree name, assert_locus *loc)
{
/* Build the comparison expression NAME_i COMP_CODE VAL. */
gimple stmt;
@@ -6401,12 +6399,12 @@ process_assert_insertions (void)
EXECUTE_IF_SET_IN_BITMAP (need_assert_for, 0, i, bi)
{
- assert_locus_t loc = asserts_for[i];
+ assert_locus *loc = asserts_for[i];
gcc_assert (loc);
while (loc)
{
- assert_locus_t next = loc->next;
+ assert_locus *next = loc->next;
update_edges_p |= process_assert_insertions_for (ssa_name (i), loc);
free (loc);
loc = next;
@@ -6458,7 +6456,7 @@ static void
insert_range_assertions (void)
{
need_assert_for = BITMAP_ALLOC (NULL);
- asserts_for = XCNEWVEC (assert_locus_t, num_ssa_names);
+ asserts_for = XCNEWVEC (assert_locus *, num_ssa_names);
calculate_dominance_info (CDI_DOMINATORS);