]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agostd: Link to gcc_s on NetBSD
Alex Crichton [Mon, 21 Mar 2016 18:23:44 +0000 (11:23 -0700)]
std: Link to gcc_s on NetBSD

Currently the nightlies we're producing fail when linking some C code into a
Rust application with the error message:

    libgcc_s.so.1: error adding symbols: DSO missing from command line

By linking `gcc_s` instead of `gcc` this error goes away. I haven't tested this
on NetBSD itself, but should help get the Linux cross-compile image moreso up
and working!

8 years agoAuto merge of #32351 - eddyb:rollup, r=eddyb
bors [Sat, 19 Mar 2016 11:42:02 +0000 (04:42 -0700)]
Auto merge of #32351 - eddyb:rollup, r=eddyb

Rollup of 14 pull requests

- Successful merges: #32265, #32269, #32271, #32288, #32308, #32316, #32319, #32321, #32327, #32329, #32332, #32337, #32342, #32347
- Failed merges:

8 years agoRollup merge of #32347 - Amanieu:volatile_fat_ptr, r=eddyb
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:02 +0000 (12:30 +0200)]
Rollup merge of #32347 - Amanieu:volatile_fat_ptr, r=eddyb

Fix volatile stores of fat pointers

This was previously causing an LLVM assertion.

r? @eddyb

8 years agoRollup merge of #32342 - petevine:patch-1, r=alexcrichton
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:02 +0000 (12:30 +0200)]
Rollup merge of #32342 - petevine:patch-1, r=alexcrichton

Use explicit -march flags in the i586 mk file

`-march` should definitely go last, after the environment `$C(XX)FLAGS`, or it's going to remain brittle.

This should fix cross-compilation issues on x86_64 (possibly x86 too on some newer distros) - it was far too assuming of me to expect you really had to want i586 using your own flags.

8 years agoRollup merge of #32337 - dotdash:llvm-aa-perf, r=alexcrichton
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:02 +0000 (12:30 +0200)]
Rollup merge of #32337 - dotdash:llvm-aa-perf, r=alexcrichton

Update LLVM to include a backport to restore AA performance

cc #31435
r? @alexcrichton

8 years agoRollup merge of #32332 - jonas-schievink:issue32323, r=arielb1
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:01 +0000 (12:30 +0200)]
Rollup merge of #32332 - jonas-schievink:issue32323, r=arielb1

liveness: substitute bound regions with free ones before normalizing the return type

Fixes #32323

r? @arielb1

8 years agoRollup merge of #32329 - sfackler:assert-recover-safe-pub, r=aturon
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:01 +0000 (12:30 +0200)]
Rollup merge of #32329 - sfackler:assert-recover-safe-pub, r=aturon

Make AssertRecoverSafe's field public

It's basically the very definition of a newtype, so we might as well
make things easy on people and let them construct and access it
directly.

r? @aturon

8 years agoRollup merge of #32327 - toddlucas:master, r=apasel422
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:01 +0000 (12:30 +0200)]
Rollup merge of #32327 - toddlucas:master, r=apasel422

Minor phrasing adjustment to book references-and-borrowing

8 years agoRollup merge of #32321 - alexcrichton:cross-to-netbsd, r=japaric
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:01 +0000 (12:30 +0200)]
Rollup merge of #32321 - alexcrichton:cross-to-netbsd, r=japaric

rustbuild: Fix cross to netbsd from Linux

Apparently the NetBSD compiler-rt builds into the linux directory as well.
I'm... detecting a trend!

8 years agoRollup merge of #32319 - benaryorg:patch-3, r=alexcrichton
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:01 +0000 (12:30 +0200)]
Rollup merge of #32319 - benaryorg:patch-3, r=alexcrichton

documentation fix in RELEASES.md

f32 should probably be denoted as 0.0 as it might improve readability.

8 years agoRollup merge of #32316 - tclfs:patch-3, r=steveklabnik
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:01 +0000 (12:30 +0200)]
Rollup merge of #32316 - tclfs:patch-3, r=steveklabnik

docs: `let` introduces a statement

I changes *expression* to *statement* to make more accurate, because in Rust, `let` introduces a declaration statement.

8 years agoRollup merge of #32308 - bombless:patch-2, r=alexcrichton
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:00 +0000 (12:30 +0200)]
Rollup merge of #32308 - bombless:patch-2, r=alexcrichton

Fix usability problem when browse document locally

You cannot use `history.replaceState` when you browse locally, it breaks the security policy of Chrome and perhaps other browsers.
Closes https://github.com/rust-lang/rust/issues/32307
Thank @crumblingstatue for the help!

8 years agoRollup merge of #32288 - tclfs:patch-2, r=apasel422
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:00 +0000 (12:30 +0200)]
Rollup merge of #32288 - tclfs:patch-2, r=apasel422

docs: One typo

I think it's a mistake of spelling.

8 years agoRollup merge of #32271 - frewsxcv:compiletest-ignored-help-note, r=nikomatsakis
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:00 +0000 (12:30 +0200)]
Rollup merge of #32271 - frewsxcv:compiletest-ignored-help-note, r=nikomatsakis

Add comment about opt-in nature of compiletest note/help messages.

The opt-in functionality was proposed and discussed in
https://github.com/rust-lang/rust/issues/21195

8 years agoRollup merge of #32269 - richo:impl-totokens-p-implitem, r=nikomatsakis
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:00 +0000 (12:30 +0200)]
Rollup merge of #32269 - richo:impl-totokens-p-implitem, r=nikomatsakis

syntax: impl ToTokens for P<ast::ImplItem>

I'm working on updating zinc for latest rust, and it appears that I need this impl[0].

More generally, I realise that libsyntax is "Whatever the compiler team needs to build a compiler", but should I just open a PR fleshing this out for all types?

https://github.com/hackndev/zinc/blob/master/ioreg/src/builder/setter.rs#L194-L197

8 years agoRollup merge of #32265 - tclfs:patch-1, r=alexcrichton
Eduard-Mihai Burtescu [Sat, 19 Mar 2016 10:30:00 +0000 (12:30 +0200)]
Rollup merge of #32265 - tclfs:patch-1, r=alexcrichton

FreeBSD has already supported Cargo

Both Packages and Ports of FreeBSD have Cargo in present.

8 years agoAuto merge of #32304 - pravic:fix-variadic-ffi-test, r=alexcrichton
bors [Sat, 19 Mar 2016 08:53:11 +0000 (01:53 -0700)]
Auto merge of #32304 - pravic:fix-variadic-ffi-test, r=alexcrichton

test: Fix missing call of function pointer

Also an unused variable warning was here.

8 years agoAuto merge of #32256 - bluss:float-fast-math, r=alexcrichton
bors [Sat, 19 Mar 2016 04:12:00 +0000 (21:12 -0700)]
Auto merge of #32256 - bluss:float-fast-math, r=alexcrichton

Add intrinsics for float arithmetic with `fast` flag enabled

Add intrinsics for float arithmetic with `fast` flag enabled

`fast` a.k.a UnsafeAlgebra is the flag for enabling all "unsafe"
(according to llvm) float optimizations.

See LangRef for more information http://llvm.org/docs/LangRef.html#fast-math-flags

Providing these operations with less associativity rules (for example)
is useful to numerical applications.

For example, the summation loop:

    let sum = 0.;
    for element in data {
        sum += *element;
    }

Using the default floating point semantics, this loop expresses that the
floats must be added in a sequence, one after another. This constraint
is usually completely unintended, and it means that no auto-vectorization
is possible.

8 years agoFix volatile stores of fat pointers
Amanieu d'Antras [Sat, 19 Mar 2016 02:18:33 +0000 (02:18 +0000)]
Fix volatile stores of fat pointers

8 years agoAuto merge of #32050 - achanda:from-slice-v4, r=alexcrichton
bors [Sat, 19 Mar 2016 00:30:22 +0000 (17:30 -0700)]
Auto merge of #32050 - achanda:from-slice-v4, r=alexcrichton

Add an impl for From trait

Converts a u8 slice to a Ipv4Addr
More discussion on this here: https://github.com/rust-lang/rfcs/pull/1498#issuecomment-191921655

8 years agoUse explicit -march flags in the i586 mk file
petevine [Fri, 18 Mar 2016 23:04:27 +0000 (00:04 +0100)]
Use explicit -march flags in the i586 mk file

`-march` should definitely go last, after the environment C(XX)FLAGS, or it's back to square one.
This fixes cross-compilation issues on x86_64.

8 years agoAuto merge of #31977 - bluss:partial-eq-save, r=brson
bors [Fri, 18 Mar 2016 21:36:49 +0000 (14:36 -0700)]
Auto merge of #31977 - bluss:partial-eq-save, r=brson

derive: Avoid emitting provided PartialEq, PartialOrd methods for c-like enums

derive: Avoid emitting provided PartialEq, PartialOrd method for c-like enums

`ne` is completely symmetrical with the method `eq`, and we can save
rust code size and compilation time here if we only emit one of them
when possible.

One case where it's easy to recognize is when it's a C-like enum. Most
other cases can not omit ne, because any value field may have a custom
PartialEq implementation.

8 years agoAuto merge of #32309 - aturon:overlap-warning, r=nikomatsakis
bors [Fri, 18 Mar 2016 18:30:30 +0000 (11:30 -0700)]
Auto merge of #32309 - aturon:overlap-warning, r=nikomatsakis

Change inherent overlap error to a warning for now, to ease the breakage

Closes #32247

r? @nikomatsakis

8 years agoChange inherent overlap error to a warning for now, to ease the breakage.
Aaron Turon [Thu, 17 Mar 2016 16:05:24 +0000 (09:05 -0700)]
Change inherent overlap error to a warning for now, to ease the breakage.

8 years agoAdd intrinsics for float arithmetic with `fast` flag enabled
Ulrik Sverdrup [Mon, 14 Mar 2016 23:01:12 +0000 (00:01 +0100)]
Add intrinsics for float arithmetic with `fast` flag enabled

`fast` a.k.a UnsafeAlgebra is the flag for enabling all "unsafe"
(according to llvm) float optimizations.

See LangRef for more information http://llvm.org/docs/LangRef.html#fast-math-flags

Providing these operations with less precise associativity rules (for
example) is useful to numerical applications.

For example, the summation loop:

    let sum = 0.;
    for element in data {
        sum += *element;
    }

Using the default floating point semantics, this loop expresses the
floats must be added in a sequence, one after another. This constraint
is usually completely unintended, and it means that no autovectorization
is possible.

8 years agoFix tidy
Steven Fackler [Fri, 18 Mar 2016 16:30:36 +0000 (09:30 -0700)]
Fix tidy

8 years agoAuto merge of #32282 - sfackler:panic-hook, r=alexcrichton
bors [Fri, 18 Mar 2016 16:21:43 +0000 (09:21 -0700)]
Auto merge of #32282 - sfackler:panic-hook, r=alexcrichton

Adjustments to the panic hook API

Rename `set_handler` and `take_handler` to `set_hook` and `take_hook` since we're not actually "handling" (i.e. fixing) anything.

Also alter `set_hook` to take a `Box<Fn(&PanicInfo) + 'static + Sync + Send>` rather than a parameterized closure since there's otherwise no easy way to re-register a hook that came from `take_hook`.

cc #30449

r? @aturon

8 years agoAdd a since to deprecations
Steven Fackler [Fri, 18 Mar 2016 16:13:55 +0000 (09:13 -0700)]
Add a since to deprecations

8 years agoUpdate LLVM to include a backport to restore AA performance
Björn Steinbrink [Fri, 18 Mar 2016 14:51:17 +0000 (15:51 +0100)]
Update LLVM to include a backport to restore AA performance

cc #31435

8 years agoAuto merge of #32080 - eddyb:transcendent, r=nikomatsakis
bors [Fri, 18 Mar 2016 13:54:58 +0000 (06:54 -0700)]
Auto merge of #32080 - eddyb:transcendent, r=nikomatsakis

Refactor call & function handling in trans, enable MIR bootstrap.

Non-Rust and Rust ABIs were combined into a common codepath, which means:
* The ugly `__rust_abi` "clown shoes" shim for C->Rust FFI is gone, fixes #10116.
* Methods, *including virtual ones* support non-Rust ABIs, closes #30235.
* Non-Rust ABIs also pass fat pointers in two arguments; the result should be identical.
* Zero-sized types are never passed as arguments; again, behavior shouldn't change.

Additionally, MIR support for calling intrinsics (through old trans) was implemented.
Alongside assorted fixes, it enabled MIR to launch :rocket: and do a *complete* bootstrap.
To try it yourself, `./configure --enable-orbit` *or* `make RUSTFLAGS="-Z orbit"`.

8 years agotests: Update run-make/issue-25581 to reflect how fat pointers are passed.
Eduard Burtescu [Fri, 18 Mar 2016 13:54:27 +0000 (15:54 +0200)]
tests: Update run-make/issue-25581 to reflect how fat pointers are passed.

8 years agotrans: Don't ignore zero-sized struct arguments on x86_64-pc-windows-gnu.
Eduard Burtescu [Fri, 18 Mar 2016 12:28:11 +0000 (14:28 +0200)]
trans: Don't ignore zero-sized struct arguments on x86_64-pc-windows-gnu.

8 years agoliveness: substitute bound regions with free ones before normalizing the return type
Jonas Schievink [Fri, 18 Mar 2016 10:34:51 +0000 (11:34 +0100)]
liveness: substitute bound regions with free ones before normalizing the return type

Fixes #32323

8 years agoAuto merge of #32248 - dstu:master, r=alexcrichton
bors [Fri, 18 Mar 2016 09:46:35 +0000 (02:46 -0700)]
Auto merge of #32248 - dstu:master, r=alexcrichton

Expose the key of Entry variants for HashMap and BTreeMap.

This PR addresses [issue 1541](https://github.com/rust-lang/rfcs/issues/1541) by exposing the key of `HashMap` and `BTreeMap` entry variants. Basic tests are provided.

8 years agoAuto merge of #32207 - achanda:ipv6-doc, r=alexcrichton
bors [Fri, 18 Mar 2016 06:52:55 +0000 (23:52 -0700)]
Auto merge of #32207 - achanda:ipv6-doc, r=alexcrichton

Add is_documentation for IPv6

This function returns true if the given IPv6 is reserved for
documentation. Also, reject this block in the is_global check

8 years agoMake AssertRecoverSafe's field public
Steven Fackler [Fri, 18 Mar 2016 05:43:17 +0000 (22:43 -0700)]
Make AssertRecoverSafe's field public

It's basically the very definition of a newtype, so we might as well
make things easy on people and let them construct and access it
directly.

8 years agotrans: Decide whether to load volatile_store's argument based on its ArgType.
Eduard Burtescu [Fri, 18 Mar 2016 03:29:53 +0000 (05:29 +0200)]
trans: Decide whether to load volatile_store's argument based on its ArgType.

8 years agoMinor phrasing adjustment
Todd Lucas [Fri, 18 Mar 2016 03:14:05 +0000 (20:14 -0700)]
Minor phrasing adjustment

8 years agoUpdate the not-at-all-pretty pain-o-tron-4000+264 test.
Eduard Burtescu [Fri, 18 Mar 2016 00:22:32 +0000 (02:22 +0200)]
Update the not-at-all-pretty pain-o-tron-4000+264 test.

8 years agotrans: Pass newtypes of immediates as their inner-most type again.
Eduard Burtescu [Thu, 17 Mar 2016 23:01:47 +0000 (01:01 +0200)]
trans: Pass newtypes of immediates as their inner-most type again.

8 years agorustbuild: Fix cross to netbsd from Linux
Alex Crichton [Thu, 17 Mar 2016 20:58:26 +0000 (13:58 -0700)]
rustbuild: Fix cross to netbsd from Linux

Apparently the NetBSD compiler-rt builds into the linux directory as well.
I'm... detecting a trend!

8 years agomir: Don't memset allocas of types that do not require drop.
Eduard Burtescu [Thu, 10 Mar 2016 19:47:25 +0000 (21:47 +0200)]
mir: Don't memset allocas of types that do not require drop.

8 years agomir: Store immediates used for indirect arguments in an alloca.
Eduard Burtescu [Thu, 10 Mar 2016 19:30:52 +0000 (21:30 +0200)]
mir: Store immediates used for indirect arguments in an alloca.

8 years agoAdd #[rustc_no_mir] to make tests pass with -Z orbit.
Eduard Burtescu [Thu, 10 Mar 2016 19:20:09 +0000 (21:20 +0200)]
Add #[rustc_no_mir] to make tests pass with -Z orbit.

8 years agocompiletest: Add rustc-env for run-pass/super-fast-paren-parsing.
Eduard Burtescu [Thu, 10 Mar 2016 11:08:20 +0000 (13:08 +0200)]
compiletest: Add rustc-env for run-pass/super-fast-paren-parsing.

8 years agomir: Don't forget to drop arguments.
Eduard Burtescu [Thu, 10 Mar 2016 04:35:41 +0000 (06:35 +0200)]
mir: Don't forget to drop arguments.

8 years agohir_map: Provide expression and statement attributes.
Eduard Burtescu [Thu, 10 Mar 2016 02:12:36 +0000 (04:12 +0200)]
hir_map: Provide expression and statement attributes.

8 years agotrans: Do not depend on having Expr's around for generic_simd_intrinsic.
Eduard Burtescu [Thu, 10 Mar 2016 00:17:45 +0000 (02:17 +0200)]
trans: Do not depend on having Expr's around for generic_simd_intrinsic.

8 years agoconst_eval: Take just one set of substitutions in lookup_const_by_id.
Eduard Burtescu [Thu, 10 Mar 2016 00:04:55 +0000 (02:04 +0200)]
const_eval: Take just one set of substitutions in lookup_const_by_id.

8 years agomir: Use usize instead of u32 for indexing slices.
Eduard Burtescu [Thu, 10 Mar 2016 00:03:00 +0000 (02:03 +0200)]
mir: Use usize instead of u32 for indexing slices.

8 years agoAdd -Z orbit for forcing MIR for everything, unless #[rustc_no_mir] is used.
Eduard Burtescu [Wed, 9 Mar 2016 20:46:00 +0000 (22:46 +0200)]
Add -Z orbit for forcing MIR for everything, unless #[rustc_no_mir] is used.

8 years agohir, mir: Separate HIR expressions / MIR operands from InlineAsm.
Eduard Burtescu [Wed, 9 Mar 2016 20:17:02 +0000 (22:17 +0200)]
hir, mir: Separate HIR expressions / MIR operands from InlineAsm.

8 years agomir: Translate Rvalue::Slice without relying on tvec.
Eduard Burtescu [Wed, 9 Mar 2016 19:49:23 +0000 (21:49 +0200)]
mir: Translate Rvalue::Slice without relying on tvec.

8 years agomir: Get the right non-reference type for binding patterns.
Eduard Burtescu [Wed, 9 Mar 2016 21:32:52 +0000 (23:32 +0200)]
mir: Get the right non-reference type for binding patterns.

8 years agomir: Don't lose sub-patterns inside slice patterns.
Eduard Burtescu [Wed, 9 Mar 2016 12:21:31 +0000 (14:21 +0200)]
mir: Don't lose sub-patterns inside slice patterns.

8 years agomir: Match against slices by calling PartialEq::eq.
Eduard Burtescu [Wed, 9 Mar 2016 12:20:50 +0000 (14:20 +0200)]
mir: Match against slices by calling PartialEq::eq.

8 years agotrans: Make everything used from within at_start Builder-friendly.
Eduard Burtescu [Wed, 9 Mar 2016 12:20:22 +0000 (14:20 +0200)]
trans: Make everything used from within at_start Builder-friendly.

8 years agomir: Call set_operand_dropped in more places, specifically Unsize casts.
Eduard Burtescu [Tue, 8 Mar 2016 13:03:02 +0000 (15:03 +0200)]
mir: Call set_operand_dropped in more places, specifically Unsize casts.

8 years agomir: Translate intrinsics, via old trans where possible.
Eduard Burtescu [Tue, 8 Mar 2016 12:40:37 +0000 (14:40 +0200)]
mir: Translate intrinsics, via old trans where possible.

8 years agomir: Reintroduce the temporary block after invokes, to handle critical edges.
Eduard Burtescu [Tue, 8 Mar 2016 12:40:04 +0000 (14:40 +0200)]
mir: Reintroduce the temporary block after invokes, to handle critical edges.

8 years agomir: Trigger closure instantiations when the closure value is created.
Eduard Burtescu [Tue, 8 Mar 2016 12:38:44 +0000 (14:38 +0200)]
mir: Trigger closure instantiations when the closure value is created.

8 years agotrans: Load and cache cross-crate Mir instances in the shared context.
Eduard Burtescu [Tue, 8 Mar 2016 12:38:13 +0000 (14:38 +0200)]
trans: Load and cache cross-crate Mir instances in the shared context.

8 years agomir: Don't shadow the "args" variable in Call translation.
Eduard Burtescu [Tue, 8 Mar 2016 12:31:48 +0000 (14:31 +0200)]
mir: Don't shadow the "args" variable in Call translation.

8 years agomir: Truncate bool to i1 for SwitchInt.
Eduard Burtescu [Tue, 8 Mar 2016 12:31:23 +0000 (14:31 +0200)]
mir: Truncate bool to i1 for SwitchInt.

8 years agotrans: Take a &Builder in call_memcpy, like call_memset.
Eduard Burtescu [Tue, 8 Mar 2016 12:29:46 +0000 (14:29 +0200)]
trans: Take a &Builder in call_memcpy, like call_memset.

8 years agomir: Support RustCall ABI functions.
Eduard Burtescu [Tue, 8 Mar 2016 12:24:44 +0000 (14:24 +0200)]
mir: Support RustCall ABI functions.

8 years agomir: Load FatPtr constants instead of keeping them indirect.
Eduard Burtescu [Tue, 8 Mar 2016 12:23:23 +0000 (14:23 +0200)]
mir: Load FatPtr constants instead of keeping them indirect.

8 years agomir: Don't load the discriminant, it's already in immediate form.
Eduard Burtescu [Tue, 8 Mar 2016 12:21:11 +0000 (14:21 +0200)]
mir: Don't load the discriminant, it's already in immediate form.

8 years agomir: Don't use ConstVal when adjustments are involved, as they would be lost.
Eduard Burtescu [Tue, 8 Mar 2016 12:20:06 +0000 (14:20 +0200)]
mir: Don't use ConstVal when adjustments are involved, as they would be lost.

8 years agomir: Unsize ConstVal::ByteStr before comparing &[u8] against it.
Eduard Burtescu [Tue, 8 Mar 2016 12:17:35 +0000 (14:17 +0200)]
mir: Unsize ConstVal::ByteStr before comparing &[u8] against it.

8 years agomir: Ignore noop casts (e.g. when `as` used for coercion).
Eduard Burtescu [Tue, 8 Mar 2016 12:16:26 +0000 (14:16 +0200)]
mir: Ignore noop casts (e.g. when `as` used for coercion).

8 years agomir: Don't use ConstVal kinds that contain local NodeId's.
Eduard Burtescu [Tue, 8 Mar 2016 12:15:23 +0000 (14:15 +0200)]
mir: Don't use ConstVal kinds that contain local NodeId's.

8 years agomir: Use the right form of GEPi for indexing slices vs arrays.
Eduard Burtescu [Tue, 8 Mar 2016 12:13:56 +0000 (14:13 +0200)]
mir: Use the right form of GEPi for indexing slices vs arrays.

8 years agomir: Monomorphize LvalueTy's of projections.
Eduard Burtescu [Tue, 8 Mar 2016 12:11:45 +0000 (14:11 +0200)]
mir: Monomorphize LvalueTy's of projections.

8 years agotrans: Simplify "try" intrinsic.
Eduard Burtescu [Sun, 6 Mar 2016 12:29:31 +0000 (14:29 +0200)]
trans: Simplify "try" intrinsic.

8 years agotests: Use arguments in codegen/stores.rs to turn aggregates into immediates.
Eduard Burtescu [Sun, 6 Mar 2016 12:28:11 +0000 (14:28 +0200)]
tests: Use arguments in codegen/stores.rs to turn aggregates into immediates.

8 years agotrans: Remove the foreign module.
Eduard Burtescu [Sun, 6 Mar 2016 12:17:53 +0000 (14:17 +0200)]
trans: Remove the foreign module.

8 years agotrans: Handle all function setup for all ABIs via FnType.
Eduard Burtescu [Sun, 6 Mar 2016 14:30:21 +0000 (16:30 +0200)]
trans: Handle all function setup for all ABIs via FnType.

8 years agotrans: datum::lvalue_scratch_datum doesn't need a move-into-closure trick.
Eduard Burtescu [Sun, 6 Mar 2016 11:23:43 +0000 (13:23 +0200)]
trans: datum::lvalue_scratch_datum doesn't need a move-into-closure trick.

8 years agotrans: Handle calls for all ABIs through FnType.
Eduard Burtescu [Sun, 6 Mar 2016 11:23:20 +0000 (13:23 +0200)]
trans: Handle calls for all ABIs through FnType.

8 years agotrans: Provide the FnType for a direct call via Callee::direct_fn_type.
Eduard Burtescu [Sun, 6 Mar 2016 10:38:46 +0000 (12:38 +0200)]
trans: Provide the FnType for a direct call via Callee::direct_fn_type.

8 years agotrans: Handle ignored arguments/returns uniformly.
Eduard Burtescu [Sun, 6 Mar 2016 10:36:39 +0000 (12:36 +0200)]
trans: Handle ignored arguments/returns uniformly.

8 years agotrans: Set the calling convention in apply_attrs_callsite.
Eduard Burtescu [Sun, 6 Mar 2016 10:34:31 +0000 (12:34 +0200)]
trans: Set the calling convention in apply_attrs_callsite.

8 years agotrans: Apply all attributes through FnType.
Eduard Burtescu [Thu, 25 Feb 2016 23:10:40 +0000 (01:10 +0200)]
trans: Apply all attributes through FnType.

8 years agotrans: Use llvm::Attributes directly in ArgTy.
Eduard Burtescu [Thu, 25 Feb 2016 17:35:40 +0000 (19:35 +0200)]
trans: Use llvm::Attributes directly in ArgTy.

8 years agorustc_llvm: An AttrBuilder that's not completely wasteful.
Eduard Burtescu [Thu, 25 Feb 2016 17:08:10 +0000 (19:08 +0200)]
rustc_llvm: An AttrBuilder that's not completely wasteful.

8 years agorustc_llvm: Update the Attribute bitflags and remove OtherAttribute.
Eduard Burtescu [Thu, 25 Feb 2016 13:35:56 +0000 (15:35 +0200)]
rustc_llvm: Update the Attribute bitflags and remove OtherAttribute.

8 years agotrans: use sizing_type_of for interacting with potentially incomplete types.
Eduard Burtescu [Thu, 25 Feb 2016 13:35:47 +0000 (15:35 +0200)]
trans: use sizing_type_of for interacting with potentially incomplete types.

8 years agotrans: Apply ZExt and StructRet attributes uniformly.
Eduard Burtescu [Thu, 25 Feb 2016 10:11:02 +0000 (12:11 +0200)]
trans: Apply ZExt and StructRet attributes uniformly.

8 years agotrans: Only mutate ArgTy's in C ABI handling, don't create them.
Eduard Burtescu [Thu, 25 Feb 2016 08:49:58 +0000 (10:49 +0200)]
trans: Only mutate ArgTy's in C ABI handling, don't create them.

8 years agotrans: Handle type_of for Rust fn's via abi::FnType.
Eduard Burtescu [Wed, 24 Feb 2016 17:37:22 +0000 (19:37 +0200)]
trans: Handle type_of for Rust fn's via abi::FnType.

8 years agotrans: Remove dropflag-unaware type_is_newtype_immediate shortcut.
Eduard Burtescu [Wed, 24 Feb 2016 17:00:54 +0000 (19:00 +0200)]
trans: Remove dropflag-unaware type_is_newtype_immediate shortcut.

8 years agotests: Force instantiation of extern fns.
Eduard Burtescu [Wed, 24 Feb 2016 09:42:16 +0000 (11:42 +0200)]
tests: Force instantiation of extern fns.

8 years agotrans: Pass fat pointers as two arguments even for FFI.
Eduard Burtescu [Wed, 24 Feb 2016 09:09:25 +0000 (11:09 +0200)]
trans: Pass fat pointers as two arguments even for FFI.

8 years agotrans: Don't treat closure types like function types in declare.
Eduard Burtescu [Tue, 23 Feb 2016 23:16:27 +0000 (01:16 +0200)]
trans: Don't treat closure types like function types in declare.

8 years agotrans: Combine cabi and back::abi into abi.
Eduard Burtescu [Tue, 23 Feb 2016 20:43:04 +0000 (22:43 +0200)]
trans: Combine cabi and back::abi into abi.

8 years agotrans: Condense the fn instantiation logic into callee.
Eduard Burtescu [Tue, 23 Feb 2016 20:04:51 +0000 (22:04 +0200)]
trans: Condense the fn instantiation logic into callee.

8 years agotrans: Rename MonoId to Instance and start using it in more places.
Eduard Burtescu [Tue, 23 Feb 2016 20:04:27 +0000 (22:04 +0200)]
trans: Rename MonoId to Instance and start using it in more places.

8 years agodocumentation fix in RELEASES.md
Katze [Thu, 17 Mar 2016 19:15:22 +0000 (20:15 +0100)]
documentation fix in RELEASES.md

f32 should probably be denoted as 0.0 as it might improve readability.

Signed-off-by: benaryorg <binary@benary.org>
8 years agoAuto merge of #32294 - Manishearth:derive-fix, r=alexcrichton
bors [Thu, 17 Mar 2016 18:08:44 +0000 (11:08 -0700)]
Auto merge of #32294 - Manishearth:derive-fix, r=alexcrichton

Re-add double underscores in derive (fixes #32292)

@durka, sanity-check, please?

<s>Don't merge this yet, I need to add a test and test it locally.</s>

ready for review