29 Jun 2012 16:35
[patch] Remove CASE_USE_BIT_TESTS target macro
Steven Bosscher <stevenb.gcc <at> gmail.com>
2012-06-29 14:35:49 GMT
2012-06-29 14:35:49 GMT
Hello, This patch removes the CASE_USE_BIT_TESTS target macro. The default value of the macro is defined in stmt.c, where the only user of the macro is also. No target re-defines the macro. (I wonder if the test is necessary at all. AFAICT all targets support shifts in word_mode. The macro was originally written to test for ashlsi3, which is _not_ supported on all targets -- but word_mode shifts are. Oh well, another day perhaps...) Bootstrapped and tested on powerpc64-unknown-linux-gnu. OK for trunk? Ciao! Steven * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ... (expand_switch_using_bit_tests_p): ...here. * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation. * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate. Index: stmt.c =================================================================== --- stmt.c (revision 189073) +++ stmt.c (working copy) <at> <at> -1722,13 +1722,6 <at> <at> add_case_node (struct case_node *head, tree type, /* Maximum number of case bit tests. */ #define MAX_CASE_BIT_TESTS 3 -/* By default, enable case bit tests on targets with ashlsi3. */(Continue reading)
RSS Feed