This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r176824 - in /trunk/gcc: ChangeLog Makefile.in ...
- From: aldyh at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 27 Jul 2011 13:22:10 -0000
- Subject: r176824 - in /trunk/gcc: ChangeLog Makefile.in ...
Author: aldyh
Date: Wed Jul 27 13:22:09 2011
New Revision: 176824
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176824
Log:
* params.h (ALLOW_STORE_DATA_RACES): New.
* params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
* Makefile.in (expr.o): Depend on PARAMS_H.
* machmode.h (get_best_mode): Add argument.
* fold-const.c (optimize_bit_field_compare): Add argument to
get_best_mode.
(fold_truthop): Same.
* ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
* expr.c (emit_group_store): Same.
(copy_blkmode_from_reg): Same.
(write_complex_part): Same.
(optimize_bitfield_assignment_op): Add argument.
Add argument to get_best_mode.
(get_bit_range): New.
(expand_assignment): Calculate maxbits and pass it down
accordingly.
(store_field): New argument.
(expand_expr_real_2): New argument to store_field.
Include params.h.
* expr.h (store_bit_field): New argument.
* stor-layout.c (get_best_mode): Restrict mode expansion by taking
into account maxbits.
* calls.c (store_unaligned_arguments_into_pseudos): New argument
to store_bit_field.
* expmed.c (store_bit_field_1): New argument. Use it.
(store_bit_field): Same.
(store_fixed_bit_field): Same.
(store_split_bit_field): Same.
(extract_bit_field_1): Pass new argument to get_best_mode.
(extract_bit_field): Same.
* stmt.c (store_bit_field): Pass new argument to store_bit_field.
* doc/invoke.texi: Document parameter allow-store-data-races.
Added:
trunk/gcc/testsuite/c-c++-common/cxxbitfields-2.c
trunk/gcc/testsuite/c-c++-common/cxxbitfields-3.c
trunk/gcc/testsuite/c-c++-common/cxxbitfields-4.c
trunk/gcc/testsuite/c-c++-common/cxxbitfields-5.c
trunk/gcc/testsuite/c-c++-common/cxxbitfields.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/calls.c
trunk/gcc/doc/invoke.texi
trunk/gcc/expmed.c
trunk/gcc/expr.c
trunk/gcc/expr.h
trunk/gcc/fold-const.c
trunk/gcc/ifcvt.c
trunk/gcc/machmode.h
trunk/gcc/params.def
trunk/gcc/params.h
trunk/gcc/stmt.c
trunk/gcc/stor-layout.c