aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2021-05-21 10:40:41 +0200
committerEric Botcazou <ebotcazou@adacore.com>2021-05-21 10:41:35 +0200
commit1e66a9170071aded59dda09ac437757de4223346 (patch)
treeac2134904482b8c750c41ae164382aaad5c37a23 /gcc/ada/gcc-interface/utils.c
parentf1c777f40aa0b6941efc7440495a8d7e0cc2a1bb (diff)
downloadgcc-1e66a9170071aded59dda09ac437757de4223346.zip
gcc-1e66a9170071aded59dda09ac437757de4223346.tar.gz
gcc-1e66a9170071aded59dda09ac437757de4223346.tar.bz2
Fix segfault at run time on strict-alignment platforms
This fixes a regression present on the mainline and 11 branch by restricting the problematic change dealing with bitfields whose nomimal subtype is self-referential to the cases where the size is really lower. gcc/ada/ * gcc-interface/trans.c (Call_to_gnu): Restrict previous change to bitfields whose size is not equal to the type size. (gnat_to_gnu): Likewise.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
0 files changed, 0 insertions, 0 deletions