]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/dbxout.c
alias.c [...]: Remove unnecessary casts.
[thirdparty/gcc.git] / gcc / dbxout.c
index 770b0be14c112a5ece50ff172e943a89111ee710..2501c947ef1a5e54052cb1308ed4dbf3b71c357c 100644 (file)
@@ -459,7 +459,7 @@ dbxout_init (const char *input_file_name)
   asmfile = asm_out_file;
 
   typevec_len = 100;
-  typevec = (struct typeinfo *) ggc_calloc (typevec_len, sizeof typevec[0]);
+  typevec = ggc_calloc (typevec_len, sizeof typevec[0]);
 
   /* Convert Ltext into the appropriate format for local labels in case
      the system doesn't insert underscores in front of user generated
@@ -513,7 +513,7 @@ dbxout_init (const char *input_file_name)
   next_type_number = 1;
 
 #ifdef DBX_USE_BINCL
-  current_file = (struct dbx_file *) ggc_alloc (sizeof *current_file);
+  current_file = ggc_alloc (sizeof *current_file);
   current_file->next = NULL;
   current_file->file_number = 0;
   current_file->next_type_number = 1;
@@ -626,7 +626,7 @@ dbxout_start_source_file (unsigned int line ATTRIBUTE_UNUSED,
                          const char *filename ATTRIBUTE_UNUSED)
 {
 #ifdef DBX_USE_BINCL
-  struct dbx_file *n = (struct dbx_file *) ggc_alloc (sizeof *n);
+  struct dbx_file *n = ggc_alloc (sizeof *n);
 
   n->next = current_file;
   n->next_type_number = 1;
@@ -1262,11 +1262,8 @@ dbxout_type (tree type, int full)
       if (next_type_number == typevec_len)
        {
          typevec
-           = (struct typeinfo *) ggc_realloc (typevec,
-                                              (typevec_len * 2
-                                               * sizeof typevec[0]));
-         memset ((char *) (typevec + typevec_len), 0,
-                typevec_len * sizeof typevec[0]);
+           = ggc_realloc (typevec, (typevec_len * 2 * sizeof typevec[0]));
+         memset (typevec + typevec_len, 0, typevec_len * sizeof typevec[0]);
          typevec_len *= 2;
        }