aboutsummaryrefslogtreecommitdiff
path: root/gcc/multiple_target.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2020-05-25 10:04:10 +0200
committerEric Botcazou <ebotcazou@gcc.gnu.org>2020-05-25 10:07:04 +0200
commit15c55b96a721721e944f8617ae59bdcb273477e6 (patch)
tree40aa466d1503dd1bba7908b0160e7acd51950a3f /gcc/multiple_target.c
parentdeea3defc9802fcf3f8ea4e45f29dd1ad8fb3cef (diff)
downloadgcc-15c55b96a721721e944f8617ae59bdcb273477e6.zip
gcc-15c55b96a721721e944f8617ae59bdcb273477e6.tar.gz
gcc-15c55b96a721721e944f8617ae59bdcb273477e6.tar.bz2
Fix incorrect handling of Component_Size
The compiler can mishandle a Component_Size clause on an array type specifying a size multiple of the storage unit, when this size is not a multiple of the alignment of the component type. gcc/ada/ChangeLog * gcc-interface/decl.c (gnat_to_gnu_component_type): Cap alignment of the component type according to the component size. gcc/testsuite/ChangeLog * gnat.dg/array40.adb: New test. * gnat.dg/array40_pkg.ads: New helper.
Diffstat (limited to 'gcc/multiple_target.c')
0 files changed, 0 insertions, 0 deletions