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 | |
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
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/g++spec.c | 6 | ||||
-rw-r--r-- | gcc/cppspec.c | 6 | ||||
-rw-r--r-- | gcc/fortran/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/fortran/gfortranspec.c | 2 | ||||
-rw-r--r-- | gcc/gcc.c | 15 | ||||
-rw-r--r-- | gcc/gcc.h | 3 | ||||
-rw-r--r-- | gcc/gccspec.c | 6 | ||||
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/jvspec.c | 6 | ||||
-rw-r--r-- | gcc/treelang/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/treelang/spec.c | 2 |
13 files changed, 26 insertions, 43 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 057ad9240cd..d1ce375b2be 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2006-01-16 Rafael Ãvila de EspÃndola <rafael.espindola@gmail.com> + + * cppspec.c (lang_specific_spec_functions): remove + * gcc.c (lookup_spec_function): use static_spec_functions directelly + * gcc.h (lang_specific_spec_functions): remove + * gccspec.c (lang_specific_spec_functions): remove + 2005-01-16 Paolo Bonzini <bonzini@gnu.org> * combine.c (record_value_for_reg): Invalidate registers diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f26f38441bb..5c695a636fc 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2006-01-16 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> + + * g++spec.c (lang_specific_spec_functions): remove + 2006-01-15 Gabriel Dos Reis <gdr@integrable-solutions.net> * decl.c (check_initializer): Fix thinko. diff --git a/gcc/cp/g++spec.c b/gcc/cp/g++spec.c index ec7cefcb3e6..43f429f8f8b 100644 --- a/gcc/cp/g++spec.c +++ b/gcc/cp/g++spec.c @@ -343,9 +343,3 @@ int lang_specific_pre_link (void) /* Not used for C++. */ /* Number of extra output files that lang_specific_pre_link may generate. */ int lang_specific_extra_outfiles = 0; /* Not used for C++. */ - -/* Table of language-specific spec functions. */ -const struct spec_function lang_specific_spec_functions[] = -{ - { 0, 0 } -}; diff --git a/gcc/cppspec.c b/gcc/cppspec.c index 69626279c36..90b721cd36b 100644 --- a/gcc/cppspec.c +++ b/gcc/cppspec.c @@ -208,9 +208,3 @@ int lang_specific_pre_link (void) /* Number of extra output files that lang_specific_pre_link may generate. */ int lang_specific_extra_outfiles = 0; /* Not used for cpp. */ - -/* Table of language-specific spec functions. */ -const struct spec_function lang_specific_spec_functions[] = -{ - { 0, 0 } -}; diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 3bcbef224a4..d9b12df0b3b 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2006-01-16 Rafael Ãvila de EspÃndola <rafael.espindola@gmail.com> + + * gfortranspec.c (lang_specific_spec_functions): remove + 2006-01-16 Richard Guenther <rguenther@suse.de> * trans-stmt.c (gfc_trans_if_1): Use fold_buildN and build_int_cst. diff --git a/gcc/fortran/gfortranspec.c b/gcc/fortran/gfortranspec.c index 259a0b8efaf..dfb84667bc2 100644 --- a/gcc/fortran/gfortranspec.c +++ b/gcc/fortran/gfortranspec.c @@ -100,8 +100,6 @@ static void append_arg (const char *); static int g77_newargc; static const char **g77_newargv; -const struct spec_function lang_specific_spec_functions[] = {{0,0}}; - /* --- This comes from gcc.c (2.8.1) verbatim: */ /* This defines which switch letters take arguments. */ 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; } diff --git a/gcc/gcc.h b/gcc/gcc.h index 8f5ae810d36..2664971c160 100644 --- a/gcc/gcc.h +++ b/gcc/gcc.h @@ -75,9 +75,6 @@ extern int n_infiles; /* Number of extra output files that lang_specific_pre_link may generate. */ extern int lang_specific_extra_outfiles; -/* Table of language-specific spec functions. */ -extern const struct spec_function lang_specific_spec_functions[]; - /* A vector of corresponding output files is made up later. */ extern const char **outfiles; diff --git a/gcc/gccspec.c b/gcc/gccspec.c index 4292d4b040a..e6d5e3ea30e 100644 --- a/gcc/gccspec.c +++ b/gcc/gccspec.c @@ -102,9 +102,3 @@ lang_specific_pre_link (void) /* Number of extra output files that lang_specific_pre_link may generate. */ int lang_specific_extra_outfiles = 0; /* Not used for C. */ - -/* Table of language-specific spec functions. */ -const struct spec_function lang_specific_spec_functions[] = -{ - { 0, 0 } -}; diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index b310af7fb55..05d7f51f78f 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2006-01-16 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> + + * jvspec.c (lang_specific_spec_functions): remove + 2006-01-06 Tom Tromey <tromey@redhat.com> * gcj.texi (Arrays): Added more documentation for diff --git a/gcc/java/jvspec.c b/gcc/java/jvspec.c index 4661d6cdad1..d325feeffd8 100644 --- a/gcc/java/jvspec.c +++ b/gcc/java/jvspec.c @@ -635,9 +635,3 @@ lang_specific_pre_link (void) } return err; } - -/* Table of language-specific spec functions. */ -const struct spec_function lang_specific_spec_functions[] = -{ - { 0, 0 } -}; diff --git a/gcc/treelang/ChangeLog b/gcc/treelang/ChangeLog index f1eaa276e7d..eca16df634e 100644 --- a/gcc/treelang/ChangeLog +++ b/gcc/treelang/ChangeLog @@ -1,3 +1,7 @@ +2006-01-16 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> + + * spec.c (lang_specific_spec_functions): remove + 2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> * Make-lang.in (treelang.distdir): Remove. diff --git a/gcc/treelang/spec.c b/gcc/treelang/spec.c index 66b128eee08..79178548b1a 100644 --- a/gcc/treelang/spec.c +++ b/gcc/treelang/spec.c @@ -25,8 +25,6 @@ Boston, MA 02110-1301, USA. */ #include "coretypes.h" #include "tm.h" -const struct spec_function lang_specific_spec_functions[] = {{0,0}}; - void lang_specific_driver (int *in_argc, const char *const **in_argv, int *in_added_libraries ATTRIBUTE_UNUSED) |