]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add support for feature check.
authormxlol233 <mxlol233@outlook.com>
Thu, 12 Jan 2023 14:08:57 +0000 (22:08 +0800)
committermxlol233 <mxlol233@outlook.com>
Fri, 3 Feb 2023 13:28:04 +0000 (21:28 +0800)
commitc255fb2ca259b3d85ce26d3c0e9230ca9ba2788a
treed7aaca229891ac15efe8e49608332c844c9a77e6
parent0030bead12ee37e820e97939b29d9088b9f884e8
Add  support for feature check.

This commit implements a very basic feature checking module.

gcc/rust/ChangeLog:

* Make-lang.in: Add object files: `rust-feature.o` and `rust-feature-gate.o`
* checks/errors/rust-feature-gate.cc: New file.
* checks/errors/rust-feature-gate.h: New file.
* checks/errors/rust-feature.cc: New file.
* checks/errors/rust-feature.h: New file.
* rust-session-manager.cc: Add FeatureGate check.

gcc/testsuite/ChangeLog:

* rust/compile/feature.rs: New test.

Signed-off-by: Xiao Ma <mxlol233@outlook.com>
gcc/rust/Make-lang.in
gcc/rust/checks/errors/rust-feature-gate.cc [new file with mode: 0644]
gcc/rust/checks/errors/rust-feature-gate.h [new file with mode: 0644]
gcc/rust/checks/errors/rust-feature.cc [new file with mode: 0644]
gcc/rust/checks/errors/rust-feature.h [new file with mode: 0644]
gcc/rust/rust-session-manager.cc
gcc/testsuite/rust/compile/feature.rs [new file with mode: 0644]