[Ada] Update error message for wrong alignment
bosch@gnat.com
bosch@gnat.com
Fri Oct 26 09:59:00 GMT 2001
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.
*** decl.c 2001/10/06 12:58:02 1.6
--- decl.c 2001/10/16 11:35:39 1.7
***************
*** 5544,5550 ****
&& 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)",
gnat_error_node, gnat_object, rm_size (gnu_type),
TYPE_ALIGN (gnu_type));
--- 5544,5550 ----
&& TREE_CODE (rm_size (gnu_type)) == INTEGER_CST
&& ! tree_int_cst_lt (size, rm_size (gnu_type)))
post_error_ne_tree_2
! ("\\size of ^ is not a multiple of alignment (^ bits)",
gnat_error_node, gnat_object, rm_size (gnu_type),
TYPE_ALIGN (gnu_type));
More information about the Gcc-patches
mailing list