This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/45274] __restrict__ type qualifier does not work on pointers to bitfields
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Apr 2011 20:13:40 +0000
- Subject: [Bug middle-end/45274] __restrict__ type qualifier does not work on pointers to bitfields
- Auto-submitted: auto-generated
- References: <bug-45274-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45274
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Target|powerpc64-unknown-linux-gnu |
|, mips64-elf |
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-04-11 20:13:25 UTC ---
(In reply to comment #1)
> I don't think this has anything to do with restrict and all with lowering
> bitfield accesses only during expansion, and at RTL level the bitfield
> operations being too big for combiner to optimize them.
No this is unrelated to the combiner not be able to optimize the bitfield
accesses. Rather it is related to how store and loads happen on bitfields. We
don't try to keep track of individual bits for a change in the store.