Commit 804a4e13 by Kaveh R. Ghazi Committed by Jeff Law

c-decl.c (init_decl_processing): Remove unneeded &.

        * c-decl.c (init_decl_processing): Remove unneeded &.
        * alpha.h (alpha_initialize_trampoline): Provide prototype.
        * except.c (set_exception_lang_code, set_exception_version_code):
        Change parameter from `short' to `int' to avoid using a gcc
        extension.
        * except.h (set_exception_lang_code, set_exception_version_code):
        Likewise for prototypes.
        * flow.c (count_reg_references): Remove unused variables `regno'
        and `i'.
        * gcse.c (hash_scan_insn): Declare parameter `in_libcall_block'.
        * prefix.c (translate_name): Cast the result of `alloca'.
        * varray.h (VARRAY_FREE): Reimplement as a `do-while(0)' statement.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>

From-SVN: r21781
parent f5220a5d
Mon Aug 17 10:06:11 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
Jeff Law <law@cygnus.com>
* c-decl.c (init_decl_processing): Remove unneeded &.
* alpha.h (alpha_initialize_trampoline): Provide prototype.
* except.c (set_exception_lang_code, set_exception_version_code):
Change parameter from `short' to `int' to avoid using a gcc
extension.
* except.h (set_exception_lang_code, set_exception_version_code):
Likewise for prototypes.
* flow.c (count_reg_references): Remove unused variables `regno'
and `i'.
* gcse.c (hash_scan_insn): Declare parameter `in_libcall_block'.
* prefix.c (translate_name): Cast the result of `alloca'.
* varray.h (VARRAY_FREE): Reimplement as a `do-while(0)' statement.
Mon Aug 17 09:23:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> Mon Aug 17 09:23:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* config/m68k/m68k.c: Include "system.h" instead of <stdio.h>. * config/m68k/m68k.c: Include "system.h" instead of <stdio.h>.
......
...@@ -3533,7 +3533,7 @@ init_decl_processing () ...@@ -3533,7 +3533,7 @@ init_decl_processing ()
incomplete_decl_finalize_hook = finish_incomplete_decl; incomplete_decl_finalize_hook = finish_incomplete_decl;
lang_get_alias_set = &c_get_alias_set; lang_get_alias_set = c_get_alias_set;
} }
/* Return a definition for a builtin function named NAME and whose data type /* Return a definition for a builtin function named NAME and whose data type
......
...@@ -1291,6 +1291,7 @@ do { \ ...@@ -1291,6 +1291,7 @@ do { \
#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \ #define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \
alpha_initialize_trampoline (TRAMP, FNADDR, CXT, 16, 24, 8) alpha_initialize_trampoline (TRAMP, FNADDR, CXT, 16, 24, 8)
extern void alpha_initialize_trampoline ();
/* A C expression whose value is RTL representing the value of the return /* A C expression whose value is RTL representing the value of the return
address for the frame COUNT steps up from the current frame. address for the frame COUNT steps up from the current frame.
......
...@@ -1930,23 +1930,17 @@ static short language_code = 0; ...@@ -1930,23 +1930,17 @@ static short language_code = 0;
static short version_code = 0; static short version_code = 0;
/* This routine will set the language code for exceptions. */ /* This routine will set the language code for exceptions. */
#ifdef __STDC__ void
void set_exception_lang_code (short code) set_exception_lang_code (code)
#else int code;
void set_exception_lang_code (code)
short code;
#endif
{ {
language_code = code; language_code = code;
} }
/* This routine will set the language version code for exceptions. */ /* This routine will set the language version code for exceptions. */
#ifdef __STDC__ void
void set_exception_version_code (short code) set_exception_version_code (code)
#else
void set_exception_version_code (code)
short code; short code;
#endif
{ {
version_code = code; version_code = code;
} }
......
...@@ -149,8 +149,8 @@ extern int doing_eh PROTO ((int)); ...@@ -149,8 +149,8 @@ extern int doing_eh PROTO ((int));
/* Toplevel initialization for EH. */ /* Toplevel initialization for EH. */
void set_exception_lang_code PROTO((short)); void set_exception_lang_code PROTO((int));
void set_exception_version_code PROTO((short)); void set_exception_version_code PROTO((int));
/* A list of handlers asocciated with an exception region. HANDLER_LABEL /* A list of handlers asocciated with an exception region. HANDLER_LABEL
is the the label that control should be transfered to if the data is the the label that control should be transfered to if the data
......
...@@ -4066,8 +4066,6 @@ count_reg_references (x) ...@@ -4066,8 +4066,6 @@ count_reg_references (x)
rtx x; rtx x;
{ {
register RTX_CODE code; register RTX_CODE code;
register int regno;
int i;
retry: retry:
code = GET_CODE (x); code = GET_CODE (x);
......
...@@ -255,7 +255,7 @@ translate_name (name) ...@@ -255,7 +255,7 @@ translate_name (name)
keylen++) keylen++)
; ;
key = alloca (keylen + 1); key = (char *) alloca (keylen + 1);
strncpy (key, &name[1], keylen); strncpy (key, &name[1], keylen);
key[keylen] = 0; key[keylen] = 0;
......
...@@ -124,7 +124,8 @@ extern varray_type varray_init PROTO ((size_t, size_t, const char *)); ...@@ -124,7 +124,8 @@ extern varray_type varray_init PROTO ((size_t, size_t, const char *));
/* Free up memory allocated by the virtual array, but do not free any of the /* Free up memory allocated by the virtual array, but do not free any of the
elements involved. */ elements involved. */
#define VARRAY_FREE(vp) ((vp) && (free (vp), (vp = (varray_type)0))) #define VARRAY_FREE(vp) \
do { if (vp) { free (vp); vp = (varray_type)0; } } while (0)
/* Grow/shrink the virtual array VA to N elements. */ /* Grow/shrink the virtual array VA to N elements. */
extern varray_type varray_grow PROTO((varray_type, size_t)); extern varray_type varray_grow PROTO((varray_type, size_t));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment