diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2004-08-23 08:41:57 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-08-23 08:41:57 +0000 |
commit | 8dd16ecc7d71b9f1e1bdc4d870cf2436db9594a9 (patch) | |
tree | 21e04c3973bfdab79a845ae2282b15da19d7926c /gcc/c-common.c | |
parent | e8bf0f3bacc5f3f4ae892f4df794cc23e41519b9 (diff) | |
download | gcc-8dd16ecc7d71b9f1e1bdc4d870cf2436db9594a9.zip gcc-8dd16ecc7d71b9f1e1bdc4d870cf2436db9594a9.tar.gz gcc-8dd16ecc7d71b9f1e1bdc4d870cf2436db9594a9.tar.bz2 |
tree.h (build_distinct_type_copy): New.
* tree.h (build_distinct_type_copy): New.
(build_type_copy): ... here. Rename to ...
(build_variant_type_copy): ... here.
* tree.c (build_qualified_type): Rename build_type_copy call.
(build_distinct_type_copy): New, broken out of ...
(build_type_copy): ... here. Rename to ...
(build_variant_type_copy): ... here. Use
build_distinct_type_copy.
(build_common_tree_nodes_2): Rename build_type_copy call.
* c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
call.
(handle_packed_attribute, handle_unused_attribute,
handle_transparanet_union_attribute, handle_aligned_attribute,
handle_deprecated_attribute): Likewise.
* c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
Likewise.
* config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
* config/rs6000/rs6000.c (rs6000_init_builtins): Use
build_distinct_type_copy.
* cp/name-lookup.c (pushdecl): Rename build_type_copy call.
* cp/tree.c (cp_build_qualified_type_real,
build_exception_variant, handle_java_interface_attribute): Likewise.
From-SVN: r86421
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 663e2c1..7306cdf 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -2997,7 +2997,7 @@ c_common_nodes_and_builtins (void) if (c_dialect_cxx ()) /* For C++, make fileptr_type_node a distinct void * type until FILE type is defined. */ - fileptr_type_node = build_type_copy (ptr_type_node); + fileptr_type_node = build_variant_type_copy (ptr_type_node); record_builtin_type (RID_VOID, NULL, void_type_node); @@ -3925,7 +3925,7 @@ handle_packed_attribute (tree *node, tree name, tree ARG_UNUSED (args), if (TYPE_P (*node)) { if (!(flags & (int) ATTR_FLAG_TYPE_IN_PLACE)) - *node = build_type_copy (*node); + *node = build_variant_type_copy (*node); TYPE_PACKED (*node) = 1; if (TYPE_MAIN_VARIANT (*node) == *node) { @@ -4114,7 +4114,7 @@ handle_unused_attribute (tree *node, tree name, tree ARG_UNUSED (args), else { if (!(flags & (int) ATTR_FLAG_TYPE_IN_PLACE)) - *node = build_type_copy (*node); + *node = build_variant_type_copy (*node); TREE_USED (*node) = 1; } @@ -4176,7 +4176,7 @@ handle_transparent_union_attribute (tree *node, tree name, && TYPE_MODE (*type) == DECL_MODE (TYPE_FIELDS (*type))))) { if (!(flags & (int) ATTR_FLAG_TYPE_IN_PLACE)) - *type = build_type_copy (*type); + *type = build_variant_type_copy (*type); TYPE_TRANSPARENT_UNION (*type) = 1; } else if (decl != 0 && TREE_CODE (decl) == PARM_DECL @@ -4451,14 +4451,14 @@ handle_aligned_attribute (tree *node, tree ARG_UNUSED (name), tree args, && DECL_ORIGINAL_TYPE (decl) == NULL_TREE) { tree tt = TREE_TYPE (decl); - *type = build_type_copy (*type); + *type = build_variant_type_copy (*type); DECL_ORIGINAL_TYPE (decl) = tt; TYPE_NAME (*type) = decl; TREE_USED (*type) = TREE_USED (decl); TREE_TYPE (decl) = *type; } else if (!(flags & (int) ATTR_FLAG_TYPE_IN_PLACE)) - *type = build_type_copy (*type); + *type = build_variant_type_copy (*type); TYPE_ALIGN (*type) = (1 << i) * BITS_PER_UNIT; TYPE_USER_ALIGN (*type) = 1; @@ -4805,7 +4805,7 @@ handle_deprecated_attribute (tree *node, tree name, else if (TYPE_P (*node)) { if (!(flags & (int) ATTR_FLAG_TYPE_IN_PLACE)) - *node = build_type_copy (*node); + *node = build_variant_type_copy (*node); TREE_DEPRECATED (*node) = 1; type = *node; } |