This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r193069 - in /trunk: contrib/testsuite-manageme...


Author: crowl
Date: Thu Nov  1 21:02:15 2012
New Revision: 193069

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193069
Log:
This patch renames sbitmap iterators to unify them with the bitmap iterators.

Remove the unused EXECUTE_IF_SET_IN_SBITMAP_REV, which has an unconventional
interface.

Rename the sbitmap_iter_* functions to match bitmap's bmp_iter_* functions.
Add an additional parameter to the initialization and next functions to
match the interface in bmp_iter_*.  This extra parameter is mostly hidden
by the use of the EXECUTE_IF macros.

Rename the EXECUTE_IF_SET_IN_SBITMAP macro to EXECUTE_IF_SET_IN_BITMAP.  Its
implementation is now identical to that in bitmap.h.  To prevent redefinition
errors, both definitions are now guarded by #ifndef.  An alternate strategy
is to simply include bitmap.h from sbitmap.h.  As this would increase build
time, I have elected to use the #ifndef version.  I do not have a strong
preference here.

The sbitmap_iterator type is still distinctly named because it is often
declared in contexts where the bitmap type is not obvious.  There are less
than 40 uses of this type, so the burden to modify it when changing bitmap
types is not large.

Tested on x86-64, config-list.mk testing.


Index: gcc/ChangeLog

2012-10-31  Lawrence Crowl  <crowl@google.com>

	* sbitmap.h (sbitmap_iter_init): Rename bmp_iter_set_init and add
	unused parameter to match bitmap iterator.  Update callers.
	(sbitmap_iter_cond): Rename bmp_iter_set.  Update callers.
	(sbitmap_iter_next): Rename bmp_iter_next and add unused parameter to
	match bitmap iterator.  Update callers.
	(EXECUTE_IF_SET_IN_SBITMAP_REV): Remove unused.
	(EXECUTE_IF_SET_IN_SBITMAP): Rename EXECUTE_IF_SET_IN_BITMAP and
	adjust to be identical to the definition in bitmap.h.  Conditionalize
	the definition based on not having been defined.  Update callers.
	* bitmap.h (EXECUTE_IF_SET_IN_BITMAP): Conditionalize the definition
	based on not having been defined.  (To match the above.)


Modified:
    trunk/contrib/testsuite-management/x86_64-unknown-linux-gnu.xfail
    trunk/gcc/ChangeLog
    trunk/gcc/bitmap.h
    trunk/gcc/bt-load.c
    trunk/gcc/config/i386/i386.c
    trunk/gcc/ddg.c
    trunk/gcc/dse.c
    trunk/gcc/ebitmap.c
    trunk/gcc/ebitmap.h
    trunk/gcc/gcse.c
    trunk/gcc/ira-lives.c
    trunk/gcc/lower-subreg.c
    trunk/gcc/lra-lives.c
    trunk/gcc/modulo-sched.c
    trunk/gcc/sbitmap.c
    trunk/gcc/sbitmap.h
    trunk/gcc/sched-rgn.c
    trunk/gcc/tree-into-ssa.c
    trunk/gcc/tree-ssa-reassoc.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]