c4x.h (MD_INIT_BUILTINS): Add void_list_node argument to c4x_init_builtins.
authorMichael Hayes <m.hayes@elec.canterbury.ac.nz>
Sat, 16 Dec 2000 23:28:20 +0000 (23:28 +0000)
committerMichael Hayes <m.hayes@gcc.gnu.org>
Sat, 16 Dec 2000 23:28:20 +0000 (23:28 +0000)
* config/c4x/c4x.h (MD_INIT_BUILTINS): Add void_list_node argument
  to c4x_init_builtins.

* config/c4x/c4x-protos.h (c4x_init_builtins): Add tree argument.

* config/c4x/c4x.c (c4x_init_builtins): Add tree argument.
(c4x_output_ascii):  Fix.

Co-Authored-By: Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
From-SVN: r38316

gcc/ChangeLog
gcc/config/c4x/c4x-protos.h
gcc/config/c4x/c4x.c
gcc/config/c4x/c4x.h

index 4a729a8ea95e2c2a4c7de2ca98327d82ed2715da..1cc24d562f1db395e7fb69c33db2c2635a27edf3 100644 (file)
@@ -1,3 +1,14 @@
+2000-12-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
+            Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
+
+       * config/c4x/c4x.h (MD_INIT_BUILTINS): Add void_list_node argument
+         to c4x_init_builtins.
+
+       * config/c4x/c4x-protos.h (c4x_init_builtins): Add tree argument.
+
+       * config/c4x/c4x.c (c4x_init_builtins): Add tree argument.      
+       (c4x_output_ascii):  Fix.
+       
 2000-12-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
             Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
 
index 62fae3b809c1bdcd9cdbe10a909ed580e268b489..57df4f352748d53813a1fb223de9c5cd51ed88a9 100644 (file)
@@ -75,6 +75,9 @@ extern struct rtx_def *c4x_va_arg PARAMS ((tree, tree));
 
 extern rtx c4x_expand_builtin PARAMS((tree, rtx, rtx,
                                      enum machine_mode, int));
+
+extern void c4x_init_builtins PARAMS((tree));
+
 #endif /* TREE_CODE and RTX_CODE*/
 
 
@@ -275,8 +278,6 @@ extern int valid_parallel_operands_5 PARAMS ((rtx *, enum machine_mode));
 
 extern int valid_parallel_operands_6 PARAMS ((rtx *, enum machine_mode));
 
-extern void c4x_init_builtins PARAMS((void));
-
 extern rtx smulhi3_libfunc;
 extern rtx umulhi3_libfunc;
 extern rtx fix_truncqfhi2_libfunc;
index 406ec0e8daabc28ee676646ad64d3c181b83ebbf..7127749b8f1f4d624b5552ef921d806afac6337b 100644 (file)
@@ -313,14 +313,10 @@ c4x_output_ascii (stream, ptr, len)
      int len;
 {
   char sbuf[C4X_ASCII_LIMIT + 1];
-  int s, l, special, first, onlys;
+  int s, l, special, first = 1, onlys;
 
-  first = 0;
   if (len)
-    {
       fprintf (stream, "\t.byte\t");
-      first = 1;
-    }
 
   for (s = l = 0; len > 0; --len, ++ptr)
     {
@@ -4858,9 +4854,9 @@ c4x_adjust_cost (insn, link, dep_insn, cost)
 }
 
 void
-c4x_init_builtins ()
+c4x_init_builtins (endlink)
+     tree endlink;
 {
-  tree endlink = tree_cons (NULL_TREE, void_type_node, NULL_TREE);
 
   builtin_function ("abs",
                    build_function_type
index 0ccc26eb45eb6a3d2ef46f6d04e9c22651dd8f2c..2b3fe74d385aae026ef3395973ad29e749e7845c 100644 (file)
@@ -2714,7 +2714,7 @@ enum c4x_builtins
 };
 
 #define MD_INIT_BUILTINS do { \
-    c4x_init_builtins (); \
+    c4x_init_builtins (void_list_node); \
   } while (0)
 
 #define MD_EXPAND_BUILTIN(EXP, TARGET, SUBTARGET, MODE, IGNORE) \