summaryrefslogtreecommitdiffstats
path: root/gcc/common.opt
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-16 22:52:25 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-16 22:52:25 +0000
commita420d927846c59b8b089ccdd66361ee2d0fe0962 (patch)
tree3dd0caaaba78a7ab2d30d7b774f9c8f7ea157dc6 /gcc/common.opt
parentd603fd8614a143dec3d639929c643c3a58997717 (diff)
downloadppe42-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.opt4
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
OpenPOWER on IntegriCloud