OSDN Git Service

* g++.dg/eh/simd-1.C: XFAIL on SPARC.
[pf3gnuchains/gcc-fork.git] / gcc / gensupport.c
index 979c335..0d4a857 100644 (file)
@@ -140,7 +140,7 @@ static void
 queue_pattern (rtx pattern, struct queue_elem ***list_tail,
               const char *filename, int lineno)
 {
-  struct queue_elem *e = (struct queue_elem *) xmalloc (sizeof (*e));
+  struct queue_elem *e = xmalloc (sizeof (*e));
   e->data = pattern;
   e->filename = filename;
   e->lineno = lineno;
@@ -195,7 +195,7 @@ process_include (rtx desc, int lineno)
   FILE *input_file;
 
   /* If specified file name is absolute, skip the include stack.  */
-  if (! IS_ABSOLUTE_PATHNAME (filename))
+  if (! IS_ABSOLUTE_PATH (filename))
     {
       struct file_name_list *stackp;
 
@@ -259,7 +259,7 @@ process_include (rtx desc, int lineno)
   fclose (input_file);
 }
 
-/* Process a top level rtx in some way, queueing as appropriate.  */
+/* Process a top level rtx in some way, queuing as appropriate.  */
 
 static void
 process_rtx (rtx desc, int lineno)
@@ -583,7 +583,7 @@ alter_predicate_for_insn (rtx pattern, int alt, int max_op, int lineno)
          {
            size_t c_len = strlen (c);
            size_t len = alt * (c_len + 1);
-           char *new_c = (char *) xmalloc (len);
+           char *new_c = xmalloc (len);
 
            memcpy (new_c, c, c_len);
            for (i = 1; i < alt; ++i)
@@ -876,8 +876,7 @@ init_md_reader_args (int argc, char **argv)
              {
                struct file_name_list *dirtmp;
 
-               dirtmp = (struct file_name_list *)
-                 xmalloc (sizeof (struct file_name_list));
+               dirtmp = xmalloc (sizeof (struct file_name_list));
                dirtmp->next = 0;       /* New one goes on the end */
                if (first_dir_md_include == 0)
                  first_dir_md_include = dirtmp;
@@ -930,8 +929,8 @@ init_md_reader (const char *filename)
                                 hash_c_test, cmp_c_test, NULL);
 
   for (i = 0; i < n_insn_conditions; i++)
-    *(htab_find_slot (condition_table, (PTR) &insn_conditions[i], INSERT))
-      = (PTR) &insn_conditions[i];
+    *(htab_find_slot (condition_table, &insn_conditions[i], INSERT))
+      = (void *) &insn_conditions[i];
 
   obstack_init (rtl_obstack);
   errors = 0;
@@ -1078,7 +1077,7 @@ maybe_eval_c_test (const char *expr)
     return -1;
 
   dummy.expr = expr;
-  test = (const struct c_test *) htab_find (condition_table, &dummy);
+  test = htab_find (condition_table, &dummy);
   if (!test)
     abort ();