Skip to content

Commit 6074556

Browse files
committed
---
yaml --- r: 234812 b: refs/heads/tmp c: cf10296 h: refs/heads/master v: v3
1 parent 0febeee commit 6074556

File tree

8 files changed

+21
-25
lines changed

8 files changed

+21
-25
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: d2e13e822a73e0ea46ae9e21afdd3155fc997f6d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 0c05492ee17c544600d3e1ea2740f8b398d01fc0
28+
refs/heads/tmp: cf102966dedaccb62c6691adb589352d2bd2629f
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: ab792abf1fcc28afbd315426213f6428da25c085
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/src/doc/trpl/error-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ string and add a flag to the Option variable. Once were done that, Getopts does
20642064
let mut opts = Options::new();
20652065
opts.optopt("f", "file", "Choose an input file, instead of using STDIN.", "NAME");
20662066
opts.optflag("h", "help", "Show this usage message.");
2067-
opts.optflag("q", "quiet", "Silences errors and warnings.");
2067+
opts.optflag("q", "quit", "Silences errors and warnings.");
20682068
...
20692069
```
20702070

branches/tmp/src/librustc_back/target/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,6 @@ pub struct TargetOptions {
157157
/// Whether to disable linking to compiler-rt. Defaults to false, as LLVM
158158
/// will emit references to the functions that compiler-rt provides.
159159
pub no_compiler_rt: bool,
160-
/// Whether to disable linking to the default libraries, typically corresponds
161-
/// to `-nodefaultlibs`. Defaults to true.
162-
pub no_default_libraries: bool,
163160
/// Dynamically linked executables can be compiled as position independent
164161
/// if the default relocation model of position independent code is not
165162
/// changed. This is a requirement to take advantage of ASLR, as otherwise
@@ -215,7 +212,6 @@ impl Default for TargetOptions {
215212
linker_is_gnu: false,
216213
has_rpath: false,
217214
no_compiler_rt: false,
218-
no_default_libraries: true,
219215
position_independent_executables: false,
220216
pre_link_objects: Vec::new(),
221217
post_link_objects: Vec::new(),
@@ -323,7 +319,6 @@ impl Target {
323319
key!(linker_is_gnu, bool);
324320
key!(has_rpath, bool);
325321
key!(no_compiler_rt, bool);
326-
key!(no_default_libraries, bool);
327322
key!(pre_link_args, list);
328323
key!(post_link_args, list);
329324
key!(allow_asm, bool);

branches/tmp/src/librustc_back/target/windows_base.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ pub fn opts() -> TargetOptions {
2323
exe_suffix: ".exe".to_string(),
2424
staticlib_prefix: "".to_string(),
2525
staticlib_suffix: ".lib".to_string(),
26-
// Unfortunately right now passing -nodefaultlibs to gcc on windows
27-
// doesn't work so hot (in terms of native dependencies). This flag
28-
// should hopefully be removed one day though!
29-
no_default_libraries: false,
3026
is_like_windows: true,
3127
archive_format: "gnu".to_string(),
3228
pre_link_args: vec!(

branches/tmp/src/librustc_trans/back/link.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -970,9 +970,7 @@ fn link_args(cmd: &mut Linker,
970970
// default. Note that this does not happen for windows because windows pulls
971971
// in some large number of libraries and I couldn't quite figure out which
972972
// subset we wanted.
973-
if t.options.no_default_libraries {
974-
cmd.no_default_libraries();
975-
}
973+
cmd.no_default_libraries();
976974

977975
// Take careful note of the ordering of the arguments we pass to the linker
978976
// here. Linkers will assume that things on the left depend on things to the

branches/tmp/src/librustc_trans/back/linker.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,12 @@ impl<'a> Linker for GnuLinker<'a> {
159159
}
160160

161161
fn no_default_libraries(&mut self) {
162-
self.cmd.arg("-nodefaultlibs");
162+
// Unfortunately right now passing -nodefaultlibs to gcc on windows
163+
// doesn't work so hot (in terms of native dependencies). This if
164+
// statement should hopefully be removed one day though!
165+
if !self.sess.target.target.options.is_like_windows {
166+
self.cmd.arg("-nodefaultlibs");
167+
}
163168
}
164169

165170
fn build_dylib(&mut self, out_filename: &Path) {

branches/tmp/src/libstd/sys/common/unwind/mod.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,17 @@ pub unsafe fn try<F: FnOnce()>(f: F) -> Result<(), Box<Any + Send>> {
148148
// care of exposing correctly.
149149
unsafe fn inner_try(f: fn(*mut u8), data: *mut u8)
150150
-> Result<(), Box<Any + Send>> {
151-
let prev = PANICKING.with(|s| s.get());
152-
PANICKING.with(|s| s.set(false));
153-
let ep = intrinsics::try(f, data);
154-
PANICKING.with(|s| s.set(prev));
155-
if ep.is_null() {
156-
Ok(())
157-
} else {
158-
Err(imp::cleanup(ep))
159-
}
151+
PANICKING.with(|s| {
152+
let prev = s.get();
153+
s.set(false);
154+
let ep = intrinsics::try(f, data);
155+
s.set(prev);
156+
if ep.is_null() {
157+
Ok(())
158+
} else {
159+
Err(imp::cleanup(ep))
160+
}
161+
})
160162
}
161163

162164
fn try_fn<F: FnOnce()>(opt_closure: *mut u8) {

branches/tmp/src/rt/hoedown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 4638c60dedfa581fd5fa7c6420d8f32274c9ca0b
1+
Subproject commit 8ff3d82f2dde2cead36402a59c62d3e266c2f6ec

0 commit comments

Comments
 (0)