aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2021-02-03 11:38:04 +0100
committerEric Botcazou <ebotcazou@adacore.com>2021-02-03 11:38:04 +0100
commite8c87bc07b5c98101b47caaee84650cd8abdfa5f (patch)
tree5badee4ab77820205d39dd2344f571f358af2fe2 /gcc/lto-streamer.h
parentfc130ab54fd9a254f07426f9c180c367b039d7f9 (diff)
downloadgcc-e8c87bc07b5c98101b47caaee84650cd8abdfa5f.zip
gcc-e8c87bc07b5c98101b47caaee84650cd8abdfa5f.tar.gz
gcc-e8c87bc07b5c98101b47caaee84650cd8abdfa5f.tar.bz2
Fix regression with partial rep clause on variant record type
It can yield an incorrect layout when there is a partial representation clause on a discriminated record type with a variant part. gcc/ada/ * gcc-interface/decl.c (components_to_record): If the first component with rep clause is the _Parent field with variable size, temporarily set it aside when computing the internal layout of the REP part again. * gcc-interface/utils.c (finish_record_type): Revert to taking the maximum when merging sizes for all record types with rep clause. (merge_sizes): Put SPECIAL parameter last and adjust recursive calls.
Diffstat (limited to 'gcc/lto-streamer.h')
0 files changed, 0 insertions, 0 deletions