public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3758] Handle BITINT_TYPE in build_{, minus_}one_cst [PR102989]
@ 2023-09-06 15:58 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2023-09-06 15:58 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:dce6f6a974d4ecce8491c989c35e23c59223f762
commit r14-3758-gdce6f6a974d4ecce8491c989c35e23c59223f762
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Sep 6 17:50:49 2023 +0200
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.
Diff:
---
gcc/tree.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/tree.cc b/gcc/tree.cc
index 9651ee034954..b34d75f8c85c 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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-06 15:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-06 15:58 [gcc r14-3758] Handle BITINT_TYPE in build_{, minus_}one_cst [PR102989] Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).