Skip to content

Commit e87205c

Browse files
committed
auto merge of #9658 : michaelwoerister/rust/namespace_fixes, r=jdm
This should fix some outstanding namespace issues. It also fixes an issue with LLVM metadata uniquing that caused an LLVM assertion when compiling libstd. One thing to keep in mind is that the `-O` flag and the debug info flags are essentially incompatible. It may work but I would not consider this in any way supported at the moment. On the other hand, there is also good news: With the changes in this PR I am able to compile all of rust with extra-debug-info: ``` make RUSTFLAGS_STAGE2='-Zextra-debug-info' check ``` compiles the whole thing without warning and passes the whole test suite (given that `configure` is run with `--disable-optimize`). That's kind of nice `:)` Still, I'm reluctant to automatically close the related issues (#9167, #9190, #9268) without confirmation from the openers. I'll post to the individual threads once this gets merged.
2 parents c919629 + 85deeea commit e87205c

File tree

4 files changed

+109
-222
lines changed

4 files changed

+109
-222
lines changed

src/librustc/lib/llvm.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,8 @@ pub mod llvm {
19681968
DerivedFrom: DIType,
19691969
Elements: DIArray,
19701970
RunTimeLang: c_uint,
1971-
VTableHolder: ValueRef)
1971+
VTableHolder: ValueRef,
1972+
UniqueId: *c_char)
19721973
-> DICompositeType;
19731974

19741975
#[fast_ffi]

src/librustc/middle/trans/base.rs

-5
Original file line numberDiff line numberDiff line change
@@ -3119,11 +3119,6 @@ pub fn trans_crate(sess: session::Session,
31193119
symbol_hasher,
31203120
link_meta,
31213121
analysis.reachable);
3122-
3123-
if ccx.sess.opts.debuginfo {
3124-
debuginfo::initialize(ccx, &crate);
3125-
}
3126-
31273122
{
31283123
let _icx = push_ctxt("text");
31293124
trans_mod(ccx, &crate.module);

0 commit comments

Comments
 (0)