]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add lang.opt
authorPhilip Herron <philip.herron@embecosm.com>
Tue, 23 Aug 2022 15:41:00 +0000 (16:41 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 13 Dec 2022 13:00:07 +0000 (14:00 +0100)
commit5e7d199739f245eaceed1e74ffd48429e2401c86
tree0041615d2744d800c54e952c4d3c29f93fc2aab1
parentab1e0db43c2faf5e6dd0526a41410c36d346b4a6
gccrs: Add lang.opt

We have some Rust-specific language options. Note that -fwrapv is
enabled by default in the code. We are trying to respect options such as
-Wunused-result which we get by porting over C++'s no-discard for Rust's
must-use attribute, so we have enabled these by default directly here.

gcc/rust/
* lang.opt: New.
gcc/rust/lang.opt [new file with mode: 0644]