diff options
author | Diego Novillo <dnovillo@google.com> | 2009-05-07 15:54:39 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2009-05-07 15:54:39 +0000 |
commit | 9f1a3e557f0d524526126554526cf6522395307f (patch) | |
tree | e5e59c8cc7b3f00c12d7e7cf54fbb13917f4fcc9 /gcc/tree.c | |
parent | 2d7cbd5500a988688da39f5f46c67abb68fa2ec2 (diff) |
* lto-cgraph.c (input_edge): Add type casts for C++ warnings.
(input_cgraph_1): Likewise.
* lto-function-in.c (input_real): Likewise.
(process_tree_flags): Define ADD_TLS_FLAG.
(lto_static_init_local): Likewise.
(input_field_decl): Add type casts for C++ warnings.
(input_const_decl): Likewise.
(input_function_decl): Likewise.
(input_var_decl): Likewise.
(input_parm_decl): Likewise.
(input_result_decl): Likewise.
(input_type_decl): Likewise.
(input_label_decl): Likewise.
(input_type): Likewise.
* lto-function-out.c (expr_to_tag): Change type to enum LTO_tags.
(output_tree_flags): Define ADD_TLS_FLAG.
(lto_debug_tree_flags): Likewise.
* lto-section-out.c (get_ref_idx_for): If -funsigned-char is
given, replace T with unsigned_char_type_node.
* lto-tree-flags.def: Call ADD_TLS_FLAG instead of
ADD_VIS_FLAG_SIZE for field tls_model.
* ipa-pure-const.c (read_summary): Handle new fields
state_previously_known and looping_previously_known.
Handle field can_throw.
(write_summary): Likewise.
Mainline merge @147098.
* configure.ac (ACX_PKGVERSION): Update revision merge string.
* configure: Regenerate.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@147246 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index 0c787ee6176..12ba2b8033f 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1,6 +1,6 @@ /* Language-independent node constructors for parse phase of GNU compiler. Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GCC. @@ -3913,6 +3913,8 @@ free_lang_data_in_type (tree type) an infinite loop). */ if (TYPE_MAIN_VARIANT (type)) TYPE_NEXT_VARIANT (TYPE_MAIN_VARIANT (type)) = NULL_TREE; + + TYPE_NEXT_VARIANT (type) = NULL_TREE; } @@ -8537,8 +8539,10 @@ build_common_builtin_nodes (void) tmp = tree_cons (NULL_TREE, inner_type, tmp); ftype = build_function_type (type, tmp); - mcode = BUILT_IN_COMPLEX_MUL_MIN + mode - MIN_MODE_COMPLEX_FLOAT; - dcode = BUILT_IN_COMPLEX_DIV_MIN + mode - MIN_MODE_COMPLEX_FLOAT; + mcode = ((enum built_in_function) + (BUILT_IN_COMPLEX_MUL_MIN + mode - MIN_MODE_COMPLEX_FLOAT)); + dcode = ((enum built_in_function) + (BUILT_IN_COMPLEX_DIV_MIN + mode - MIN_MODE_COMPLEX_FLOAT)); for (p = GET_MODE_NAME (mode), q = mode_name_buf; *p; p++, q++) *q = TOLOWER (*p); @@ -10005,4 +10009,16 @@ block_ultimate_origin (const_tree block) } } +/* Return true if T1 and T2 are equivalent lists. */ + +bool +list_equal_p (const_tree t1, const_tree t2) +{ + for (; t1 && t2; t1 = TREE_CHAIN (t1) , t2 = TREE_CHAIN (t2)) + if (TREE_VALUE (t1) != TREE_VALUE (t2)) + return false; + return !t1 && !t2; +} + + #include "gt-tree.h" |