diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2016-12-07 11:29:28 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2016-12-07 11:29:28 +0000 |
commit | aa35e3ba8ef4cd36991a877063632edef552068b (patch) | |
tree | ab30e4f48177fe32e17222bce32fa02cc5459db3 /gcc/ada/gcc-interface/utils.c | |
parent | 2c1f5c0a344e2f127decf13eb851794401b54e29 (diff) | |
download | gcc-aa35e3ba8ef4cd36991a877063632edef552068b.zip gcc-aa35e3ba8ef4cd36991a877063632edef552068b.tar.gz gcc-aa35e3ba8ef4cd36991a877063632edef552068b.tar.bz2 |
Adjust comment
From-SVN: r243338
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r-- | gcc/ada/gcc-interface/utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index c00d1fa..0ae381f 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -1662,12 +1662,12 @@ finish_character_type (tree char_type) SET_TYPE_DEBUG_TYPE (char_type, unsigned_char_type); /* If this is a subtype, make the debug type a subtype of the debug type - of the base type and convert literal bounds to unsigned. */ + of the base type and convert literal RM bounds to unsigned. */ if (TREE_TYPE (char_type)) { tree base_unsigned_char_type = TYPE_DEBUG_TYPE (TREE_TYPE (char_type)); - tree min_value = TYPE_MIN_VALUE (char_type); - tree max_value = TYPE_MAX_VALUE (char_type); + tree min_value = TYPE_RM_MIN_VALUE (char_type); + tree max_value = TYPE_RM_MAX_VALUE (char_type); if (TREE_CODE (min_value) == INTEGER_CST) min_value = fold_convert (base_unsigned_char_type, min_value); @@ -1679,7 +1679,7 @@ finish_character_type (tree char_type) SET_TYPE_RM_MAX_VALUE (unsigned_char_type, max_value); } - /* Adjust the bounds of the original type to unsigned; that's especially + /* Adjust the RM bounds of the original type to unsigned; that's especially important for types since they are implicit in this case. */ SET_TYPE_RM_MIN_VALUE (char_type, TYPE_MIN_VALUE (unsigned_char_type)); SET_TYPE_RM_MAX_VALUE (char_type, TYPE_MAX_VALUE (unsigned_char_type)); |