1. 31 1月, 2018 18 次提交
    • K
      Rollup merge of #47891 - eddyb:issue-47638, r=nikomatsakis · bacb5b72
      kennytm 提交于
      rustc_trans: keep LLVM types for trait objects anonymous.
      
      Fixes #47638 by reverting the addition of readable LLVM trait object type names.
      r? @nikomatsakis
      bacb5b72
    • K
      Rollup merge of #47890 - pftbest:no_trap, r=alexcrichton · 3d8279de
      kennytm 提交于
      [MSP430] Don't enable trap_unreachable option by default on msp.
      
      Since MSP430 doesn't meaningfully support faulting on illegal
      instructions, LLVM generates a call to abort() function instead
      of a trap instruction. Such calls are 4 bytes long, and that is
      too much overhead for such small target.
      
      r? @alexcrichton
      3d8279de
    • K
      Rollup merge of #47889 - alexcrichton:wasm-hidden-by-default, r=cramertj · fde67b6a
      kennytm 提交于
      rustc: Add an option to default hidden visibility
      
      This commit adds a new option to target specifictions to specify that symbols
      should be "hidden" visibility by default in LLVM. While there are no existing
      targets that take advantage of this the `wasm32-unknown-unknown` target will
      soon start to use this visibility. The LLD linker currently interprets `hidden`
      as "don't export this from the wasm module" which is what we want for 90% of our
      functions. While the LLD linker does have a "export this symbol" argument which
      is what we use for other linkers, it was also somewhat easier to do this change
      instead which'll involve less arguments flying around. Additionally there's no
      need for non-`hidden` visibility for most of our symbols!
      
      This change should not immediately impact the wasm targets as-is, but rather
      this is laying the foundations for soon integrating LLD as a linker for wasm
      code.
      fde67b6a
    • K
      Rollup merge of #47886 - alexcrichton:llvm-7-start, r=eddyb · 2c3e6ac8
      kennytm 提交于
      rustc: Add some defines for LLVM 7 compat
      
      I was testing out the tip support to see what's going on with wasm, and this was
      I believe the only issue encountered with LLVM 7 support so far.
      2c3e6ac8
    • K
      Rollup merge of #47884 - cuviper:run-pass-sse2, r=alexcrichton · ffb6b466
      kennytm 提交于
      Ignore run-pass/sse2 when using system LLVM
      
      This is a test of `target_feature`, which needs a rust-specific patch to
      LLVM to add `MCSubtargetInfo::getFeatureTable()`.
      ffb6b466
    • K
      Rollup merge of #47876 - GuillaumeGomez:associated-const-error, r=nikomatsakis · 38587a7b
      kennytm 提交于
      Update associated constants error message
      
      Fixes #47570.
      38587a7b
    • K
      Rollup merge of #47875 - jcowgill:mips-clobber-at, r=rkruppe · 6c0d5f58
      kennytm 提交于
      rustc_trans: clobber $1 (aka $at) on mips
      
      This copies what clang does. There is a long explanation as to why this is needed in the clang source (tools/clang/lib/Basic/Targets/Mips.h).
      6c0d5f58
    • K
      Rollup merge of #47874 - jcowgill:mips-from_raw_os_error, r=dtolnay · 33d175f7
      kennytm 提交于
      std: use more portable error number in from_raw_os_error docs
      
      On MIPS, error number 98 is not `EADDRINUSE` (it is `EPROTOTYPE`). To fix the resulting test failure this causes, use a more portable error number in the example documentation. `EINVAL` shold be more reliable because it was defined in the original Unix as 22 so hopefully most derivatives have defined it the same way.
      33d175f7
    • K
      Rollup merge of #47844 - CAD97:patch-1, r=estebank · c66c6b7e
      kennytm 提交于
      Fix regression: account for trait methods in arg count mismatch error
      
      Fixed #47706 (https://github.com/rust-lang/rust/issues/47706#issuecomment-361161495)
      
      Original PR #47747 missed methods on trait definitions.
      
      This edit was done in GitHub. I think I got the signature of the variant right, going by the ICE debug output and the other cases above.
      c66c6b7e
    • K
      Rollup merge of #47840 - penpalperson:master, r=bluss · 03707172
      kennytm 提交于
      Marked Debug implementations for primitive types as #[inline]
      
      Change for issue #47792.
      03707172
    • K
      Rollup merge of #47838 - euclio:snakecase-suggestion, r=petrochenkov · 89ea6d2a
      kennytm 提交于
      use correct casing for rename suggestions
      
      If the original name is uppercase, use camel case. Otherwise, use snake
      case.
      89ea6d2a
    • B
      Auto merge of #46666 - clarcharr:duration_core, r=alexcrichton · b8f2674e
      bors 提交于
      Move Duration to libcore
      
      Fixes #46520; should be merged after #46508.
      b8f2674e
    • E
      973756d7
    • V
      [MSP430] Don't enable trap_unreachable option by default on msp. · 1e380cbf
      Vadzim Dambrouski 提交于
      Since MSP430 doesn't meaningfully support faulting on illegal
      instructions, LLVM generates a call to abort() function instead
      of a trap instruction. Such calls are 4 bytes long, and that is
      too much overhead for such small target.
      1e380cbf
    • A
      rustc: Add an option to default hidden visibility · a2cc5d68
      Alex Crichton 提交于
      This commit adds a new option to target specifictions to specify that symbols
      should be "hidden" visibility by default in LLVM. While there are no existing
      targets that take advantage of this the `wasm32-unknown-unknown` target will
      soon start to use this visibility. The LLD linker currently interprets `hidden`
      as "don't export this from the wasm module" which is what we want for 90% of our
      functions. While the LLD linker does have a "export this symbol" argument which
      is what we use for other linkers, it was also somewhat easier to do this change
      instead which'll involve less arguments flying around. Additionally there's no
      need for non-`hidden` visibility for most of our symbols!
      
      This change should not immediately impact the wasm targets as-is, but rather
      this is laying the foundations for soon integrating LLD as a linker for wasm
      code.
      a2cc5d68
    • A
      rustc: Add some defines for LLVM 7 compat · d492fe0a
      Alex Crichton 提交于
      I was testing out the tip support to see what's going on with wasm, and this was
      I believe the only issue encountered with LLVM 7 support so far.
      d492fe0a
    • J
      Ignore run-pass/sse2 when using system LLVM · eaebfd44
      Josh Stone 提交于
      This is a test of `target_feature`, which needs a rust-specific patch to
      LLVM to add `MCSubtargetInfo::getFeatureTable()`.
      eaebfd44
    • G
      Update associated constants error message · f6a6d840
      Guillaume Gomez 提交于
      f6a6d840
  2. 30 1月, 2018 22 次提交