summaryrefslogtreecommitdiffstats
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-23 08:41:57 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-23 08:41:57 +0000
commite086912ef49705e0884bb4d8db71a444bedaa4fd (patch)
tree21e04c3973bfdab79a845ae2282b15da19d7926c /gcc/cp/tree.c
parente45cb88635ea4636ac79facaa1fb064e084d9996 (diff)
downloadppe42-gcc-e086912ef49705e0884bb4d8db71a444bedaa4fd.tar.gz
ppe42-gcc-e086912ef49705e0884bb4d8db71a444bedaa4fd.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86421 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 703d963e384..017693b4da2 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -465,7 +465,7 @@ cp_build_qualified_type_real (tree type,
{
/* Make a new array type, just like the old one, but with the
appropriately qualified element type. */
- t = build_type_copy (type);
+ t = build_variant_type_copy (type);
TREE_TYPE (t) = element_type;
}
@@ -942,7 +942,7 @@ build_exception_variant (tree type, tree raises)
return v;
/* Need to build a new variant. */
- v = build_type_copy (type);
+ v = build_variant_type_copy (type);
TYPE_RAISES_EXCEPTIONS (v) = raises;
return v;
}
@@ -1776,7 +1776,7 @@ handle_java_interface_attribute (tree* node,
return NULL_TREE;
}
if (!(flags & (int) ATTR_FLAG_TYPE_IN_PLACE))
- *node = build_type_copy (*node);
+ *node = build_variant_type_copy (*node);
TYPE_JAVA_INTERFACE (*node) = 1;
return NULL_TREE;
OpenPOWER on IntegriCloud