aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-03-02 17:28:14 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-19 14:05:33 +0000
commitdb6734819f777dbbf9eea464baa7fc60a953dc8a (patch)
tree86bc2e08f6b64f3920bfbc5723b0474e93705a54 /gcc/ada/gcc-interface/utils.cc
parentb64c4968c7f3eb4c5ac0c56e6f11b10419dacd0c (diff)
downloadgcc-db6734819f777dbbf9eea464baa7fc60a953dc8a.zip
gcc-db6734819f777dbbf9eea464baa7fc60a953dc8a.tar.gz
gcc-db6734819f777dbbf9eea464baa7fc60a953dc8a.tar.bz2
[Ada] Fix internal error on unchecked union with component clauses (2)
The issue arises when the unchecked union contains both a fixed part and a variant part, and is subject to a full representation clause covering all the components in all the variants, when the component clauses do not align the variant boundaries with byte boundaries consistently. gcc/ada/ * gcc-interface/decl.cc (components_to_record): Use NULL recursively as P_GNU_REP_LIST for the innermost variant level in the unchecked union case with a fixed part.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.cc')
0 files changed, 0 insertions, 0 deletions