Shotaro Yamada
3170956276
Remove unused option flag
2018-07-27 17:42:41 +09:00
Oliver Schneider
56c90774a9
Make sure the compiler actually panics on delay_span_bug
...
Even if that is just happening because of `abort_if_errors`
2018-07-20 15:59:21 +02:00
Michael Woerister
6064efe928
Revert "Clean up CodegenUnit name generation."
...
This reverts commit 2c5cd9ce53
.
2018-07-16 08:58:40 +02:00
Michael Woerister
2c5cd9ce53
Clean up CodegenUnit name generation.
2018-07-11 17:52:57 +02:00
bors
11432ba980
Auto merge of #51230 - nikic:no-verify-lto, r=pnkfelix
...
Disable LLVM verification by default
Currently -Z no-verify only controls IR verification prior to LLVM codegen, while verification is performed unconditionally both before and after linking with (Thin)LTO.
Also wondering what the sentiment is on disabling verification by default (and e.g. only enabling it on ALT builds with assertions). This does not seem terribly useful outside of rustc development and it does seem to show up in profiles (at something like 3%).
**EDIT:** A table showing the various configurations and what is enabled when.
| Configuration | Dynamic verification performed | LLVM static assertions compiled in |
| --- | --- | --- |
| alt builds | | yes |
| nightly builds | | no |
| stable builds | | no |
| CI builds | | |
| dev builds in a checkout | | |
2018-07-11 12:12:13 +00:00
Guillaume Gomez
1ff7f04120
Fix rustdoc run failures by shutting down definitely some lints
2018-07-05 17:18:45 +02:00
Nikita Popov
22cf833dd1
Rename -Z no-verify to -Z verify-llvm-ir
...
This disables IR verification by default.
2018-06-12 21:23:06 +02:00
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