+Fri Jan 28 11:26:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
+
+ * config/obj-coff.c (obj_coff_section_header_append): Do not
+ declare if BFD_ASSEMBLER.
+ (stack_pop): Correct test for stack underflow.
+ (obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size,
+ obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Declare
+ type of ignored argument to avoid gcc warning.
+ (align): Removed unused function.
+
Thu Jan 27 18:14:19 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
* config/tc-alpha.c, config/tc-alpha.h, config/alpha-opcode.h: New
const char *s_get_name PARAMS ((symbolS * s));
static symbolS *tag_find_or_make PARAMS ((char *name));
static symbolS *tag_find PARAMS ((char *name));
+
+#ifndef BFD_ASSEMBLER
#ifdef BFD_HEADERS
static void obj_coff_section_header_append PARAMS ((char **where, struct internal_scnhdr * header));
#else
static void obj_coff_section_header_append PARAMS ((char **where, SCNHDR * header));
#endif
+#endif
+
static void obj_coff_def PARAMS ((int what));
static void obj_coff_dim PARAMS ((int));
static void obj_coff_endef PARAMS ((int));
stack_pop (st)
stack *st;
{
- if ((st->pointer -= st->element_size) < 0)
+ if (st->pointer < st->element_size)
{
st->pointer = 0;
return (char *) 0;
}
+ st->pointer -= st->element_size;
return st->data + st->pointer;
}
}
unsigned int dim_index;
+
static void
obj_coff_endef (ignored)
+ int ignored;
{
symbolS *symbolP;
/* DIM BUG FIX sac@cygnus.com */
static void
obj_coff_dim (ignored)
+ int ignored;
{
int dim_index;
static void
obj_coff_line (ignored)
+ int ignored;
{
int this_base;
static void
obj_coff_size (ignored)
+ int ignored;
{
if (def_symbol_in_progress == NULL)
{
static void
obj_coff_scl (ignored)
+ int ignored;
{
if (def_symbol_in_progress == NULL)
{
static void
obj_coff_tag (ignored)
+ int ignored;
{
char *symbol_name;
char name_end;
static void
obj_coff_type (ignored)
+ int ignored;
{
if (def_symbol_in_progress == NULL)
{
static void
obj_coff_val (ignored)
+ int ignored;
{
if (def_symbol_in_progress == NULL)
{
#endif
#ifdef BFD_ASSEMBLER
-static
-unsigned long
-align (val, exp)
-{
- int n = (1 << exp) - 1;
- val = (val + n) & ~n;
- return val;
-}
void
coff_frob_symbol (symp, punt)