aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRafael Espindola <espindola@gcc.gnu.org>2006-01-16 19:00:56 +0000
committerRafael Espindola <espindola@gcc.gnu.org>2006-01-16 19:00:56 +0000
commit4c360e1f8b923ecceb6a21d6f84bc0468fbddcc6 (patch)
treebfae2e8c332127de0af3c6fd00f7f849a7aa554b /gcc
parent0efa4029c4390bacd5ac9659cbb30238d0975880 (diff)
downloadgcc-4c360e1f8b923ecceb6a21d6f84bc0468fbddcc6.zip
gcc-4c360e1f8b923ecceb6a21d6f84bc0468fbddcc6.tar.gz
gcc-4c360e1f8b923ecceb6a21d6f84bc0468fbddcc6.tar.bz2
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')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/g++spec.c6
-rw-r--r--gcc/cppspec.c6
-rw-r--r--gcc/fortran/ChangeLog4
-rw-r--r--gcc/fortran/gfortranspec.c2
-rw-r--r--gcc/gcc.c15
-rw-r--r--gcc/gcc.h3
-rw-r--r--gcc/gccspec.c6
-rw-r--r--gcc/java/ChangeLog4
-rw-r--r--gcc/java/jvspec.c6
-rw-r--r--gcc/treelang/ChangeLog4
-rw-r--r--gcc/treelang/spec.c2
13 files changed, 26 insertions, 43 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 057ad92..d1ce375 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 f26f384..5c695a6 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 ec7cefc..43f429f 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 6962627..90b721c 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 3bcbef2..d9b12df 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 259a0b8..dfb8466 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 56f1290..392bac4 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 8f5ae81..2664971 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 4292d4b..e6d5e3e 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 b310af7..05d7f51 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 4661d6c..d325fee 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 f1eaa27..eca16df 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 66b128e..7917854 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)