diff options
author | Anatoly Sokolov <aesok@post.ru> | 2009-04-25 04:34:27 +0000 |
---|---|---|
committer | Anatoly Sokolov <aesok@post.ru> | 2009-04-25 04:34:27 +0000 |
commit | 545488b571ffeaa66a1d01ddf5d138a8dcb11d54 (patch) | |
tree | bd2fa4d98f26b6a7e12e507b3e3a46601d1ed5c3 /gcc/target-def.h | |
parent | ce3cdca5c96617cc3a19b68b534ee759e03ec1b9 (diff) |
* 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: https://gcc.gnu.org/svn/gcc/trunk@146756 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target-def.h')
-rw-r--r-- | gcc/target-def.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/target-def.h b/gcc/target-def.h index 73e69434d20..7ff4ed624ea 100644 --- a/gcc/target-def.h +++ b/gcc/target-def.h @@ -1,5 +1,5 @@ /* Default initializers for a generic GCC target. - Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it @@ -654,6 +654,10 @@ #define TARGET_HARD_REGNO_SCRATCH_OK default_hard_regno_scratch_ok #endif +#ifndef TARGET_CASE_VALUES_THRESHOLD +#define TARGET_CASE_VALUES_THRESHOLD default_case_values_threshold +#endif + /* C specific. */ #ifndef TARGET_C_MODE_FOR_SUFFIX #define TARGET_C_MODE_FOR_SUFFIX default_mode_for_suffix @@ -918,6 +922,7 @@ TARGET_EXPAND_TO_RTL_HOOK, \ TARGET_INSTANTIATE_DECLS, \ TARGET_HARD_REGNO_SCRATCH_OK, \ + TARGET_CASE_VALUES_THRESHOLD, \ TARGET_C, \ TARGET_CXX, \ TARGET_EMUTLS, \ |