aboutsummaryrefslogtreecommitdiff
path: root/gcc/gen-protos.c
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1996-08-15 18:59:44 +0000
committerDoug Evans <dje@gnu.org>1996-08-15 18:59:44 +0000
commit1271a76a07ea23917a755aa07737fc838051bb80 (patch)
treeaeaea36bff4fe3b921c073ce5557a6a162e972d7 /gcc/gen-protos.c
parent3f8b69de79b62b2295851937aafbccf3f0fefefb (diff)
downloadgcc-1271a76a07ea23917a755aa07737fc838051bb80.zip
gcc-1271a76a07ea23917a755aa07737fc838051bb80.tar.gz
gcc-1271a76a07ea23917a755aa07737fc838051bb80.tar.bz2
sys-protos.h (gethostid): Make return type `int' ifdef __alpha__.
* sys-protos.h (gethostid): Make return type `int' ifdef __alpha__. * gen-protos.c: Delete support for SYS_PROTO_OVERRIDES. * alpha/alpha.h (SYS_PROTO_OVERRIDES): Delete. From-SVN: r12642
Diffstat (limited to 'gcc/gen-protos.c')
-rw-r--r--gcc/gen-protos.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/gcc/gen-protos.c b/gcc/gen-protos.c
index 47cf87e..0284c18 100644
--- a/gcc/gen-protos.c
+++ b/gcc/gen-protos.c
@@ -25,15 +25,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
int verbose = 0;
char *progname;
-/* Table of prototypes that override sys-protos.h. */
-static char *overrides[] =
-{
-#ifdef SYS_PROTO_OVERRIDES
- SYS_PROTO_OVERRIDES
-#endif
- 0
-};
-
#define HASH_SIZE 2503 /* a prime */
int hash_tab[HASH_SIZE];
int next_index;
@@ -171,29 +162,6 @@ main (argc, argv)
fprintf (outf, " {\"\", \"\", \"\"},\n");
next_index = 1;
- /* Output the overriding prototypes first so fix-header will use them
- in preference to the default ones. */
- /* ??? Two copies of the prototype are output. This doesn't cause any
- problems, but one might wish to avoid outputting the second one. */
-
- for (optr = overrides; *optr; ++optr)
- {
- /* Using sstring's here may be overkill but parse_fn_proto modifies
- the input string. */
- linebuf.ptr = linebuf.base;
- make_sstring_space (&linebuf, strlen (*optr) + 1);
- strcpy (linebuf.base, *optr);
- linebuf.ptr = linebuf.base + strlen (*optr);
-
- if (! parse_fn_proto (linebuf.base, linebuf.ptr, &fn_decl))
- continue;
-
- add_hash (fn_decl.fname);
-
- fprintf (outf, " {\"%s\", \"%s\", \"%s\"},\n",
- fn_decl.fname, fn_decl.rtype, fn_decl.params);
- }
-
for (;;)
{
int c = skip_spaces (inf, ' ');