]> gcc.gnu.org Git - gcc.git/commitdiff
c-decl.c (init_decl_processing): Remove unneeded &.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 17 Aug 1998 09:08:32 +0000 (09:08 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 17 Aug 1998 09:08:32 +0000 (03:08 -0600)
        * 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

gcc/ChangeLog
gcc/c-decl.c
gcc/config/alpha/alpha.h
gcc/except.c
gcc/except.h
gcc/flow.c
gcc/prefix.c
gcc/varray.h

index de303c588e019bcea0c91765f27b1896b785ebd9..2a5f70a4269bb2a4ac0249e6b66cfca5c952bbfb 100644 (file)
@@ -1,3 +1,26 @@
+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>
 
        * config/m68k/m68k.c: Include "system.h" instead of <stdio.h>.
index a4b87860e66d44a63091b8c07116204fa84c9e9b..5d20c9770dd4ea95a9dc32b95a1e28d133d50704 100644 (file)
@@ -3533,7 +3533,7 @@ init_decl_processing ()
 
   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
index 4e99683fbbd6dcdb0c5708a760fd249050e1a07d..a2842d847901b52c85df85b05c56b42bc633e124 100644 (file)
@@ -1291,6 +1291,7 @@ do {                                              \
 
 #define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \
   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
    address for the frame COUNT steps up from the current frame.
index 3450e8caba916c9af2e34ba2b22606ea862c68bc..2d26e9ee9c141640f9bfac91b81b43a15058650a 100644 (file)
@@ -1930,23 +1930,17 @@ static short language_code = 0;
 static short version_code = 0; 
 
 /* This routine will set the language code for exceptions. */
-#ifdef __STDC__
-void set_exception_lang_code (short code)
-#else
-void set_exception_lang_code (code)
-     short code;
-#endif
+void
+set_exception_lang_code (code)
+     int code;
 {
   language_code = code;
 }
 
 /* This routine will set the language version code for exceptions. */
-#ifdef __STDC__
-void set_exception_version_code (short code)
-#else
-void set_exception_version_code (code)
+void
+set_exception_version_code (code)
      short code;
-#endif
 {
   version_code = code;
 }
index c08d0c583994be08b9ab344d68df5bb11e863c9b..b498a69c7e0117eb85f9212bf78320deccc811d3 100644 (file)
@@ -149,8 +149,8 @@ extern int doing_eh                                PROTO ((int));
 
 /* Toplevel initialization for EH.  */
 
-void set_exception_lang_code                    PROTO((short));
-void set_exception_version_code                 PROTO((short));
+void set_exception_lang_code                    PROTO((int));
+void set_exception_version_code                 PROTO((int));
 
 /* A list of handlers asocciated with an exception region. HANDLER_LABEL
    is the the label that control should be transfered to if the data
index 0e3b044a830924d38f6e1239fd9d21c54fd987b1..715555d18046ee7fb44f6557e971f23c8e48c234 100644 (file)
@@ -4066,8 +4066,6 @@ count_reg_references (x)
      rtx x;
 {
   register RTX_CODE code;
-  register int regno;
-  int i;
 
  retry:
   code = GET_CODE (x);
index 1c96c58e54ad741b8252957e218eb2c34628f497..06b0610871bdd2c30164e24d0b6e0ed022a03a85 100644 (file)
@@ -255,7 +255,7 @@ translate_name (name)
        keylen++)
     ;
 
-  key = alloca (keylen + 1);
+  key = (char *) alloca (keylen + 1);
   strncpy (key, &name[1], keylen);
   key[keylen] = 0;
 
index df3ca313e8568d8ea9a727f2f0ad8605bab261eb..eb5a44e1a8b5ce9f38d83f10a770244f2b2b9de1 100644 (file)
@@ -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
    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.  */
 extern varray_type varray_grow PROTO((varray_type, size_t));
This page took 0.091621 seconds and 5 git commands to generate.