This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
rs6000.c cr names
- To: Geoff Keating <geoffk at cygnus dot com>
- Subject: rs6000.c cr names
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Sat, 06 May 2000 00:04:37 -0400
- cc: gcc-bugs at gcc dot gnu dot org
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)
{