diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-09-06 17:50:49 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-09-06 17:50:49 +0200 |
commit | dce6f6a974d4ecce8491c989c35e23c59223f762 (patch) | |
tree | 9e062b5f0fa44e7cf116d6a52c53be5bf39ee2fb /gcc | |
parent | 3ad9948b3e716885ce66bdf1c8e053880a843a2b (diff) | |
download | gcc-dce6f6a974d4ecce8491c989c35e23c59223f762.zip gcc-dce6f6a974d4ecce8491c989c35e23c59223f762.tar.gz gcc-dce6f6a974d4ecce8491c989c35e23c59223f762.tar.bz2 |
Handle BITINT_TYPE in build_{,minus_}one_cst [PR102989]
Recent match.pd changes trigger ICE in build_minus_one_cst, apparently
I forgot to handle BITINT_TYPE in these (while I've handled it in
build_zero_cst).
2023-09-06 Jakub Jelinek <jakub@redhat.com>
PR c/102989
* tree.cc (build_one_cst, build_minus_one_cst): Handle BITINT_TYPE
like INTEGER_TYPE.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree.cc b/gcc/tree.cc index 9651ee0..b34d75f 100644 --- a/gcc/tree.cc +++ b/gcc/tree.cc @@ -2546,7 +2546,7 @@ build_one_cst (tree type) { case INTEGER_TYPE: case ENUMERAL_TYPE: case BOOLEAN_TYPE: case POINTER_TYPE: case REFERENCE_TYPE: - case OFFSET_TYPE: + case OFFSET_TYPE: case BITINT_TYPE: return build_int_cst (type, 1); case REAL_TYPE: @@ -2599,7 +2599,7 @@ build_minus_one_cst (tree type) { case INTEGER_TYPE: case ENUMERAL_TYPE: case BOOLEAN_TYPE: case POINTER_TYPE: case REFERENCE_TYPE: - case OFFSET_TYPE: + case OFFSET_TYPE: case BITINT_TYPE: return build_int_cst (type, -1); case REAL_TYPE: |