OSDN Git Service

* config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
[pf3gnuchains/gcc-fork.git] / gcc / genhooks.c
index 66d3633..6d92448 100644 (file)
@@ -19,7 +19,6 @@ along with GCC; see the file COPYING3.  If not see
 <http://www.gnu.org/licenses/>.  */
 #include "bconfig.h"
 #include "system.h"
-#include <string.h>
 #include "hashtab.h"
 #include "errors.h"
 
@@ -52,7 +51,7 @@ emit_findices (const char *doc, const char *hook_name)
       doc = strchr (fcode, '}');
       if (!doc)
        fatal ("Malformed @Fcode for hook %s\n", hook_name);
-      printf ("@findex %.*s\n", doc - fcode, fcode);
+      printf ("@findex %.*s\n", (int) (doc - fcode), fcode);
       doc = fcode;
     }
 }
@@ -238,9 +237,9 @@ emit_documentation (const char *in_fname)
                    /* Type names like 'int' are followed by a space, sometimes
                       also by '*'.  'void' should appear only in "(void)".  */
                    if (*e == ' ' || *e == '*' || *q == '(')
-                     printf ("%.*s", e - q + 1, q);
+                     printf ("%.*s", (int) (e - q + 1), q);
                    else
-                     printf ("@var{%.*s}%c", e - q, q, *e);
+                     printf ("@var{%.*s}%c", (int) (e - q), q, *e);
                }
              /* POD-valued hooks sometimes come in groups with common
                 documentation.*/
@@ -265,8 +264,8 @@ emit_documentation (const char *in_fname)
                      /* Print paragraph, emitting @Fcode as @code.  */
                      for (; (fcode = strstr (doc, "@Fcode{")) && fcode < p_end;
                           doc = fcode + 2)
-                       printf ("%.*s@", fcode - doc, doc);
-                     printf ("%.*s", p_end - doc, doc);
+                       printf ("%.*s@", (int) (fcode - doc), doc);
+                     printf ("%.*s", (int) (p_end - doc), doc);
                      /* Emit function indices for next paragraph.  */
                      emit_findices (p_end, name);
                    }