From: Doug Evans Date: Tue, 24 Feb 1998 19:04:22 +0000 (+0000) Subject: * config/tc-dvp.h (tc_frob_label): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69312dac86df4f919d38e10cb0244af881678ac1;p=binutils-gdb.git * config/tc-dvp.h (tc_frob_label): Define. * config/tc-dvp.c (dvp_frob_label): New function. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a8637e750b7..7b7a4de4d12 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,4 +1,9 @@ start-sanitize-sky +Tue Feb 24 11:01:25 1998 Doug Evans + + * config/tc-dvp.h (tc_frob_label): Define. + * config/tc-dvp.c (dvp_frob_label): New function. + Mon Feb 23 15:55:12 1998 Doug Evans * config/tc-dvp.c (assemble_dma): Do alignment before parsing insn. diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c index 2d06b652f8d..bc33aaf7ea9 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 39fcab10178..869ef72a93b 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"