This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/22156] [4.0/4.1 Regression] bit-field copying regressed
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2005 05:11:42 -0000
- Subject: [Bug middle-end/22156] [4.0/4.1 Regression] bit-field copying regressed
- References: <20050623050243.22156.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-23 05:11 -------
The main difference between the C++ front-end and the C front-end in this respect is how they
repesent bit-fields.
for the C++ front-end we get the following output from SRA:
Cannot scalarize variable D.1693 because its type cannot be decomposed
but for the C front-end we get:
Scan results:
D.1237: n_uses=0 n_copies=2
Initial instantiation for D.1237
Using element-copy for D.1237
D.1237.i1 -> SR.12
D.1237.i2 -> SR.13
D.1237.i3 -> SR.14
So to me this looks like a SRA bug in that it should be using BIT_FIELD_REF instead if it can.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22156