diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-16 22:52:25 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-16 22:52:25 +0000 |
commit | a420d927846c59b8b089ccdd66361ee2d0fe0962 (patch) | |
tree | 3dd0caaaba78a7ab2d30d7b774f9c8f7ea157dc6 /gcc/common.opt | |
parent | d603fd8614a143dec3d639929c643c3a58997717 (diff) | |
download | ppe42-gcc-a420d927846c59b8b089ccdd66361ee2d0fe0962.tar.gz ppe42-gcc-a420d927846c59b8b089ccdd66361ee2d0fe0962.zip |
* common.opt (-fstrict-volatile-bitfields): new.
* doc/invoke.texi: Document it.
* fold-const.c (optimize_bit_field_compare): For volatile
bitfields, use the field's type to determine the mode, not the
field's size.
* expr.c (expand_assignment): Likewise.
(get_inner_reference): Likewise.
(expand_expr_real_1): Likewise.
* expmed.c (store_fixed_bit_field): Likewise.
(extract_bit_field_1): Likewise.
(extract_fixed_bit_field): Likewise.
* gcc.target/i386/volatile-bitfields-1.c: New.
* gcc.target/i386/volatile-bitfields-2.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160865 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index dc9b342e0ea..968663a43e4 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -629,6 +629,10 @@ floop-block Common Report Var(flag_loop_block) Optimization Enable Loop Blocking transformation +fstrict-volatile-bitfields +Common Report Var(flag_strict_volatile_bitfields) Init(-1) +Force bitfield accesses to match their type width + fguess-branch-probability Common Report Var(flag_guess_branch_prob) Optimization Enable guessing of branch probabilities |