diff options
author | Doug Evans <dje@google.com> | 1998-02-24 19:04:22 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-02-24 19:04:22 +0000 |
commit | 69312dac86df4f919d38e10cb0244af881678ac1 (patch) | |
tree | edb52fb12f0f69f3db749e472ccc53798c0058ae /gas/config | |
parent | 3e9f7612e3545197e874aee664b1b2b5bca47e40 (diff) | |
download | gdb-69312dac86df4f919d38e10cb0244af881678ac1.zip gdb-69312dac86df4f919d38e10cb0244af881678ac1.tar.gz gdb-69312dac86df4f919d38e10cb0244af881678ac1.tar.bz2 |
* config/tc-dvp.h (tc_frob_label): Define.
* config/tc-dvp.c (dvp_frob_label): New function.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-dvp.c | 13 | ||||
-rw-r--r-- | gas/config/tc-dvp.h | 6 |
2 files changed, 17 insertions, 2 deletions
diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c index 2d06b65..bc33aaf 100644 --- a/gas/config/tc-dvp.c +++ b/gas/config/tc-dvp.c @@ -1058,7 +1058,7 @@ md_undefined_symbol (name) /* Called after parsing the file via md_after_pass_hook. */ void -dvp_parse_done () +dvp_after_pass_hook () { #if 0 /* ??? Doesn't work unless we keep track of the nested include file level. */ @@ -1071,6 +1071,17 @@ dvp_parse_done () s_endunpack (0); #endif } + +/* Called when a label is defined via tc_frob_label. */ + +void +dvp_frob_label (sym) + symbolS *sym; +{ + if (CUR_ASM_STATE == ASM_MPG + || CUR_ASM_STATE == ASM_VU) + S_SET_OTHER (sym, STO_DVP_VU); +} /* Functions concerning relocs. */ diff --git a/gas/config/tc-dvp.h b/gas/config/tc-dvp.h index 39fcab1..869ef72 100644 --- a/gas/config/tc-dvp.h +++ b/gas/config/tc-dvp.h @@ -54,7 +54,11 @@ #define TC_HANDLES_FX_DONE /* Called after parsing a file. */ -#define md_after_pass_hook() dvp_parse_done () +extern void dvp_parse_done PARAMS ((void)); +#define md_after_pass_hook() dvp_after_pass_hook () + +extern void dvp_frob_label PARAMS ((struct symbol *)); +#define tc_frob_label(sym) dvp_frob_label (sym) /* Default section names. */ #define TEXT_SECTION_NAME ".vutext" |