public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3243] Add an frange(type) constructor analogous to the irange version.
@ 2022-10-12 6:51 Aldy Hernandez
0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2022-10-12 6:51 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a901343aa314eb08b362fc6878456d12f96e49b7
commit r13-3243-ga901343aa314eb08b362fc6878456d12f96e49b7
Author: Aldy Hernandez <aldyh@redhat.com>
Date: Tue Oct 11 17:22:40 2022 +0200
Add an frange(type) constructor analogous to the irange version.
gcc/ChangeLog:
* value-range.h (frange::frange): Add constructor taking type.
Diff:
---
gcc/value-range.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gcc/value-range.h b/gcc/value-range.h
index 07a2067898c..9d630e40f78 100644
--- a/gcc/value-range.h
+++ b/gcc/value-range.h
@@ -281,6 +281,7 @@ public:
frange ();
frange (const frange &);
frange (tree, tree, value_range_kind = VR_RANGE);
+ frange (tree type);
frange (tree type, const REAL_VALUE_TYPE &min, const REAL_VALUE_TYPE &max,
value_range_kind = VR_RANGE);
static bool supports_p (const_tree type)
@@ -1059,6 +1060,13 @@ frange::frange (const frange &src)
*this = src;
}
+inline
+frange::frange (tree type)
+{
+ m_discriminator = VR_FRANGE;
+ set_varying (type);
+}
+
// frange constructor from REAL_VALUE_TYPE endpoints.
inline
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-12 6:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12 6:51 [gcc r13-3243] Add an frange(type) constructor analogous to the irange version Aldy Hernandez
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).