diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4587da982b4..4c6e926d93f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2020-01-08 David Malcolm + + * sbitmap.h (auto_sbitmap): Add operator const_sbitmap. + 2020-01-08 Jim Wilson * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out diff --git a/gcc/sbitmap.h b/gcc/sbitmap.h index e3f514f0ebf..9c4215db29b 100644 --- a/gcc/sbitmap.h +++ b/gcc/sbitmap.h @@ -295,6 +295,7 @@ public: /* Allow calling sbitmap functions on our bitmap. */ operator sbitmap () { return m_bitmap; } + operator const_sbitmap () const { return m_bitmap; } private: /* Prevent making a copy that refers to our sbitmap. */