1. 07 12月, 2012 6 次提交
  2. 06 12月, 2012 2 次提交
    • R
      remove fenv saving/loading code from setjmp/longjmp on arm · 4b43f05f
      Rich Felker 提交于
      the issue is identical to the recent commit fixing the mips versions:
      despite other implementations doing this, it conflicts with the
      requirements of ISO C and it's a waste of time and code size.
      4b43f05f
    • R
      remove mips setjmp/longjmp code to save/restore fenv · b088f855
      Rich Felker 提交于
      nothing in the standard requires or even allows the fenv state to be
      restored by longjmp. restoring the exception flags is not such a big
      deal since it's probably valid to clobber them completely, but
      restoring the rounding mode yields an observable side effect not
      sanctioned by ISO C. saving/restoring it also wastes a few cycles and
      16 bytes of code.
      
      as for historical behavior, reportedly SGI IRIX did save/restore fenv,
      and this is where glibc and uClibc got the behavior from. a few other
      systems save/restore it too (on archs other than mips), even though
      this is apparently wrong. further details are documented here:
      
      http://www-personal.umich.edu/~williams/archive/computation/setjmp-fpmode.html
      
      as musl aims for standards conformance rather than coddling historical
      programs expecting non-conforming behavior, and as it's unlikely that
      any historical programs actually depend on the incorrect behavior
      (such programs would break on other archs, anyway), I'm making the
      change not to save/restore fenv on mips.
      b088f855
  3. 05 12月, 2012 1 次提交
  4. 01 12月, 2012 1 次提交
    • R
      fix ordering of shared library ctors with respect to libc init · a7936f61
      Rich Felker 提交于
      previously, shared library constructors were being called before
      important internal things like the environment (extern char **environ)
      and hwcap flags (needed for sjlj to work right with float on arm) were
      initialized in __libc_start_main. rather than trying to have to
      dynamic linker make sure this stuff all gets initialized right, I've
      opted to just defer calling shared library constructors until after
      the main program's entry point is reached. this also fixes the order
      of ctors to be the exact reverse of dtors, which is a desirable
      property and possibly even mandated by some languages.
      
      the main practical effect of this change is that shared libraries
      calling getenv from ctors will no longer fail.
      a7936f61
  5. 27 11月, 2012 1 次提交
  6. 26 11月, 2012 1 次提交
  7. 24 11月, 2012 2 次提交
  8. 19 11月, 2012 5 次提交
  9. 18 11月, 2012 8 次提交
    • S
      math: use float constants in exp10f.c · a764db9a
      Szabolcs Nagy 提交于
      use the 'f' suffix when a float constant is not representable
      a764db9a
    • S
      math: expl.c cleanup · e93a0fe4
      Szabolcs Nagy 提交于
      raise overflow and underflow when necessary, fix various comments.
      e93a0fe4
    • S
      math: expf.c cleanup · ab1772c5
      Szabolcs Nagy 提交于
      similar to exp.c cleanup: use scalbnf, don't return excess precision,
      drop some optimizatoins.
      exp.c was changed to be more consistent with expf.c code.
      ab1772c5
    • R
      fix typo in dynamic linker path file loading code · 71955b2f
      Rich Felker 提交于
      fortunately the memory corruption could not hurt anything, but it
      prevented clearing the final newline and thus prevented the last path
      element from working.
      71955b2f
    • R
      add stub versions of some missing optional pthread interfaces · 5c6443ac
      Rich Felker 提交于
      priority inheritance is not yet supported, and priority protection
      probably will not be supported ever unless there's serious demand for
      it (it's a fairly heavy-weight feature).
      
      per-thread cpu clocks would be nice to have, but to my knowledge linux
      is still not capable of supporting them. glibc fakes them by using the
      _process_ cpu-time clock and subtracting the thread creation time,
      which gives seriously incorrect semantics (worse than not supporting
      the feature at all), so until there's a way to do it right, it will
      remain as a stub that always fails.
      5c6443ac
    • S
      math: cleanup exp2.c exp2f.c and exp2l.c · 159c7655
      Szabolcs Nagy 提交于
      * old code relied on sign extension on right shift
      * exp2l ld64 wrapper was wrong
      * use scalbn instead of bithacks
      159c7655
    • R
      arg-skipping code for powerpc dynamic linker · bb9abdef
      Rich Felker 提交于
      this allows using the dynamic linker as a command to load programs.
      bb9abdef
    • S
      math: exp.c clean up · bbbf045c
      Szabolcs Nagy 提交于
      overflow and underflow was incorrect when the result was not stored.
      an optimization for the 0.5*ln2 < |x| < 1.5*ln2 domain was removed.
      did various cleanups around static constants and made the comments
      consistent with the code.
      bbbf045c
  10. 17 11月, 2012 1 次提交
    • R
      dynamic linking support for powerpc · a4db94ab
      Rich Felker 提交于
      incomplete but at least partly working. requires all files to be
      compiled in the new "secure" plt model, not the old one that put plt
      code in the data segment. TLS is untested but may work. invoking the
      dynamic linker explicitly to load a program does not yet handle argv
      correctly.
      a4db94ab
  11. 15 11月, 2012 1 次提交
  12. 14 11月, 2012 6 次提交
  13. 13 11月, 2012 5 次提交