diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2017-07-29 01:39:31 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2017-07-29 01:39:31 +0000 |
commit | 3fe793df7c4952bde47b2811210b7e2c2cc0ff97 (patch) | |
tree | ce4087bee2f7a4036894fef11f1f55c23a5d9a14 /gcc/fortran | |
parent | 22a7303de24b120c7124d0b2a4ad778bd452319e (diff) | |
download | gcc-3fe793df7c4952bde47b2811210b7e2c2cc0ff97.zip gcc-3fe793df7c4952bde47b2811210b7e2c2cc0ff97.tar.gz gcc-3fe793df7c4952bde47b2811210b7e2c2cc0ff97.tar.bz2 |
simplify the bitmap alloc_stat functions with c++
gcc/fortran/ChangeLog:
2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* resolve.c (find_reachable_labels): Adjust.
gcc/ChangeLog:
2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* bitmap.c (bitmap_obstack_alloc_stat): Rename to bitmap_alloc.
(bitmap_gc_alloc_stat): Rename to bitmap_gc_alloc.
* bitmap.h (bitmap_obstack_alloc_stat): Adjust prototype.
(bitmap_gc_alloc_stat): Likewise.
(BITMAP_ALLOC, BITMAP_GGC_ALLOC): Adjust.
From-SVN: r250709
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/fortran/resolve.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 22b3f2c..2b9aba6 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> + + * resolve.c (find_reachable_labels): Adjust. + 2017-07-25 Jakub Jelinek <jakub@redhat.com> * ioparm.def: Use 1U << 31 instead of 1 << 31 as flags2 mask. diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 12903a4..5caf767 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -9098,7 +9098,7 @@ find_reachable_labels (gfc_code *block) if (!block) return; - cs_base->reachable_labels = bitmap_obstack_alloc (&labels_obstack); + cs_base->reachable_labels = bitmap_alloc (&labels_obstack); /* Collect labels in this block. We don't keep those corresponding to END {IF|SELECT}, these are checked in resolve_branch by going |