* target.h (struct gcc_target): Add case_values_threshold field.
authoraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Apr 2009 04:34:27 +0000 (04:34 +0000)
committeraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Apr 2009 04:34:27 +0000 (04:34 +0000)
commit906bb5c363f525c69bf1611dc6489036796cd154
treebd2fa4d98f26b6a7e12e507b3e3a46601d1ed5c3
parentbff7ea4aca62f23ab3f7e7f02909437c66f00930
* target.h (struct gcc_target): Add case_values_threshold field.
* target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
(TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
* targhooks.c (default_case_values_threshold): New function.
* targhooks.h (default_case_values_threshold): Declare function.
* stmt.c (expand_case): Use case_values_threshold target hook.
* expr.h (case_values_threshold): Remove declartation.
* expr.c (case_values_threshold): Remove function.
* doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.

* config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
* config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
(avr_case_values_threshold): Declare as static.
* config/avr/avr-protos.h (avr_case_values_threshold): Remove.

* config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
* config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
(mn10300_case_values_threshold): New function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146756 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/ChangeLog
gcc/config/avr/avr-protos.h
gcc/config/avr/avr.c
gcc/config/avr/avr.h
gcc/config/mn10300/mn10300.c
gcc/config/mn10300/mn10300.h
gcc/doc/tm.texi
gcc/expr.c
gcc/expr.h
gcc/stmt.c
gcc/target-def.h
gcc/target.h
gcc/targhooks.c
gcc/targhooks.h