• Russ Cox's avatar
    cmd/gc: minor adjustments for C to Go translation · 5c87cf76
    Russ Cox authored
    - remove a few uses of ? :
    - rename variables named len
    - rewrite a few gotos as nested switches
    - move goto targets to scope allowed by Go
    - use consistent return type of anyregalloc
      (was int or int32 in different places)
    - remove unused nr variable in agen
    - include proper headers in generated builtin1.c
    - avoid strange sized %E formats (%-6E, %2E)
    - change gengcmask argument from uint8[16] to uint8*
      (diagnosed by c2go; not an array in any real sense).
    - replace #ifdef XXX with comment block in 5g/peep.c
    - expand and remove FAIL macro from 5g
    - expand and remove noimpl macro from 9g
    - print regalloc errors to stdout in 8g
      (only use of fprint(2, ...) in all compilers)
    
    Still producing bit-for-bit identical output.
    
    Change-Id: Id46efcd2a89241082b234f63f375b66f2754d695
    Reviewed-on: https://go-review.googlesource.com/4646Reviewed-by: 's avatarAustin Clements <austin@google.com>
    5c87cf76
gg.h 3.7 KB