aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2015-05-25 21:30:39 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2015-05-25 21:30:39 +0000
commitf42dd37fa3903399388c85c7dd0d9d8f5509cf77 (patch)
tree502fa6bce201997d26c34ad7d2c94b174b22136e /gcc/ada/gcc-interface/utils.c
parent1366ba411aced82547671901bf20655b40e3dded (diff)
downloadgcc-f42dd37fa3903399388c85c7dd0d9d8f5509cf77.zip
gcc-f42dd37fa3903399388c85c7dd0d9d8f5509cf77.tar.gz
gcc-f42dd37fa3903399388c85c7dd0d9d8f5509cf77.tar.bz2
utils.c (maybe_pad_type): Do not apply adjustment to original size for elementary types before issuing...
* gcc-interface/utils.c (maybe_pad_type): Do not apply adjustment to original size for elementary types before issuing the size warning. From-SVN: r223657
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r--gcc/ada/gcc-interface/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index c20378a..291e824 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -1426,7 +1426,7 @@ built:
if (CONTAINS_PLACEHOLDER_P (orig_size))
orig_size = max_size (orig_size, true);
- if (align)
+ if (align && AGGREGATE_TYPE_P (type))
orig_size = round_up (orig_size, align);
if (!operand_equal_p (size, orig_size, 0)