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]

PATCH: Syntax tweak to rs6000.c output


The OS X assembler considers ';' to be a comment char, so this
patch replaces a use of it with a generic \n\t sequence.  With
this patch (and others not yet submitted), powerpc-apple-darwin1.3
bootstraps for the first time!

Approved by geoffk already.  Although this is not necessary
for the 3.0 branch, it would very convenient for our patch
merging to install it there too, but since it doesn't fix any
actual regressions, I'd like to get an explicit approval for
putting it into the branch.

Stan

2001-02-20  Stan Shebs  <shebs@apple.com>

        * config/rs6000/rs6000.c (output_cbranch): Output branches
        on separate lines instead of using ';' to separate.

RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.168
diff -p -r1.168 rs6000.c
*** rs6000.c    2001/02/12 19:47:11     1.168
--- rs6000.c    2001/02/20 23:38:29
*************** output_cbranch (op, label, reversed, ins
*** 4631,4637 ****
        /* If the branch distance was too far, we may have to use an
         unconditional branch to go the distance.  */
        if (need_longbranch)
!       s += sprintf (s, ",%c$+8 ; b %s", '%', label);
        else
        s += sprintf (s, ",%s", label);
      }
--- 4631,4637 ----
        /* If the branch distance was too far, we may have to use an
         unconditional branch to go the distance.  */
        if (need_longbranch)
!       s += sprintf (s, ",%c$+8\n\tb %s", '%', label);
        else
        s += sprintf (s, ",%s", label);
      }


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