diff options
author | Rafael Espindola <espindola@gcc.gnu.org> | 2006-01-16 19:00:56 +0000 |
---|---|---|
committer | Rafael Espindola <espindola@gcc.gnu.org> | 2006-01-16 19:00:56 +0000 |
commit | 4c360e1f8b923ecceb6a21d6f84bc0468fbddcc6 (patch) | |
tree | bfae2e8c332127de0af3c6fd00f7f849a7aa554b /gcc/gcc.c | |
parent | 0efa4029c4390bacd5ac9659cbb30238d0975880 (diff) | |
download | gcc-4c360e1f8b923ecceb6a21d6f84bc0468fbddcc6.tar.gz |
jvspec.c (lang_specific_spec_functions): remove
* gcc/java/jvspec.c (lang_specific_spec_functions): remove
* gcc/cppspec.c (lang_specific_spec_functions): remove
* gcc/gcc.c (lookup_spec_function): use static_spec_functions directelly
* gcc/gcc.h (lang_specific_spec_functions): remove
* gcc/gccspec.c (lang_specific_spec_functions): remove
* gcc/cp/g++spec.c (lang_specific_spec_functions): remove
* gcc/fortran/gfortranspec.c (lang_specific_spec_functions): remove
* gcc/treelang/spec.c (lang_specific_spec_functions): remove
From-SVN: r109761
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index 56f12901fef..392bac4b591 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -5353,20 +5353,11 @@ do_spec_1 (const char *spec, int inswitch, const char *soft_matched_part) static const struct spec_function * lookup_spec_function (const char *name) { - static const struct spec_function * const spec_function_tables[] = - { - static_spec_functions, - lang_specific_spec_functions, - }; const struct spec_function *sf; - unsigned int i; - for (i = 0; i < ARRAY_SIZE (spec_function_tables); i++) - { - for (sf = spec_function_tables[i]; sf->name != NULL; sf++) - if (strcmp (sf->name, name) == 0) - return sf; - } + for (sf = static_spec_functions; sf->name != NULL; sf++) + if (strcmp (sf->name, name) == 0) + return sf; return NULL; } |