From 4232ebbbc9c2d188214485cd8e951648c45323e7 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 29 Feb 2016 16:30:08 +0100 Subject: [PATCH] Replace ENABLE_CHECKING macro with flag_checking in GNAT * gcc-interface/utils.c (set_reverse_storage_order_on_pad_type): Replace ENABLE_CHECKING macro with flag_checking. From-SVN: r233815 --- gcc/ada/ChangeLog | 5 +++++ gcc/ada/gcc-interface/utils.c | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index cda8be6e122..de617b16ca3 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2016-02-29 Martin Liska + + * gcc-interface/utils.c (set_reverse_storage_order_on_pad_type): + Replace ENABLE_CHECKING macro with flag_checking. + 2016-02-29 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity) : Retrofit diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 6d4770df998..9bd2773ba9e 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -1486,11 +1486,13 @@ set_reverse_storage_order_on_pad_type (tree type) { tree field, canonical_pad_type; -#ifdef ENABLE_CHECKING - /* If the inner type is not scalar then the function does nothing. */ - tree inner_type = TREE_TYPE (TYPE_FIELDS (type)); - gcc_assert (!AGGREGATE_TYPE_P (inner_type) && !VECTOR_TYPE_P (inner_type)); -#endif + if (flag_checking) + { + /* If the inner type is not scalar then the function does nothing. */ + tree inner_type = TREE_TYPE (TYPE_FIELDS (type)); + gcc_assert (!AGGREGATE_TYPE_P (inner_type) + && !VECTOR_TYPE_P (inner_type)); + } /* This is required for the canonicalization. */ gcc_assert (TREE_CONSTANT (TYPE_SIZE (type))); -- 2.30.2