This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Remove Blackfin loop symbol
- From: Jie Zhang <jie dot zhang at analog dot com>
- To: binutils <binutils at sourceware dot org>
- Date: Tue, 22 Jul 2008 16:40:00 +0800
- Subject: [PATCH] Remove Blackfin loop symbol
I committed this patch to remove useless loop symbol for Blackfin. GAS
generates loop symbol 'loop_name' for the following instruction:
LOOP loop_name loop_counter
That symbol becomes useless after the instruction has been assembled.
Jie
* config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
Index: config/tc-bfin.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-bfin.c,v
retrieving revision 1.16
diff -u -p -r1.16 tc-bfin.c
--- config/tc-bfin.c 23 Apr 2008 18:40:34 -0000 1.16
+++ config/tc-bfin.c 22 Jul 2008 08:27:53 -0000
@@ -1912,6 +1912,9 @@ bfin_gen_loop (Expr_Node *expr, REG_T re
lbegin = Expr_Node_Create (Expr_Node_Reloc, lbeginval, NULL, NULL);
lend = Expr_Node_Create (Expr_Node_Reloc, lendval, NULL, NULL);
+
+ symbol_remove (symbol_find (loopsym), &symbol_rootP, &symbol_lastP);
+
return bfin_gen_loopsetup(lbegin, reg, rop, lend, preg);
}