X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=gas%2Fsubsegs.c;h=0647653f8784e1d8c9bec2bd248082454ff4b215;hb=4eb6f892502bad1ec4e1828d0140959bb004a3b6;hp=e9c575cdd94f785ecc44e80ee9689b556e89a9f5;hpb=6f2750feaf2827ef8a1a0a5b2f90c1e9a6cabbd1;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/subsegs.c b/gas/subsegs.c index e9c575cdd9..0647653f87 100644 --- a/gas/subsegs.c +++ b/gas/subsegs.c @@ -63,7 +63,7 @@ subseg_change (segT seg, int subseg) if (! seginfo) { - seginfo = (segment_info_type *) xcalloc (1, sizeof (*seginfo)); + seginfo = XCNEW (segment_info_type); seginfo->bfd_section = seg; bfd_set_section_userdata (stdoutput, seg, seginfo); } @@ -165,7 +165,7 @@ subseg_get (const char *segname, int force_new) if (! seginfo) { secptr->output_section = secptr; - seginfo = (segment_info_type *) xcalloc (1, sizeof (*seginfo)); + seginfo = XCNEW (segment_info_type); seginfo->bfd_section = secptr; bfd_set_section_userdata (stdoutput, secptr, seginfo); }