forked from Imagelibrary/binutils-gdb
* read.c (do_s_func): New function.
(s_func): Call it. * read.h (do_s_func): Add prototype. * config/tc-dvp.c (md_pseudo_table): Add .func/.endfunc. (s_dvp_func): New function.
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
Tue Jun 2 09:25:34 1998 Doug Evans <devans@canuck.cygnus.com>
|
Tue Jun 2 09:25:34 1998 Doug Evans <devans@canuck.cygnus.com>
|
||||||
|
|
||||||
* read.c (s_func): Prepend `leading char' by default.
|
* read.c (do_s_func): New function.
|
||||||
|
(s_func): Call it.
|
||||||
|
* read.h (do_s_func): Add prototype.
|
||||||
|
start-sanitize-sky
|
||||||
|
* config/tc-dvp.c (md_pseudo_table): Add .func/.endfunc.
|
||||||
|
(s_dvp_func): New function.
|
||||||
|
end-sanitize-sky
|
||||||
|
|
||||||
start-sanitize-r5900
|
start-sanitize-r5900
|
||||||
Mon Jun 1 17:04:56 1998 Jeffrey A Law (law@cygnus.com)
|
Mon Jun 1 17:04:56 1998 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|||||||
16
gas/read.c
16
gas/read.c
@@ -4920,6 +4920,17 @@ generate_lineno_debug ()
|
|||||||
void
|
void
|
||||||
s_func (end_p)
|
s_func (end_p)
|
||||||
int end_p;
|
int end_p;
|
||||||
|
{
|
||||||
|
do_s_func (end_p, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Subroutine of s_func so targets can choose a different default prefix.
|
||||||
|
If DEFAULT_PREFIX is NULL, use the target's "leading char". */
|
||||||
|
|
||||||
|
void
|
||||||
|
do_s_func (end_p, default_prefix)
|
||||||
|
int end_p;
|
||||||
|
const char *default_prefix;
|
||||||
{
|
{
|
||||||
/* Record the current function so that we can issue an error message for
|
/* Record the current function so that we can issue an error message for
|
||||||
misplaced .func,.endfunc, and also so that .endfunc needs no
|
misplaced .func,.endfunc, and also so that .endfunc needs no
|
||||||
@@ -4959,6 +4970,10 @@ s_func (end_p)
|
|||||||
*input_line_pointer = delim1;
|
*input_line_pointer = delim1;
|
||||||
SKIP_WHITESPACE ();
|
SKIP_WHITESPACE ();
|
||||||
if (*input_line_pointer != ',')
|
if (*input_line_pointer != ',')
|
||||||
|
{
|
||||||
|
if (default_prefix)
|
||||||
|
asprintf (&label, "%s%s", default_prefix, name);
|
||||||
|
else
|
||||||
{
|
{
|
||||||
char leading_char = 0;
|
char leading_char = 0;
|
||||||
#ifdef BFD_ASSEMBLER
|
#ifdef BFD_ASSEMBLER
|
||||||
@@ -4971,6 +4986,7 @@ s_func (end_p)
|
|||||||
else
|
else
|
||||||
label = name;
|
label = name;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
++input_line_pointer;
|
++input_line_pointer;
|
||||||
|
|||||||
Reference in New Issue
Block a user