aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-02-29 16:30:08 +0100
committerMartin Liska <marxin@gcc.gnu.org>2016-02-29 15:30:08 +0000
commit4232ebbbc9c2d188214485cd8e951648c45323e7 (patch)
treedc5ea421264253caa18d9cff63f5e8966a1f1b1d /gcc/ada/gcc-interface/utils.c
parent2998cb96c8128b826c357caed14d75961115c441 (diff)
downloadgcc-4232ebbbc9c2d188214485cd8e951648c45323e7.zip
gcc-4232ebbbc9c2d188214485cd8e951648c45323e7.tar.gz
gcc-4232ebbbc9c2d188214485cd8e951648c45323e7.tar.bz2
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
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r--gcc/ada/gcc-interface/utils.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index 6d4770d..9bd2773 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)));