This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [bfin] Change the constraint letter for BREGS from 'B' to 'h'


On 3/31/06, Jie Zhang <jzhang918@gmail.com> wrote:
> In bfin port GCC, bot BREGS and ODD_AREGS use the same 'B' for
> constraint letter. The patch changes BREGS to use 'h'. Is it OK?
>
As Bernd pointed out on a mailing list on blackfin.uclinux.org, we
should reserve 'h' for furture use for Blackfin. So I update this
patch to use 'v' for B registers.

Is it OK?

Jie
	* config/bfin/bfin.h (REG_CLASS_FROM_LETTER): Change the letter
	for BREGS from 'B' to 'v'.
	* config/bfin/bfin.md: Change comment accordingly.
	* doc/md.texi: Update accordingly.

Index: config/bfin/bfin.h
===================================================================
RCS file: /cvsroot/gcc3/gcc-4.1/gcc/config/bfin/bfin.h,v
retrieving revision 1.11
diff -u -p -r1.11 bfin.h
--- config/bfin/bfin.h	25 Mar 2006 14:53:52 -0000	1.11
+++ config/bfin/bfin.h	30 Mar 2006 17:42:21 -0000
@@ -525,7 +525,7 @@ enum reg_class
    (LETTER) == 'A' ? EVEN_AREGS : 	\
    (LETTER) == 'B' ? ODD_AREGS : 	\
    (LETTER) == 'b' ? IREGS :            \
-   (LETTER) == 'B' ? BREGS :            \
+   (LETTER) == 'v' ? BREGS :            \
    (LETTER) == 'f' ? MREGS : 		\
    (LETTER) == 'c' ? CIRCREGS :         \
    (LETTER) == 'C' ? CCREGS : 		\
Index: config/bfin/bfin.md
===================================================================
RCS file: /cvsroot/gcc3/gcc-4.1/gcc/config/bfin/bfin.md,v
retrieving revision 1.9
diff -u -p -r1.9 bfin.md
--- config/bfin/bfin.md	30 Mar 2006 08:24:44 -0000	1.9
+++ config/bfin/bfin.md	30 Mar 2006 17:42:21 -0000
@@ -46,7 +46,7 @@
 ;     e  (a0, a1)
 ;     b  (i0..i3)
 ;     f  (m0..m3)
-;     B
+;     v  (b0..b3)
 ;     c (i0..i3,m0..m3) CIRCREGS
 ;     C (CC)            CCREGS
 ;
Index: doc/md.texi
===================================================================
RCS file: /cvsroot/gcc3/gcc-4.1/gcc/doc/md.texi,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 md.texi
--- doc/md.texi	11 Mar 2006 14:17:28 -0000	1.1.1.1
+++ doc/md.texi	30 Mar 2006 17:42:22 -0000
@@ -2161,7 +2161,7 @@ Odd-numbered accumulator register.
 @item b
 I register
 
-@item B
+@item v
 B register
 
 @item f

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]