/* subsegs.c - subsegments -
- Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
- Free Software Foundation, Inc.
+ Copyright (C) 1987-2016 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
* segment context correct.
*/
void
-subseg_change (register segT seg, register int subseg)
+subseg_change (segT seg, int subseg)
{
segment_info_type *seginfo = seg_info (seg);
now_seg = seg;
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);
}
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);
}