diff options
author | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-07-19 12:01:18 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-07-19 12:01:18 +0000 |
commit | 20deef65ae6058143c29199c1aab12d94e75181c (patch) | |
tree | b6dcbebf79db91f5571b47a27f8b9a743b188ee7 /gcc/lto/lto.c | |
parent | 4d6ababc620d19dfe258c493a549981723fe0e42 (diff) | |
download | gcc-20deef65ae6058143c29199c1aab12d94e75181c.zip gcc-20deef65ae6058143c29199c1aab12d94e75181c.tar.gz gcc-20deef65ae6058143c29199c1aab12d94e75181c.tar.bz2 |
tree.h (TYPE_MINVAL, [...]): Rename to ...
gcc/
* tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
(TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
* tree.c (find_decls_types_r, verify_type): Use
TYPE_{MIN,MAX}_VALUE_RAW.
* lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
(hash_tree): Likewise.
* tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
Likewise.
* tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
Likewise.
gcc/cp/
* cp-tree.h (PACK_EXPANSION_PARAMETER_PACKS,
PACK_EXPANSION_EXTRA_ARGS): Use TYPE_{MIN,MAX}_VALUE_RAW.
gcc/lto/
* lto.c (mentions_vars_p_type): Use TYPE_{MIN,MAX}_VALUE_RAW.
(compare_tree_sccs_1, lto_fixup_prevailing_decls): Likewise.
gcc/objc/
* objc-act.h (CLASS_NST_METHODS, CLASS_CLS_METHODS): Use
TYPE_{MIN,MAX}_VALUE_RAW.
From-SVN: r250337
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r-- | gcc/lto/lto.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 44ddf41..a3b4d13 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -646,8 +646,8 @@ mentions_vars_p_type (tree t) CHECK_NO_VAR (TYPE_ATTRIBUTES (t)); CHECK_NO_VAR (TYPE_NAME (t)); - CHECK_VAR (TYPE_MINVAL (t)); - CHECK_VAR (TYPE_MAXVAL (t)); + CHECK_VAR (TYPE_MIN_VALUE_RAW (t)); + CHECK_VAR (TYPE_MAX_VALUE_RAW (t)); /* Accessor is for derived node types only. */ CHECK_NO_VAR (t->type_non_common.binfo); @@ -1414,9 +1414,10 @@ compare_tree_sccs_1 (tree t1, tree t2, tree **map) else if (code == FUNCTION_TYPE || code == METHOD_TYPE) compare_tree_edges (TYPE_ARG_TYPES (t1), TYPE_ARG_TYPES (t2)); + if (!POINTER_TYPE_P (t1)) - compare_tree_edges (TYPE_MINVAL (t1), TYPE_MINVAL (t2)); - compare_tree_edges (TYPE_MAXVAL (t1), TYPE_MAXVAL (t2)); + compare_tree_edges (TYPE_MIN_VALUE_RAW (t1), TYPE_MIN_VALUE_RAW (t2)); + compare_tree_edges (TYPE_MAX_VALUE_RAW (t1), TYPE_MAX_VALUE_RAW (t2)); } if (CODE_CONTAINS_STRUCT (code, TS_LIST)) @@ -2580,8 +2581,8 @@ lto_fixup_prevailing_decls (tree t) LTO_NO_PREVAIL (TYPE_ATTRIBUTES (t)); LTO_NO_PREVAIL (TYPE_NAME (t)); - LTO_SET_PREVAIL (TYPE_MINVAL (t)); - LTO_SET_PREVAIL (TYPE_MAXVAL (t)); + LTO_SET_PREVAIL (TYPE_MIN_VALUE_RAW (t)); + LTO_SET_PREVAIL (TYPE_MAX_VALUE_RAW (t)); LTO_NO_PREVAIL (t->type_non_common.binfo); LTO_SET_PREVAIL (TYPE_CONTEXT (t)); |