aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-08-31 13:53:28 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2023-01-31 14:16:52 +0100
commit9d6b434e1fda4aaf853728967a6c0f65e7d20d3d (patch)
treeaf3c4c5b5baa1c69366dcb4238842b70dbdd3f2c /gcc/rust/backend
parentf92f8ee75bf0f4a653218a52698263b559c463a4 (diff)
downloadgcc-9d6b434e1fda4aaf853728967a6c0f65e7d20d3d.zip
gcc-9d6b434e1fda4aaf853728967a6c0f65e7d20d3d.tar.gz
gcc-9d6b434e1fda4aaf853728967a6c0f65e7d20d3d.tar.bz2
gccrs: rust: Add -frust-compile-until option
This option helps ensure that we do not introduce regressions on various parts of the compilation pipeline. For example, a testcase (or testsuite from the `testing` project) might pass attribute checking, expansion and lowering, but fail during typechecking. Should a change suddenly make that testcase fail expansion, we would not be able to notice it. By generating tests that run up until expansion, typechecking, compilation and so forth we ensure that no regressions are added accidentally to already failing tests/testsuites. gcc/rust/ChangeLog: * lang.opt: Add new ``-frust-compile-until` option. * rust-session-manager.cc (Session::compile_crate): Add stops around various compilation steps in the pipeline. * rust-session-manager.h (struct CompileOptions): Add `CompileStep` enum and field. gcc/testsuite/ChangeLog: * rust/compile/frust-compile-until.rs: New test.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions