rs6000.c cr names

David Edelsohn dje@watson.ibm.com
Fri May 5 21:04:00 GMT 2000


	The AIX assembler does not know the symbolic names of condition
registers, so the latest change for emitting branches fails with the
native AIX tools.  The following patch removes the decorative "cr"
prepended to condition register names.  If you want to emit pretty names
for some platforms, you need to use rs6000_reg_names[][] table to
translate the string appropriate for the platform assembler.

David

Index: rs6000.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.119
diff -c -p -r1.119 rs6000.c
*** rs6000.c	2000/05/04 22:15:23	1.119
--- rs6000.c	2000/05/06 03:58:58
*************** output_cbranch (op, label, reversed, ins
*** 4073,4079 ****
    else
      s += sprintf (s, "b%s%s ", ccode, pred);
  
!   s += sprintf (s, "cr%d", cc_regno);
  
    if (label != NULL)
      {
--- 4073,4079 ----
    else
      s += sprintf (s, "b%s%s ", ccode, pred);
  
!   s += sprintf (s, "%d", cc_regno);
  
    if (label != NULL)
      {


More information about the Gcc-bugs mailing list