From 30596dfc4f012e793328cdd983d7bf7e3d5f8a00 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 2 Jun 1998 16:54:20 +0000 Subject: [PATCH] * read.c (do_s_func): New function. (s_func): Call it. * config/tc-dvp.c (md_pseudo_table): Add .func/.endfunc. (s_dvp_func): New function. --- gas/config/tc-dvp.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c index 99683b77b95..204f1c88105 100644 --- a/gas/config/tc-dvp.c +++ b/gas/config/tc-dvp.c @@ -276,6 +276,7 @@ static void s_endmpg PARAMS ((int)); static void s_endunpack PARAMS ((int)); static void s_endgif PARAMS ((int)); static void s_state PARAMS ((int)); +static void s_dvp_func PARAMS ((int)); /* The target specific pseudo-ops which we support. */ const pseudo_typeS md_pseudo_table[] = @@ -290,6 +291,10 @@ const pseudo_typeS md_pseudo_table[] = { "endunpack", s_endunpack, 0 }, { "endgif", s_endgif, 0 }, { "vu", s_state, ASM_VU }, + /* We need to intercept .func/.endfunc so that we can prepend _$. + ??? Not sure this is right though as _$foo is the lma version. */ + { "func", s_dvp_func, 0 }, + { "endfunc", s_dvp_func, 1 }, { NULL, NULL, 0 } }; @@ -3192,3 +3197,12 @@ s_state (state) demand_empty_rest_of_line (); } + +/* Same as read.c:s_func except prepend VU_LABEL_PREFIX by default. */ + +static void +s_dvp_func (end_p) + int end_p; +{ + do_s_func (end_p, VU_LABEL_PREFIX); +} -- 2.30.2