1. 25 Aug, 2009 3 commits
    • Russ Cox's avatar
      ffi -> dynld. · 165a9903
      Russ Cox authored
      move out of export data into its own section
      
      R=r
      DELTA=222  (71 added, 99 deleted, 52 changed)
      OCL=33801
      CL=33808
      165a9903
    • Russ Cox's avatar
      bug132 · d66d65da
      Russ Cox authored
      R=ken
      OCL=33792
      CL=33803
      d66d65da
    • Russ Cox's avatar
      change reflect test to avoid bug132 · 92543daf
      Russ Cox authored
      R=gri
      DELTA=20  (17 added, 0 deleted, 3 changed)
      OCL=33793
      CL=33802
      92543daf
  2. 24 Aug, 2009 13 commits
    • Russ Cox's avatar
      first attempt at real FFI support. · 8c253bca
      Russ Cox authored
      in a .6 file, an export line
      
      	//ffi T localfib remotefib remote.so
      
      means the dynamic linker should initialize
      localfib, always a pointer, to the address of
      remotefib, either text (T) or data (D) after
      loading remote.so.
      
      the C compiler will generate an export section
      when given the pragmas
      
      	#pragma package fib
      	#pragma ffi T localfib remotefib remote.so
      
      needing #pragma package is a bit of a kludge
      and hopefully could go away later.
      
      this is just the 6 tool chain support.
      other architectures will happen once 6 settles down.
      
      code using this to do FFI is in a later CL.
      
      R=r
      DELTA=161  (141 added, 14 deleted, 6 changed)
      OCL=33783
      CL=33795
      8c253bca
    • Rob Pike's avatar
      fix duplicated word · 0262f883
      Rob Pike authored
      R=rsc
      DELTA=1  (0 added, 0 deleted, 1 changed)
      OCL=33788
      CL=33791
      0262f883
    • Ian Lance Taylor's avatar
      Match gccgo error messages. · 92ac4bff
      Ian Lance Taylor authored
      bug192.go:11:5: error: redefinition of ‘fmt’
      bug192.go:9:8: note: previous definition of ‘fmt’ was here
      
      R=r
      DELTA=2  (0 added, 0 deleted, 2 changed)
      OCL=33780
      CL=33790
      92ac4bff
    • Robert Griesemer's avatar
      - fix for multiple fields at same depth error · c36fbdf7
      Robert Griesemer authored
      R=rsc
      DELTA=9  (5 added, 0 deleted, 4 changed)
      OCL=33768
      CL=33785
      c36fbdf7
    • Russ Cox's avatar
      gc: handle iface == nil in back end · 89f69bb3
      Russ Cox authored
      R=ken
      OCL=33778
      CL=33781
      89f69bb3
    • Kai Backman's avatar
      64bit literal RSH · c6fd23ce
      Kai Backman authored
      R=rsc
      APPROVED=rsc
      DELTA=85  (35 added, 0 deleted, 50 changed)
      OCL=33761
      CL=33767
      c6fd23ce
    • Austin Clements's avatar
      Make it only necessary to exit blocks, not scopes. Allow · 9a36b808
      Austin Clements authored
      variables to be given initial values in some cases, to make
      building global scopes more convenient.
      
      R=rsc
      APPROVED=rsc
      DELTA=29  (17 added, 0 deleted, 12 changed)
      OCL=33760
      CL=33766
      9a36b808
    • Russ Cox's avatar
      bug197 · 14be733a
      Russ Cox authored
      R=ken
      OCL=33765
      CL=33765
      14be733a
    • Russ Cox's avatar
      avoid duplicate field names, so that bug132 can be fixed · 9feee91d
      Russ Cox authored
      also fix echo bug that just surfaced in mkerrors.sh
      
      R=r
      DELTA=67  (11 added, 19 deleted, 37 changed)
      OCL=33743
      CL=33757
      9feee91d
    • Russ Cox's avatar
      linker work · 1f177cd8
      Russ Cox authored
        * use //ffi comments in package import data
          to generate relocation entries and library loads.
        * call initffi in rt0.s if present
      
      R=r
      DELTA=117  (91 added, 3 deleted, 23 changed)
      OCL=33739
      CL=33750
      1f177cd8
    • Russ Cox's avatar
      bug189 · ef3e6810
      Russ Cox authored
      R=ken
      OCL=33745
      CL=33745
      ef3e6810
    • Russ Cox's avatar
      half of bug193 · ac9d833c
      Russ Cox authored
      R=ken
      OCL=33730
      CL=33730
      ac9d833c
    • Russ Cox's avatar
      linker work · fd6cdbd8
      Russ Cox authored
        * more elf constants from FreeBSD
        * simple relocation demo
      
      R=r
      DELTA=410  (354 added, 49 deleted, 7 changed)
      OCL=33689
      CL=33729
      fd6cdbd8
  3. 23 Aug, 2009 1 commit
  4. 22 Aug, 2009 9 commits
  5. 21 Aug, 2009 11 commits
    • Kai Backman's avatar
      mostly 64 bit support. · f50e7b15
      Kai Backman authored
      - fixed a number of places where we tried to allocate 64bit
        regs. added honeypot in regalloc to catch these in the future.
      - implemented quad copying in sgen
      - cgen64.c, add, mul
      - clearfat done
      - D_REGREG output from 5g (linker already knew about them)
      - gmove done
      - optoas almost done, last bit probably not needed
      - D_SHIFT support in list.c
      
      R=rsc
      APPROVED=rsc
      DELTA=963  (711 added, 112 deleted, 140 changed)
      OCL=33619
      CL=33688
      f50e7b15
    • Ian Lance Taylor's avatar
      Test composite literals with undeclared types. This crashed · 1f1551f1
      Ian Lance Taylor authored
      gccgo in a few different places, and crashes 6g as of this
      writing.  Note that the index in a composite literal must be
      looked up in a different namespace if the composite literal
      type turns out to be a struct.
      
      R=rsc
      DELTA=36  (36 added, 0 deleted, 0 changed)
      OCL=33681
      CL=33685
      1f1551f1
    • Austin Clements's avatar
      Make stop causes pointers so users outside the package can · 1068bcab
      Austin Clements authored
      type switch on them despite their private fields.  Add some
      tracing stuff.
      
      R=rsc
      APPROVED=rsc
      DELTA=18  (7 added, 0 deleted, 11 changed)
      OCL=33678
      CL=33683
      1068bcab
    • Ian Lance Taylor's avatar
      Enable these tests. Fix divconst.go and modconst.go to · 8bbe748b
      Ian Lance Taylor authored
      compile with the current compiler.  Adjust expected error
      message in method1.go to match 6g output.
      
      R=rsc
      DELTA=9  (2 added, 5 deleted, 2 changed)
      OCL=33674
      CL=33682
      8bbe748b
    • Rob Pike's avatar
      rewrite type rules for expressions and add shift examples · 83cbca56
      Rob Pike authored
      DELTA=48  (22 added, 0 deleted, 26 changed)
      OCL=33657
      CL=33668
      83cbca56
    • Robert Griesemer's avatar
      unexpected shift conversion behavior · cfa52e5e
      Robert Griesemer authored
      R=r
      DELTA=20  (20 added, 0 deleted, 0 changed)
      OCL=33646
      CL=33667
      cfa52e5e
    • Russ Cox's avatar
      linker work · 0e25c1dc
      Russ Cox authored
       * remove now-unused D_SBIG (was for typestrings)
       * rename elf64.[ch] to elf.[ch]
       * pull in elf headers from FreeBSD instead of writing our own
       * emit non-header ELF data in data section
       * stub out a few more ELF sections needed for dynamic loading
      
      R=r
      DELTA=1928  (1237 added, 635 deleted, 56 changed)
      OCL=33642
      CL=33658
      0e25c1dc
    • Robert Griesemer's avatar
      - unifying rules for var decls, short var decls, and assignments · ef45e64a
      Robert Griesemer authored
      DELTA=39  (4 added, 15 deleted, 20 changed)
      OCL=33639
      CL=33649
      ef45e64a
    • Kai Backman's avatar
      fix 386/arm builds · 005509e3
      Kai Backman authored
      R=rsc
      APPROVED=rsc
      DELTA=2  (2 added, 0 deleted, 0 changed)
      OCL=33640
      CL=33645
      005509e3
    • Russ Cox's avatar
      fix build · e107afdd
      Russ Cox authored
      TBR=r
      OCL=33623
      CL=33623
      e107afdd
    • Russ Cox's avatar
      symbol bugs. · 7b29dbb8
      Russ Cox authored
      do not emit unreachable data symbols.
      
      R=austin
      DELTA=103  (71 added, 4 deleted, 28 changed)
      OCL=33325
      CL=33622
      7b29dbb8
  6. 20 Aug, 2009 3 commits
    • Russ Cox's avatar
      FFI step 2: can ask for libc.so.6. · bd4161fc
      Russ Cox authored
      introduced explicit "data" symbol instead of etext
      to mark beginning of data, so that using larger
      alignment (i.e. 4MB like GNU loader) doesn't
      confuse garbage collector.
      
      split dodata into dodata and dobss in preparation
      for putting the dynamic data + headers in the data
      segment instead of stuffed at the beginning of the binary.
      
      R=r
      DELTA=52  (37 added, 3 deleted, 12 changed)
      OCL=33610
      CL=33618
      bd4161fc
    • Russ Cox's avatar
      add #include for time and ctime · 5bd266d1
      Russ Cox authored
      R=r
      DELTA=1  (1 added, 0 deleted, 0 changed)
      OCL=33615
      CL=33617
      5bd266d1
    • Nigel Tao's avatar
      Fix inflate.go's decompressing of a fixed Huffman block that has · b58ecb11
      Nigel Tao authored
      length-distance pairs.
      
      The new test data was generated by "gzip shesells.txt", which is
      presumably what you (rsc) did before, for the other test cases in
      gunzip_test.go.
      
      R=rsc
      APPROVED=rsc
      DELTA=21  (17 added, 2 deleted, 2 changed)
      OCL=33582
      CL=33616
      b58ecb11