builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 11 Jun 2008 15:56:41 +0000 (15:56 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 11 Jun 2008 15:56:41 +0000 (15:56 +0000)
commit056c8faea0671ac8b20504f688e2459386dc18c3
tree7f4fdceccc7546f3261363ae2dab1aa312a764f3
parent2023be161a9a1ec80e84c8fe231b38a4020b629f
builtins.c (get_memory_rtx): Accept byte-addressable bitfields.

* builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
Use DECL_SIZE_UNIT to retrieve the size of the field.

Co-Authored-By: Olivier Hainque <hainque@adacore.com>
From-SVN: r136673
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/varsize_copy.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/varsize_copy.ads [new file with mode: 0644]