diff options
author | Richard Kenner <kenner@gnat.com> | 2001-10-26 16:59:34 +0000 |
---|---|---|
committer | Geert Bosch <bosch@gcc.gnu.org> | 2001-10-26 18:59:34 +0200 |
commit | 5b09c1536828dd5d11dc5755956357427dbacdc4 (patch) | |
tree | a45c4a4ceefa0542b2b4ee8895b6ba416b13f753 | |
parent | 4d553668837adcd14170e32fddf1d19fd5b7b0a7 (diff) | |
download | gcc-5b09c1536828dd5d11dc5755956357427dbacdc4.zip gcc-5b09c1536828dd5d11dc5755956357427dbacdc4.tar.gz gcc-5b09c1536828dd5d11dc5755956357427dbacdc4.tar.bz2 |
decl.c (validate_size): Modify message for bad size to avoid implication that compiler is modifying the...
* decl.c (validate_size): Modify message for bad size to avoid
implication that compiler is modifying the size.
From-SVN: r46551
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/decl.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 1a37c60..3ddc5f9 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -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. diff --git a/gcc/ada/decl.c b/gcc/ada/decl.c index 23d16f3..254d6d9 100644 --- a/gcc/ada/decl.c +++ b/gcc/ada/decl.c @@ -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)); |