From: Ken Raeburn Date: Mon, 28 Feb 1994 21:06:26 +0000 (+0000) Subject: (obj_coff_lcomm): Put "#if 0" around the unused parts (most of the function). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=442f17dc56d816e0ff33f74ac6e9a599ca6ad93a;p=binutils-gdb.git (obj_coff_lcomm): Put "#if 0" around the unused parts (most of the function). (obj_coff_init_stab_section): Cast alloca result. --- diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c index 0e6258794da..4d51556edf9 100644 --- a/gas/config/obj-coffbfd.c +++ b/gas/config/obj-coffbfd.c @@ -2299,14 +2299,16 @@ static void obj_coff_lcomm (ignore) int ignore; { + s_lcomm(0); + return; +#if 0 char *name; char c; int temp; char *p; symbolS *symbolP; - s_lcomm(0); - return; + name = input_line_pointer; c = get_symbol_end (); @@ -2358,6 +2360,7 @@ obj_coff_lcomm (ignore) as_bad("Symbol %s already defined", name); demand_empty_rest_of_line(); +#endif } static void @@ -2663,7 +2666,7 @@ obj_coff_init_stab_section (seg) /* Zero it out. */ memset (p, 0, 12); as_where (&file, (unsigned int *) NULL); - stabstr_name = alloca (strlen (segment_info[seg].scnhdr.s_name) + 4); + stabstr_name = (char *) alloca (strlen (segment_info[seg].scnhdr.s_name) + 4); strcpy (stabstr_name, segment_info[seg].scnhdr.s_name); strcat (stabstr_name, "str"); stroff = get_stab_string_offset (file, stabstr_name);