Hello Richard,

as a follow-up patch to the bit-fields patch(es), I wanted to remove the 
dependencies on
the variable flag_strict_volatile_bitfields from expand_assignment and 
expand_expr_real_1.
Additionally I want the access mode of the field to be selected in the memory 
context,
instead of the structure's mode.

Boot-strapped and regression-tested on x86_64-linux-gnu.

OK for trunk?

Thanks
Bernd.


FYI - these are my in-flight patches, which would be nice to go into the GCC 
4.9.0 release:


http://gcc.gnu.org/ml/gcc-patches/2013-11/msg02046.html :[PATCH] reimplement 
-fstrict-volatile-bitfields v4, part 1/2
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg02025.html :[PATCH] Fix C++0x 
memory model for -fno-strict-volatile-bitfields on ARM
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg02291.html :
[PATCH, PR 57748] Check for out of bounds access, Part 2
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg00581.html :[PATCH, PR 57748] 
Check for out of bounds access, Part 3
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg00133.html:[PATCH] Fix PR58115     
                                  
2013-11-20  Bernd Edlinger  <bernd.edlin...@hotmail.de>

        * expr.c (expand_assignment): Remove dependency on
        flag_strict_volatile_bitfields. Always set the memory 
        access mode.
        (expand_expr_real_1): Likewise.

Attachment: patch-bitfields-cleanup.diff
Description: Binary data

Reply via email to