]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix incorrect size for pathological pass-by-copy parameters
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 27 Sep 2021 20:44:59 +0000 (22:44 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 11 Oct 2021 13:38:13 +0000 (13:38 +0000)
commit92961bdf2dfc63965a05302aac6c907065bd2c27
tree593eaa3c7ec79eb171dead891b8731c91e86e2c7
parent547513eeab951fddeb53baaa577de32dc8b779de
[Ada] Fix incorrect size for pathological pass-by-copy parameters

gcc/ada/

* gcc-interface/decl.c (gnat_to_gnu_param): Strip padding types
only if the size does not change in the process.  Rename local
variable and add bypass for initialization procedures.
gcc/ada/gcc-interface/decl.c