From 70ce1ab9fd2e201631b253bb62489d07189d2d50 Mon Sep 17 00:00:00 2001 From: Julian Brown Date: Fri, 29 Nov 2019 00:58:35 +0000 Subject: [PATCH] Remove unused decimal floating-point pointer types gcc/ * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR) Remove. * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE, TI_DFLOAT128_PTR_TYPE): Remove. * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node, dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation. * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node, dfloat128_ptr_type_node): Remove macros. gcc/jit/ * jit-builtins.c (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Remove commented-out cases. Reviewed-by: Joseph Myers From-SVN: r278826 --- gcc/ChangeLog | 11 +++++++++++ gcc/builtin-types.def | 9 --------- gcc/jit/ChangeLog | 5 +++++ gcc/jit/jit-builtins.c | 3 --- gcc/tree-core.h | 3 --- gcc/tree.c | 3 --- gcc/tree.h | 3 --- 7 files changed, 16 insertions(+), 21 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7eed4b2047a..b89f404a8b8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2019-11-29 Julian Brown + + * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, + BT_DFLOAT128_PTR) Remove. + * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE, + TI_DFLOAT128_PTR_TYPE): Remove. + * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node, + dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation. + * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node, + dfloat128_ptr_type_node): Remove macros. + 2019-11-28 Segher Boessenkool * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve diff --git a/gcc/builtin-types.def b/gcc/builtin-types.def index 800b751de6d..2611e88da60 100644 --- a/gcc/builtin-types.def +++ b/gcc/builtin-types.def @@ -145,15 +145,6 @@ DEF_PRIMITIVE_TYPE (BT_DFLOAT64, (dfloat64_type_node DEF_PRIMITIVE_TYPE (BT_DFLOAT128, (dfloat128_type_node ? dfloat128_type_node : error_mark_node)) -DEF_PRIMITIVE_TYPE (BT_DFLOAT32_PTR, (dfloat32_ptr_type_node - ? dfloat32_ptr_type_node - : error_mark_node)) -DEF_PRIMITIVE_TYPE (BT_DFLOAT64_PTR, (dfloat64_ptr_type_node - ? dfloat64_ptr_type_node - : error_mark_node)) -DEF_PRIMITIVE_TYPE (BT_DFLOAT128_PTR, (dfloat128_ptr_type_node - ? dfloat128_ptr_type_node - : error_mark_node)) DEF_PRIMITIVE_TYPE (BT_VALIST_REF, va_list_ref_type_node) DEF_PRIMITIVE_TYPE (BT_VALIST_ARG, va_list_arg_type_node) diff --git a/gcc/jit/ChangeLog b/gcc/jit/ChangeLog index 8eb6a7f5df8..6e8e09330a1 100644 --- a/gcc/jit/ChangeLog +++ b/gcc/jit/ChangeLog @@ -1,3 +1,8 @@ +2019-11-29 Julian Brown + + * jit-builtins.c (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): + Remove commented-out cases. + 2019-11-20 David Malcolm PR jit/92483 diff --git a/gcc/jit/jit-builtins.c b/gcc/jit/jit-builtins.c index 850329c7b36..93d48c64c40 100644 --- a/gcc/jit/jit-builtins.c +++ b/gcc/jit/jit-builtins.c @@ -434,9 +434,6 @@ builtins_manager::make_primitive_type (enum jit_builtin_type type_id) // case BT_DFLOAT32: // case BT_DFLOAT64: // case BT_DFLOAT128: - // case BT_DFLOAT32_PTR: - // case BT_DFLOAT64_PTR: - // case BT_DFLOAT128_PTR: // case BT_VALIST_REF: // case BT_VALIST_ARG: // case BT_I1: diff --git a/gcc/tree-core.h b/gcc/tree-core.h index 12e078882da..f76f68d835d 100644 --- a/gcc/tree-core.h +++ b/gcc/tree-core.h @@ -695,9 +695,6 @@ enum tree_index { TI_DFLOAT32_TYPE, TI_DFLOAT64_TYPE, TI_DFLOAT128_TYPE, - TI_DFLOAT32_PTR_TYPE, - TI_DFLOAT64_PTR_TYPE, - TI_DFLOAT128_PTR_TYPE, TI_VOID_LIST_NODE, diff --git a/gcc/tree.c b/gcc/tree.c index 5ae250ee595..789f0a00f41 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -10340,19 +10340,16 @@ build_common_tree_nodes (bool signed_char) TYPE_PRECISION (dfloat32_type_node) = DECIMAL32_TYPE_SIZE; SET_TYPE_MODE (dfloat32_type_node, SDmode); layout_type (dfloat32_type_node); - dfloat32_ptr_type_node = build_pointer_type (dfloat32_type_node); dfloat64_type_node = make_node (REAL_TYPE); TYPE_PRECISION (dfloat64_type_node) = DECIMAL64_TYPE_SIZE; SET_TYPE_MODE (dfloat64_type_node, DDmode); layout_type (dfloat64_type_node); - dfloat64_ptr_type_node = build_pointer_type (dfloat64_type_node); dfloat128_type_node = make_node (REAL_TYPE); TYPE_PRECISION (dfloat128_type_node) = DECIMAL128_TYPE_SIZE; SET_TYPE_MODE (dfloat128_type_node, TDmode); layout_type (dfloat128_type_node); - dfloat128_ptr_type_node = build_pointer_type (dfloat128_type_node); } complex_integer_type_node = build_complex_type (integer_type_node, true); diff --git a/gcc/tree.h b/gcc/tree.h index 60b6eae7b04..0f3cc5d7e5a 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4098,9 +4098,6 @@ tree_strip_any_location_wrapper (tree exp) #define dfloat32_type_node global_trees[TI_DFLOAT32_TYPE] #define dfloat64_type_node global_trees[TI_DFLOAT64_TYPE] #define dfloat128_type_node global_trees[TI_DFLOAT128_TYPE] -#define dfloat32_ptr_type_node global_trees[TI_DFLOAT32_PTR_TYPE] -#define dfloat64_ptr_type_node global_trees[TI_DFLOAT64_PTR_TYPE] -#define dfloat128_ptr_type_node global_trees[TI_DFLOAT128_PTR_TYPE] /* The fixed-point types. */ #define sat_short_fract_type_node global_trees[TI_SAT_SFRACT_TYPE] -- 2.30.2