aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-02-28 21:06:26 +0000
committerKen Raeburn <raeburn@cygnus>1994-02-28 21:06:26 +0000
commit442f17dc56d816e0ff33f74ac6e9a599ca6ad93a (patch)
tree13a1bebca2de83b70a862ec2cd04dba8f454dd1a /gas
parentd193d76268b095cecc49781bc101baaecf98f009 (diff)
downloadgdb-442f17dc56d816e0ff33f74ac6e9a599ca6ad93a.zip
gdb-442f17dc56d816e0ff33f74ac6e9a599ca6ad93a.tar.gz
gdb-442f17dc56d816e0ff33f74ac6e9a599ca6ad93a.tar.bz2
(obj_coff_lcomm): Put "#if 0" around the unused parts (most of the function).
(obj_coff_init_stab_section): Cast alloca result.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/obj-coffbfd.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c
index 0e62587..4d51556 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);