gcc/contrib
Lawrence Crowl d4ac4ce2d3 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.)

From-SVN: r193069
2012-11-01 21:02:15 +00:00
..
reghunt Fix unportable shell quoting. 2010-09-27 20:19:41 +00:00
regression * btest-gcc.sh (TESTLOGS): Make gfortran.sum optional. 2012-08-26 19:30:44 +00:00
testsuite-management This patch renames sbitmap iterators to unify them with the bitmap iterators. 2012-11-01 21:02:15 +00:00
ChangeLog validate_failures.py: Fix parsing of summary lines. 2012-10-31 12:37:06 -04:00
ChangeLog.tree-ssa Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
analyze_brprob compareSumTests3: Changed to GPLv3. 2007-12-26 21:42:35 +00:00
check_GNU_style.sh check_GNU_style.sh: Remove temporay file upon exit. 2012-10-02 09:41:28 +02:00
check_makefile_deps.sh check_makefile_deps.sh: Look for c-common.o in c-family/. 2012-06-19 20:01:23 +00:00
check_warning_flags.sh Avoid tr '\n', for Solaris /usr/bin/tr. 2010-01-16 14:42:32 +00:00
compare-all-tests MAINTAINERS (crx port, [...]): Remove. 2011-03-22 19:58:18 +00:00
compare-debug Remove any .comment sections if the first cmp failed 2012-05-25 04:47:05 -07:00
compareSumTests3 compareSumTests3: Changed to GPLv3. 2007-12-26 21:42:35 +00:00
compare_tests compare_tests: Append '/' to make 'find' traverse symlinked directories. 2012-04-24 07:22:41 +00:00
config-list.mk contrib-list.mk (LIST): Remove arm-freebsd6, arm-linux, arm-ecos-elf, arm-rtems, arm-elf and arm-wince-pe. 2012-09-26 23:03:44 +01:00
dg-cmp-results.sh dg-cmp-results.sh: Do not print usage if either .sum file cannot be opened... 2008-11-19 09:00:42 +11:00
dg-extract-results.sh * dg-extract-results.sh: Handle KFAILs. 2012-04-06 19:39:52 +00:00
dglib.pm compareSumTests3: Changed to GPLv3. 2007-12-26 21:42:35 +00:00
download_ecj sourcebuild.texi (libgcj Tests): Don't mention jacks. 2007-01-15 21:49:31 +00:00
download_prerequisites download_prerequisites: New script. 2010-06-02 11:14:19 +00:00
filter_gcc_for_doxygen Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
filter_knr2ansi.pl filter_params.pl: Typo fix. 2005-07-14 13:38:20 +10:00
filter_params.pl filter_params.pl: Typo fix. 2005-07-14 13:38:20 +10:00
gcc.doxy gcc.doxy: Rename from tree-ssa.doxy. 2007-08-10 17:08:32 -04:00
gcc_build compareSumTests3: Changed to GPLv3. 2007-12-26 21:42:35 +00:00
gcc_update * gcc_update: Use $GCC_SVN to retrieve branch and revision. 2012-05-09 11:35:00 -04:00
gennews * gennews (files): Add files for GCC 4.7. 2012-03-13 23:21:38 +00:00
gthr_supp_vxw_5x.c Merge basic-improvements-branch to trunk 2002-12-16 18:23:00 +00:00
index-prop
make_sunver.pl * make_sunver.pl: Add missing newline at the end of extern "C++" block. 2012-09-04 13:56:06 +00:00
mklog The new mklog script prints three spaces after the date part, which is wrong. 2012-06-06 08:50:55 -04:00
paranoia.cc ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h. 2011-04-25 18:05:37 +00:00
patch_tester.sh patch_tester.sh (nopristinecache): New shell var, set according to presence or absence of new -nopristinecache option. 2011-01-26 03:46:07 +00:00
prepare_patch.sh compareSumTests3: Changed to GPLv3. 2007-12-26 21:42:35 +00:00
repro_fail This patch adds two common shortcuts to the failure reproducer 2012-02-10 10:52:03 -05:00
test_installed * test_installed: Adjust to the move from g77 to gfortran. 2007-02-26 20:40:13 +00:00
test_recheck New contrib/test_recheck script to rerun unsuccessful tests. 2010-10-11 18:04:01 +00:00
test_summary check_jni_methods.sh.in: Don't use diff -U. 2010-06-04 14:01:22 +00:00
texi2pod.pl Improve formatting of manuals. 2010-09-22 20:22:51 +00:00
uninclude compareSumTests3: Changed to GPLv3. 2007-12-26 21:42:35 +00:00
warn_summary warn_summary (srcdirFilter): Add fixincludes, sim, newlib and mpfr. 2007-09-22 01:19:10 +00:00