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: http://drtracing.org/?a=commitdiff_plain;h=69312dac86df4f919d38e10cb0244af881678ac1;p=deliverable%2Fbinutils-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 a8637e750b..7b7a4de4d1 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 2d06b652f8..bc33aaf7ea 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 39fcab1017..869ef72a93 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"