1. 15 9月, 2012 1 次提交
    • R
      use vfork if possible in posix_spawn · d62f4e98
      Rich Felker 提交于
      vfork is implemented as the fork syscall (with no atfork handlers run)
      on archs where it is not available, so this change does not introduce
      any change in behavior or regression for such archs.
      d62f4e98
  2. 14 9月, 2012 2 次提交
  3. 11 9月, 2012 7 次提交
    • R
      improve mips syscall asm constraints to use immediates, if possible · cfc09b1e
      Rich Felker 提交于
      by using the "ir" constraint (immediate or register) and the carefully
      constructed instruction addu $2,$0,%2 which can take either an
      immediate or a register for %2, the new inline asm admits maximal
      optimization with no register spillage to the stack when the compiler
      successfully performs constant propagration, but still works by
      allocating a register when the syscall number cannot be recognized as
      a constant. in the case of syscalls with 0-3 arguments it barely
      matters, but for 4-argument syscalls, using an immediate for the
      syscall number avoids creating a stack frame for the syscall wrapper
      function.
      cfc09b1e
    • R
      eliminate assumption that mips syscall restart preserves r25 · b94067ee
      Rich Felker 提交于
      all past and current kernel versions have done so, but there seems to
      be no reason it's necessary and the sentiment from everyone I've asked
      has been that we should not rely on it. instead, use r7 (an argument
      register) which will necessarily be preserved upon syscall restart.
      however this only works for 0-3 argument syscalls, and we have to
      resort to the function call for 4-argument syscalls.
      b94067ee
    • R
      asm for memmove on i386 and x86_64 · 2bf46931
      Rich Felker 提交于
      for the sake of simplicity, I've only used rep movsb rather than
      breaking up the copy for using rep movsd/q. on all modern cpus, this
      seems to be fine, but if there are performance problems, there might
      be a need to go back and add support for rep movsd/q.
      2bf46931
    • R
      a9555a99
    • R
      reenable word-at-at-time copying in memmove · 1701e4f3
      Rich Felker 提交于
      before restrict was added, memove called memcpy for forward copies and
      used a byte-at-a-time loop for reverse copies. this was changed to
      avoid invoking UB now that memcpy has an undefined copying order,
      making memmove considerably slower.
      
      performance is still rather bad, so I'll be adding asm soon.
      1701e4f3
    • R
      fix ppoll with null timeout argument · 3b5e6905
      Rich Felker 提交于
      3b5e6905
    • R
      add LIBCC (compiler runtime) logic and override to configure · 2c1cd239
      Rich Felker 提交于
      this should both fix the issue with ARM needing -lgcc_eh (although
      that's really a bug in the libgcc build process that's causing
      considerable bloat, which should be fixed) and make it easier to build
      musl using clang/llvm in place of gcc. unfortunately I don't know a
      good way to detect and support pcc's -lpcc since it's not in pcc's
      default library search path...
      2c1cd239
  4. 10 9月, 2012 8 次提交
  5. 09 9月, 2012 12 次提交
  6. 08 9月, 2012 10 次提交