Commit Graph

46619 Commits

Author SHA1 Message Date
bors
2a6f6f26f4 Auto merge of #28584 - ranma42:simpler-innertry, r=alexcrichton
This simplifies a little inner_try and avoids multiple accesses to TLS.
2015-09-22 16:24:06 +00:00
bors
0c05492ee1 Auto merge of #28582 - jedireza:patch-1, r=huonw
Fixed typo in example code.
2015-09-22 12:59:28 +00:00
bors
f17cc4cf04 Auto merge of #28578 - gandro:nodefaultlibs, r=alexcrichton
This patch basically adds a target option for omitting the `-nodefaultlibs` flag when invoking the linker. I am not sure if this is the correct or only way to approach this problem, so any feedback is welcome.

Motivation: I'm currently working on a Rust target specification for the [rumprun](/rumpkernel/rumprun) unikernel. rumprun is based on rump kernels and uses NetBSDs libc and drivers to provide a POSIXy environment. It provides its own linker wrapper that generates binaries which can be "baked" into a unikernel after configuration. Using `-nodefaultlibs` on the rumprun linker will prevent it from selecting the search paths for the rumprun libraries. My current target implementation for rumprun is here: gandro/rust@295744b2ee

Currently, only a target that `is_like_windows` will omit the `-nodefaultlibs` flag, but since rumprun is not like Windows otherwise, I think a separate flag makes more sense. This might be a breaking change for target specifications that have the `is_like_windows` option set to true. Such targets need to set `no_default_libraries` to false in order to restore the old behavior.
2015-09-22 09:19:47 +00:00
Andrea Canciani
cf102966de Simplify inner_try in std::rt::unwind::try
Resolve the TLS PANICKING variable just once and re-use it as needed.
2015-09-22 11:07:27 +02:00
bors
0b089cd2d5 Auto merge of #28574 - Eljay:hoedown-3.0.5, r=alexcrichton
Closes #28251.
2015-09-22 05:20:01 +00:00
Reza Akhavan
6de473addd Update error-handling.md 2015-09-21 21:33:15 -07:00
bors
f07f4ef743 Auto merge of #28427 - DiamondLovesYou:gdb-debug-script-load, r=alexcrichton
This is so LLVM isn't forced to load every byte of it. Also sets the alignment of
the load. Adds a test for the debug script section.

r? @alexcrichton
2015-09-22 03:35:55 +00:00
bors
e9d2587766 Auto merge of #28364 - petrochenkov:usegate, r=alexcrichton
Closes https://github.com/rust-lang/rust/issues/28075
Closes https://github.com/rust-lang/rust/issues/28388

r? @eddyb 
cc @brson
2015-09-22 01:12:26 +00:00
Sebastian Wicki
920f32becd Add no_default_libraries target linker option
If set to false, `-nodefaultlibs` is not passed to the linker. This
was the default behavior on Windows, but it should be configurable
per target.

This is a [breaking-change] for target specifications that have
the `is_like_windows` option set to true. Such targets need to
set `no_default_libraries` to false in order to restore the old
behavior.
2015-09-22 00:33:40 +02:00
bors
f93ab64d4a Auto merge of #28567 - sanxiyn:save-lto, r=alexcrichton
This is useful for debugging LTO issues, #28066 for example.
2015-09-21 22:32:28 +00:00
Richard Diamond
9a24025661 Avoid loading the whole gdb debug scripts section.
This is so LLVM isn't forced to load every byte of it. Also sets the alignment of
the load. Adds a test for the debug script section.
2015-09-21 15:43:52 -05:00
Eljay
1e71af000c Upgrade hoedown to 3.0.5. 2015-09-21 21:07:45 +01:00
bors
7e8d19b24d Auto merge of #28566 - Ms2ger:AsmDialect, r=sanxiyn 2015-09-21 20:06:50 +00:00
bors
5120f4a3f9 Auto merge of #28562 - llogiq:shootout, r=alexcrichton
Since 1.3.0 the BufWriter has seen tremendous speedups. So when I use it in the shootout benchmarks, I see some nice speedup (which up to 1.2.0 was nixed by the pessimizations during initialization).
2015-09-21 18:21:56 +00:00
bors
547fd5c11e Auto merge of #28531 - whitequark:patch-1, r=Gankro
With -O2, LLVM's inliner can remove this code, but this does not happen
with -O1 and lower. As a result, dropping Vec<u8> was linear with length,
resulting in abysmal performance for large buffers.

See issue #24280.
2015-09-21 16:36:26 +00:00
Seo Sanghyeon
9ba5db6690 Save bitcode before LTO when -C save-temps is given 2015-09-22 00:33:17 +09:00
Ms2ger
184c8a99ed Use ast::AsmDialect's variants qualified, and drop the pointless prefix. 2015-09-21 16:48:25 +02:00
bors
0a96756178 Auto merge of #28565 - apasel422:issue-28561, r=Manishearth
Closes #28561.

r? @Manishearth
2015-09-21 14:45:49 +00:00
Andrew Paseltiner
22f86d09e9 Add tests for macro-based impls
Closes #28561.
2015-09-21 10:42:18 -04:00
Ms2ger
22fa1aaade Remove hir::AsmDialect in favour of ast::AsmDialect. 2015-09-21 16:12:53 +02:00
bors
c06f464d01 Auto merge of #28563 - baskerville:trpl-typo, r=bluss 2015-09-21 12:24:52 +00:00
Bastien Dejean
5b41488f3a TRPL: Fix typo 2015-09-21 12:37:58 +02:00
bors
6217b002ba Auto merge of #28560 - Manishearth:fix-fnptr-impls, r=nrc
(12 was chosen to be consistent with what we do for tuples)

Fixes #28559
2015-09-21 10:37:08 +00:00
llogiq
78eee36e5b Use BufWriter in fasta-redux for a nice speedup 2015-09-21 11:24:58 +02:00
Manish Goregaokar
5f66c701b1 Make function pointers implement traits for up to 12 parameters
(12 was chosen to be consistent with what we do for tuples)

Fixes #28559
2015-09-21 14:21:30 +05:30
bors
f859507de8 Auto merge of #28548 - steveklabnik:gh28545, r=alexcrichton
so say so in the FAQ

Fixes #28545
2015-09-21 06:07:03 +00:00
bors
a33e48771e Auto merge of #28555 - GuillaumeGomez:error_codes, r=Manishearth 2015-09-21 04:24:06 +00:00
bors
d2faba28c0 Auto merge of #28552 - apasel422:issue-28527, r=Manishearth
Closes #28527.

r? @Manishearth
2015-09-21 02:40:40 +00:00
bors
0418a43fa3 Auto merge of #28541 - baskerville:trpl-two-typos, r=steveklabnik
r? @steveklabnik
2015-09-21 00:58:03 +00:00
bors
b7f49ca0fa Auto merge of #28539 - rkruppe:shuffle-num-internals, r=alexcrichton
Move private bignum module to core::num, because it is not only used in flt2dec.
Extract private 80-bit soft-float into new core::num module for the same reason.
2015-09-20 23:14:58 +00:00
bors
79d259e618 Auto merge of #28534 - marcusklaas:fix-mod-inner-span, r=alexcrichton
Fixes https://github.com/rust-lang/rust/issues/28520.

r? @alexcrichton or @nrc?
2015-09-20 21:31:24 +00:00
Andrew Paseltiner
85b8b447fa Replace ast::Mac_ enum with struct
Closes #28527.
2015-09-20 17:15:04 -04:00
Steve Klabnik
8355d3a60f We are production ready
so say so in the FAQ

Fixes #28545
2015-09-20 15:53:47 -04:00
bors
2c06bb96ea Auto merge of #28429 - wesleywiser:split_up_lints, r=alexcrichton
This breaks out some of the lints defined in `librustc_lint/builtin.rs` into two new modules: `unused` for the `UNUSED_*` lints and `bad_style` for the various style related lints as suggested in #22206. `builtin.rs` could probably get broken up more but this is a start.
2015-09-20 19:48:12 +00:00
whitequark
77f5da77a9 Add comment. 2015-09-20 22:23:35 +03:00
whitequark
6beb4ba1aa Fix style. 2015-09-20 22:15:39 +03:00
bors
6602b2f1c7 Auto merge of #28501 - semarie:stdcpp-path, r=alexcrichton
By default, the linker in use under OpenBSD is the linker of base, which
don't include /usr/local/lib where libstdc++ of gcc-4.9 lives. We need
to add this directory to linker-path-search (using -L).

Search the path of libstdc++.a, which is a known name (libstdc++.so has
SO_VERSION) in the same directory.

r? @alexcrichton 

this commit needs #28495 to be commited first. It should be the last piece for building rustc under OpenBSD from scratch.
2015-09-20 18:04:52 +00:00
Bastien Dejean
856f97a15e TRPL: Fix two typos 2015-09-20 19:13:43 +02:00
Sébastien Marie
049d76bdd2 Pass libstdc++.so path to linker under OpenBSD
By default, the linker in use under OpenBSD is the linker of base, which
don't include /usr/local/lib where libstdc++ of gcc-4.9 lives. We need
to add this directory to linker-path-search (using -L).

Search the path of libstdc++.a, which is a known name (libstdc++.so has
SO_VERSION) in the same directory.
2015-09-20 19:06:37 +02:00
Robin Kruppe
cd67ec306f Reorganize core::num internals
Move private bignum module to core::num, because it is not only used in flt2dec.
Extract private 80-bit soft-float into new core::num module for the same reason.
2015-09-20 18:39:08 +02:00
bors
f5a64a678f Auto merge of #28499 - semmaz:doc-anchor-fix, r=steveklabnik
This changes how rustic generate `id` and `href` attributes for section header anchor. Now they are more github-like.

Also fixes breakage in docs caused by this and broken links in "Error Handling" section of book.

r? @steveklabnik
cc @alexcrichton
2015-09-20 16:21:43 +00:00
bors
aed5c3a1c8 Auto merge of #28532 - Eljay:misc-fixes, r=bluss
As the title says, just cleaning up some old stuff.
2015-09-20 13:39:57 +00:00
Marcus Klaas
51f4a241bf Fix the overly long inner spans of inline mods 2015-09-20 14:06:58 +02:00
Lee Jeffery
140e2d3a09 Miscellaneous cleanup for old issues. 2015-09-20 11:37:08 +01:00
Simon Mazur
09c1ce18a2 rustdoc: added tests for header rendering & minor fixes 2015-09-20 13:24:47 +03:00
Simon Mazur
d6f0a21e20 rustdoc: remove redundant test 2015-09-20 13:24:47 +03:00
Simon Mazur
d539f451c4 rustdoc: some code style improvements 2015-09-20 13:24:47 +03:00
Simon Mazur
970b86b1bb doc: Fix broken links 2015-09-20 13:24:47 +03:00
Simon Mazur
b8cfa59be0 rustdoc: Changed section headers anchor rendering 2015-09-20 13:12:27 +03:00
Guillaume Gomez
6e1c675ff0 Add error codes for librustc_typeck 2015-09-20 12:02:56 +02:00