re PR tree-optimization/86034 (wrong code for bit-field manipulation at -Os)
commitc14add82fa4ec24a09e48d56094d9f46310f0809
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 3 Jun 2018 11:51:10 +0000 (3 11:51 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 3 Jun 2018 11:51:10 +0000 (3 11:51 +0000)
tree74d872b2a20990ecc63ce48b040263450fdce3df
parent5b9a3332c27e2f4ea372f2fc53bcbd27e204fb73
re PR tree-optimization/86034 (wrong code for bit-field manipulation at -Os)

PR tree-optimization/86034
* gimple-ssa-store-merging.c (output_merged_store): Convert the RHS to
the unsigned bitfield type in a bit insertion sequence if it does not
have a larger precision than the bitfield size.
(process_store): Also bypass widening conversions for BIT_INSERT_EXPR.

From-SVN: r261128
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr86034.c [new file with mode: 0644]