Delete output file upon fatal errors.
Treat multiple defintions of the same symbol as ordinary errors, not fatal ones
This commit is contained in:
parent
0b8c7076b5
commit
d4887adcdb
|
@ -1,3 +1,12 @@
|
||||||
|
2001-01-15 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* symbols.c (colon): Change 'already defined symbol' from a
|
||||||
|
fatal error to an ordinary error. There is no reason why this
|
||||||
|
error should be fatal.
|
||||||
|
|
||||||
|
* message.c (as_fatal): Delete output file, if one has been
|
||||||
|
created.
|
||||||
|
|
||||||
2001-01-14 Alan Modra <alan@linuxcare.com.au>
|
2001-01-14 Alan Modra <alan@linuxcare.com.au>
|
||||||
|
|
||||||
* config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
|
* config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
|
||||||
|
|
|
@ -414,6 +414,10 @@ as_fatal (const char *format, ...)
|
||||||
vfprintf (stderr, format, args);
|
vfprintf (stderr, format, args);
|
||||||
(void) putc ('\n', stderr);
|
(void) putc ('\n', stderr);
|
||||||
va_end (args);
|
va_end (args);
|
||||||
|
/* Delete the output file, if it exists. This will prevent make from
|
||||||
|
thinking that a file was created and hence does not need rebuilding. */
|
||||||
|
if (out_file_name != NULL)
|
||||||
|
unlink (out_file_name);
|
||||||
xexit (EXIT_FAILURE);
|
xexit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -439,7 +439,7 @@ colon (sym_name) /* Just seen "x:" - rattle symbols & frags. */
|
||||||
S_GET_OTHER (symbolP),
|
S_GET_OTHER (symbolP),
|
||||||
S_GET_DESC (symbolP));
|
S_GET_DESC (symbolP));
|
||||||
#endif
|
#endif
|
||||||
as_fatal (_("Symbol \"%s\" is already defined as \"%s\"/%s%ld."),
|
as_bad (_("Symbol \"%s\" is already defined as \"%s\"/%s%ld."),
|
||||||
sym_name,
|
sym_name,
|
||||||
segment_name (S_GET_SEGMENT (symbolP)),
|
segment_name (S_GET_SEGMENT (symbolP)),
|
||||||
od_buf,
|
od_buf,
|
||||||
|
@ -453,8 +453,8 @@ colon (sym_name) /* Just seen "x:" - rattle symbols & frags. */
|
||||||
if (!(frag_now == symbolP->sy_frag
|
if (!(frag_now == symbolP->sy_frag
|
||||||
&& S_GET_VALUE (symbolP) == frag_now_fix ()
|
&& S_GET_VALUE (symbolP) == frag_now_fix ()
|
||||||
&& S_GET_SEGMENT (symbolP) == now_seg))
|
&& S_GET_SEGMENT (symbolP) == now_seg))
|
||||||
as_fatal (_("Symbol %s already defined."), sym_name);
|
as_bad (_("Symbol %s already defined."), sym_name);
|
||||||
} /* if this symbol is not yet defined */
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
#ifdef BFD_ASSEMBLER
|
#ifdef BFD_ASSEMBLER
|
||||||
|
@ -474,7 +474,7 @@ colon (sym_name) /* Just seen "x:" - rattle symbols & frags. */
|
||||||
#endif /* OBJ_VMS */
|
#endif /* OBJ_VMS */
|
||||||
|
|
||||||
symbol_table_insert (symbolP);
|
symbol_table_insert (symbolP);
|
||||||
} /* if we have seen this symbol before */
|
}
|
||||||
|
|
||||||
if (mri_common_symbol != NULL)
|
if (mri_common_symbol != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue