* config/obj-coff.c (c_dot_file_symbol): Cast xmalloc return.
[deliverable/binutils-gdb.git] / gas / config / obj-coff.c
index 64d7e3c7b59fabda8158393117b1b018ce0bde91..9e37e7e189f6b87e4b0512333af091a0ac9ea210 100644 (file)
@@ -3004,8 +3004,14 @@ write_object_file ()
       subseg_set (frchain_ptr->frch_seg, frchain_ptr->frch_subseg);
 #ifndef SUB_SEGMENT_ALIGN
 #define SUB_SEGMENT_ALIGN(SEG) 1
+#endif
+#ifdef md_do_align
+      md_do_align (SUB_SEGMENT_ALIGN (now_seg), NOP_OPCODE, alignment_done);
 #endif
       frag_align (SUB_SEGMENT_ALIGN (now_seg), NOP_OPCODE);
+#ifdef md_do_align
+    alignment_done:
+#endif
       frag_wane (frag_now);
       frag_now->fr_fix = 0;
       know (frag_now->fr_next == NULL);
@@ -3407,7 +3413,8 @@ c_dot_file_symbol (filename)
         we stick it into the string table instead.  We keep
         a linked list of the filenames we find so we can emit
         them later.*/
-      struct filename_list *f = xmalloc (sizeof (struct filename_list));
+      struct filename_list *f = ((struct filename_list *)
+                                xmalloc (sizeof (struct filename_list)));
 
       f->filename = filename;
       f->next = 0;
This page took 0.023115 seconds and 4 git commands to generate.