This is the mail archive of the gcc-bugs@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]

rs6000.c cr names


	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)
      {

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