aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2014-07-09 10:56:39 +0000
committerMark Wielaard <mark@gcc.gnu.org>2014-07-09 10:56:39 +0000
commit676c36d87076816e149c501d5c81ee736a972b42 (patch)
tree31030883be64cd10b3e92c9a6f112ca068d731dc /gcc/java/class.c
parent059345ce40dc68e771f4e38c64597bbe56194551 (diff)
downloadgcc-676c36d87076816e149c501d5c81ee736a972b42.zip
gcc-676c36d87076816e149c501d5c81ee736a972b42.tar.gz
gcc-676c36d87076816e149c501d5c81ee736a972b42.tar.bz2
java: Use build_qualified_type instead of build_type_variant.
gcc/java/ChangeLog * builtins.c (putVolatile_builtin): Use build_qualified_type instead of build_type_variant. (getVolatile_builtin): Likewise. (build_classdollar_field): Likewise. From-SVN: r212389
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index dae3218..0d51165 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -1067,11 +1067,11 @@ build_classdollar_field (tree type)
decl
= build_decl (input_location,
VAR_DECL, decl_name,
- (build_type_variant
+ (build_qualified_type
(build_pointer_type
- (build_type_variant (class_type_node,
- /* const */ 1, 0)),
- /* const */ 1, 0)));
+ (build_qualified_type (class_type_node,
+ TYPE_QUAL_CONST)),
+ TYPE_QUAL_CONST)));
TREE_STATIC (decl) = 1;
TREE_CONSTANT (decl) = 1;
TREE_READONLY (decl) = 1;