An error occurred fetching the project authors.
  1. 27 Feb, 2015 1 commit
    • Rob Pike's avatar
      cmd/internal/obj: make Rconv a global function · daddeb26
      Rob Pike authored
      Clean up the obj API by making Rconv (register pretty printer) a top-level
      function. This means that Dconv (operand pretty printer) doesn't need
      an Rconv argument.
      
      To do this, we make the register numbers, which are arbitrary inside an
      operand (obj.Addr), disjoint sets for each architecture. Each architecture
      registers (ha) a piece of the space and then the global Rconv knows which
      architecture-specific printer to use.
      
      Clean up all the code that uses Dconv.
      
      Now register numbers are large, so a couple of fields in Addr need to go
      from int8 to int16 because they sometimes hold register numbers. Clean
      up their uses, which meant regenerating the yacc grammars for the
      assemblers. There are changes in this CL triggered by earlier changes
      to yacc, which had not been run in this directory.
      
      There is still cleanup to do in Addr, but we're getting closer to that being
      easy to do.
      
      Change-Id: I9290ebee013b62f7d24e886743ea5a6b232990ab
      Reviewed-on: https://go-review.googlesource.com/6220Reviewed-by: default avatarRuss Cox <rsc@golang.org>
      daddeb26
  2. 23 Feb, 2015 1 commit
  3. 05 Feb, 2015 1 commit
    • Russ Cox's avatar
      [dev.cc] cmd/internal/obj: reconvert from liblink · 1fc330d8
      Russ Cox authored
      cmd/internal/obj reconverted using rsc.io/c2go rev 2a95256.
      
      - Brings in new, more regular Prog, Addr definitions
      
      - Add Prog* argument to oclass in liblink/asm[68].c, for c2go conversion.
      - Update objwriter for change in TEXT size encoding.
      - Merge 5a, 6a, 8a, 9a changes into new5a, new6a, new8a, new9a (by hand).
      
      - Add +build ignore to cmd/asm/internal/{addr,arch,asm}, cmd/asm.
        They need to be updated for the changes.
      
      - Reenable verifyAsm in cmd/go.
      - Reenable GOOBJ=2 mode by default in liblink.
      
      All architectures build successfully again.
      
      Change-Id: I2c845c5d365aa484b570476898171bee657b626d
      Reviewed-on: https://go-review.googlesource.com/3963Reviewed-by: default avatarRob Pike <r@golang.org>
      1fc330d8
  4. 21 Jan, 2015 2 commits