diff options
author | Tamar Christina <tamar.christina@arm.com> | 2022-07-08 21:54:44 -0400 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2022-07-08 21:56:25 -0400 |
commit | 84ff566c63cde517c7d963a554e338531fb059f1 (patch) | |
tree | 8d5643c27b8b20e16a09855636d0a5073a521c56 | |
parent | 71e3daa31cfa35ee58e5899cb00767be92227fd2 (diff) | |
download | gcc-84ff566c63cde517c7d963a554e338531fb059f1.zip gcc-84ff566c63cde517c7d963a554e338531fb059f1.tar.gz gcc-84ff566c63cde517c7d963a554e338531fb059f1.tar.bz2 |
[PATCH][s390]: Fix the usage of store_bit_field in the backend.
Hi All,
I seem to have broken the s390 bootstrap because I added a new parameter to the
store_bit_field function to indicate whether the value the field of is being set
is currently undefined.
If it's undefined we use a subreg instead. In this case the value of false
restores the old behavior.
Ok for master?
Thanks,
Tamar
gcc/ChangeLog:
* config/s390/s390.cc (s390_expand_atomic): Pass false to store_bit_field to
indicate that the value is not undefined.
-rw-r--r-- | gcc/config/s390/s390.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc index 444b1ec..5aaf76a 100644 --- a/gcc/config/s390/s390.cc +++ b/gcc/config/s390/s390.cc @@ -7468,7 +7468,7 @@ s390_expand_atomic (machine_mode mode, enum rtx_code code, case SET: if (ac.aligned && MEM_P (val)) store_bit_field (new_rtx, GET_MODE_BITSIZE (mode), 0, - 0, 0, SImode, val, false); + 0, 0, SImode, val, false, false); else { new_rtx = expand_simple_binop (SImode, AND, new_rtx, ac.modemaski, |