diff options
author | espindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-16 19:00:56 +0000 |
---|---|---|
committer | espindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-16 19:00:56 +0000 |
commit | 0bb0fa6a44492ac27f919f3879419d79c6000b9e (patch) | |
tree | bfae2e8c332127de0af3c6fd00f7f849a7aa554b /gcc/gcc.c | |
parent | 549e9b78a62a0d7655f3ff2f58e3b10b832e0d98 (diff) | |
download | gcc-0bb0fa6a44492ac27f919f3879419d79c6000b9e.tar.gz |
* 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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109761 138bc75d-0d04-0410-961f-82ee72b054a4
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; } |