John Kåre Alsaker
9eb4f7329b
Fix optimization_fuel
2018-06-01 14:55:55 +02:00
Manish Goregaokar
30bd586bec
Stabilize suggestion applicability field in json output
2018-05-21 10:48:12 -07:00
Irina Popa
b63d7e2b1c
Rename trans to codegen everywhere.
2018-05-17 15:08:30 +03:00
John Kåre Alsaker
022dff47e3
Add a Rayon thread pool
2018-05-13 01:28:20 +02:00
Michael Woerister
a9810899a2
Allow for specifying a linker plugin for cross-language LTO
2018-05-09 16:42:35 +02:00
Simonas Kazlauskas
09d2db4e96
Rework force-frame-pointer
...
This reworks the force-frame-pointer PR to explicitly only consider the
value of the flag if it is provided, and use a target default otherwise.
Something that was tried but not kept was renaming the flag to
`frame-pointer`, because for flag `frame-pointer=no`, there is no
guarante, that LLVM will elide *all* the frame pointers; oposite of what
the literal reading of the flag would suggest.
2018-05-01 10:44:44 +03:00
Björn Steinbrink
5b800c231f
Don't force-enable frame pointers when generating debug info
...
We apparently used to generate bad/incomplete debug info causing
debuggers not to find symbols of stack allocated variables. This was
somehow worked around by having frame pointers.
With the current codegen, this seems no longer necessary, so we can
remove the code that force-enables frame pointers whenever debug info
is requested.
Since certain situations, like profiling code profit from having frame
pointers, we add a -Cforce-frame-pointers flag to always enable frame
pointers.
Fixes #11906
2018-05-01 10:44:44 +03:00
bors
9ff8ec8fdf
Auto merge of #50204 - Manishearth:approx-enum, r=estebank
...
Use enum for approximate suggestions
r? @nrc @killercup
2018-04-30 05:38:06 +00:00
Irina Popa
38e964077b
Rename rustc_back::target to rustc_target::spec.
2018-04-26 16:39:44 +03:00
Irina Popa
6f03b80020
rustc_back: move LinkerFlavor, PanicStrategy, and RelroLevel to target.
2018-04-26 16:39:27 +03:00
Manish Goregaokar
4e2cd4104a
Approximate -> Applicability
2018-04-25 14:55:25 -07:00
bors
81135c9dbc
Auto merge of #50134 - andjo403:jobserver, r=michaelwoerister
...
make rustdoc test follow the jobserver limit of threads
fix that to many threads is executing at the same time
when rustdoc test is executed.
2018-04-25 11:40:18 +00:00
Andreas Jonson
ed318dd991
make rustdoc test follow the jobserver limit of threadsfix that to many threads is executing at the same timewhen rustdoc test is executed.
2018-04-23 17:02:01 +02:00
Kurtis Nusbaum
51f51109ce
add --edition option
2018-04-19 13:57:01 -07:00
John Kåre Alsaker
e5fc06da8a
Make one_time_diagnostics thread-safe
2018-04-17 16:43:30 +02:00
John Kåre Alsaker
bf06a53265
Make Handler more thread-safe
2018-04-17 16:43:30 +02:00
bors
6b12d361ff
Auto merge of #49882 - Zoxc:sync-misc2, r=michaelwoerister
...
More thread-safety changes
r? @michaelwoerister
2018-04-17 06:46:31 +00:00
John Kåre Alsaker
fe63637350
Use locks for Session.lint_store and Session.buffered_lints
2018-04-16 02:23:55 +02:00
Oliver Schneider
4f6d118048
Don't abort const eval due to long running evals, just warn
2018-04-13 17:56:45 +02:00
John Kåre Alsaker
006f9b2f56
Make Session.injected_panic_runtime thread-safe
2018-04-10 14:40:26 +02:00
John Kåre Alsaker
dacf9ba00f
Make Session.injected_allocator and Session.allocator_kind thread-safe
2018-04-10 14:40:26 +02:00
John Kåre Alsaker
66488a50f9
Make Session.dependency_formats thread-safe
2018-04-10 14:40:26 +02:00
John Kåre Alsaker
cbf8ad4a40
Make Session.crate_types thread-safe
2018-04-10 14:40:26 +02:00
John Kåre Alsaker
046af1c710
Make sure Session.plugin_attributes is only used on one thread
2018-04-10 14:40:26 +02:00
John Kåre Alsaker
0e51d48324
Make sure Session.plugin_llvm_passes is only used on one thread
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
7d33d1a84e
Make Session.has_global_allocator thread-safe
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
73b26f7f51
Make sure Session.imported_macro_spans is only used on one thread
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
271c8d362a
Make Session.crate_disambiguator thread-safe
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
8380539ecb
Make sure Session.next_node_id is only used on one thread
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
b0c7bdaa97
Make Session.code_stats thread-safe
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
904e2b6b35
Make Session::features_untracked thread-safe
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
a46f05978a
Disable optimization fuel when using multiple threads
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
a23e90a6de
Remove Cell from const_eval_stack_frame_limit and const_eval_step_limit
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
753cd9a12c
Make sure Session.incr_comp_session is only used on one thread
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
e82b6c42b4
Make Session.plugin_registrar_fn and Session.derive_registrar_fn thread-safe
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
27adb31fcc
Combine Session.entry_fn and Session.entry_type and make them thread-safe
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
7aa7198b4b
Make PerfStats thread-safe and remove unused fields
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
cf3b7909fa
Make recursion_limit and type_length_limit thread-safe
2018-04-10 14:39:57 +02:00
John Kåre Alsaker
49a2b80877
Make sure the lint store is only used on one thread
2018-04-10 14:39:33 +02:00
Philipp Oppermann
3908b2e443
Introduce a TargetTriple enum to support absolute target paths
2018-03-26 18:57:23 +02:00
Kurtis Nusbaum
3c8d555497
rename epoch to edition
2018-03-20 10:27:02 -07:00
Niko Matsakis
211d9ad7db
introduce tcx.normalize_erasing_regions(..)
operaton [VIC]
2018-03-13 11:22:07 -04:00
Niko Matsakis
3a50b41da4
introduce infcx.at(..).normalize(..)
operation [VIC]
...
It is backed by the new `normalize_projection_ty` query, which uses
canonicalization.
2018-03-13 11:22:05 -04:00
Niko Matsakis
993c1488cc
add canonicalize
method to InferCtxt
[VIC]
2018-03-13 11:21:31 -04:00
John Kåre Alsaker
184fd32a03
Move PROFQ_CHAN to a Session field
2018-03-09 08:04:31 +01:00
Manish Goregaokar
4338bd178d
Move epochs to libsyntax
2018-03-08 17:10:03 -08:00
Manish Goregaokar
d7f44ac52c
Rollup merge of #48682 - spastorino:make_causal_lazy, r=nikomatsakis
...
[NLL] Make causal tracking lazy
Close #46590
cc @nikomatsakis
2018-03-08 11:25:56 -08:00
Oliver Schneider
134c2910ec
Const eval will oom together with rustc now
2018-03-08 08:34:18 +01:00
Oliver Schneider
65ed591197
Move the resource limits to the session in preparation for attributes configuring them
2018-03-08 08:34:15 +01:00
Santiago Pastorino
52a47d4c02
Run rustfmt over modified files
2018-03-06 18:03:09 -03:00