aboutsummaryrefslogtreecommitdiff
path: root/gas/subsegs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/subsegs.c')
-rw-r--r--gas/subsegs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/subsegs.c b/gas/subsegs.c
index e9c575c..0647653 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);
}