decl.c (validate_size): Modify message for bad size to avoid implication that compile...
authorRichard Kenner <kenner@gnat.com>
Fri, 26 Oct 2001 16:59:34 +0000 (16:59 +0000)
committerGeert Bosch <bosch@gcc.gnu.org>
Fri, 26 Oct 2001 16:59:34 +0000 (18:59 +0200)
* decl.c (validate_size): Modify message for bad size to avoid
implication that compiler is modifying the size.

From-SVN: r46551

gcc/ada/ChangeLog
gcc/ada/decl.c

index 1a37c602766de883bc28696f3cdf7675f2816bf6..3ddc5f9f2bfadd97ebd469b9cea88c2adc82808d 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-26  Richard Kenner <kenner@gnat.com>
+
+       * decl.c (validate_size): Modify message for bad size to avoid 
+       implication that compiler is modifying the size.
+
 2001-10-26  Robert Dewar <dewar@gnat.com>
 
        * prj-util.adb: Minor reformatting. Fix bad header format.
index 23d16f364320110e8e99a408a9872967b148d793..254d6d906a9b6080ae38d01cc5e2ff9d9f8a54e1 100644 (file)
@@ -5560,7 +5560,7 @@ validate_size (uint_size, gnu_type, gnat_object, kind, component_p, zero_ok)
          && TREE_CODE (rm_size (gnu_type)) == INTEGER_CST
          && ! tree_int_cst_lt (size, rm_size (gnu_type)))
        post_error_ne_tree_2
-         ("\\size of ^ rounded up to multiple of alignment (^ bits)",
+         ("\\size of ^ is not a multiple of alignment (^ bits)",
           gnat_error_node, gnat_object, rm_size (gnu_type),
           TYPE_ALIGN (gnu_type));