aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2013-10-21 15:51:48 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2013-10-21 15:51:48 +0000
commit5dfd32cddaa43eeda595dba8dff86ae1794f0830 (patch)
tree3cbd330a92a954d9c4e588c3b77ef68400c5ae80 /gcc/stor-layout.c
parent0bff3610402612ce2d9c7bd136ee36fb4ab977b6 (diff)
downloadgcc-5dfd32cddaa43eeda595dba8dff86ae1794f0830.zip
gcc-5dfd32cddaa43eeda595dba8dff86ae1794f0830.tar.gz
gcc-5dfd32cddaa43eeda595dba8dff86ae1794f0830.tar.bz2
Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields and...
2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de> Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields and get_inner_reference returning different pmode for non-volatile bit-field members dependent on flag_strict_volatile_bitfields. * stor-layout.c (layout_decl): Remove special handling of flag_strict_volatile_bitfields. * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE. From-SVN: r203898
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 20e577d..4619d6e 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -606,14 +606,10 @@ layout_decl (tree decl, unsigned int known_align)
/* See if we can use an ordinary integer mode for a bit-field.
Conditions are: a fixed size that is correct for another mode,
- occupying a complete byte or bytes on proper boundary,
- and not -fstrict-volatile-bitfields. If the latter is set,
- we unfortunately can't check TREE_THIS_VOLATILE, as a cast
- may make a volatile object later. */
+ occupying a complete byte or bytes on proper boundary. */
if (TYPE_SIZE (type) != 0
&& TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST
- && GET_MODE_CLASS (TYPE_MODE (type)) == MODE_INT
- && flag_strict_volatile_bitfields <= 0)
+ && GET_MODE_CLASS (TYPE_MODE (type)) == MODE_INT)
{
enum machine_mode xmode
= mode_for_size_tree (DECL_SIZE (decl), MODE_INT, 1);