(obj_coff_lcomm): Put "#if 0" around the unused parts (most of the function).
(obj_coff_init_stab_section): Cast alloca result.
This commit is contained in:
parent
d193d76268
commit
442f17dc56
@ -2299,14 +2299,16 @@ static void
|
|||||||
obj_coff_lcomm (ignore)
|
obj_coff_lcomm (ignore)
|
||||||
int ignore;
|
int ignore;
|
||||||
{
|
{
|
||||||
|
s_lcomm(0);
|
||||||
|
return;
|
||||||
|
#if 0
|
||||||
char *name;
|
char *name;
|
||||||
char c;
|
char c;
|
||||||
int temp;
|
int temp;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
symbolS *symbolP;
|
symbolS *symbolP;
|
||||||
s_lcomm(0);
|
|
||||||
return;
|
|
||||||
name = input_line_pointer;
|
name = input_line_pointer;
|
||||||
|
|
||||||
c = get_symbol_end ();
|
c = get_symbol_end ();
|
||||||
@ -2358,6 +2360,7 @@ obj_coff_lcomm (ignore)
|
|||||||
as_bad("Symbol %s already defined", name);
|
as_bad("Symbol %s already defined", name);
|
||||||
|
|
||||||
demand_empty_rest_of_line();
|
demand_empty_rest_of_line();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -2663,7 +2666,7 @@ obj_coff_init_stab_section (seg)
|
|||||||
/* Zero it out. */
|
/* Zero it out. */
|
||||||
memset (p, 0, 12);
|
memset (p, 0, 12);
|
||||||
as_where (&file, (unsigned int *) NULL);
|
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);
|
strcpy (stabstr_name, segment_info[seg].scnhdr.s_name);
|
||||||
strcat (stabstr_name, "str");
|
strcat (stabstr_name, "str");
|
||||||
stroff = get_stab_string_offset (file, stabstr_name);
|
stroff = get_stab_string_offset (file, stabstr_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user