diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-08-08 08:48:26 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-08-08 09:07:54 +0200 |
commit | 084f959076c10d54bdb5c80cad10a0aac5756ea4 (patch) | |
tree | fb8a7e1ce1374e130fbe882fdbfcca5d8c575e88 /gcc/rust/backend/rust-compile-expr.h | |
parent | 7beea479c5a1e7e415223f3fbd4e16c20c3214ec (diff) | |
download | gcc-084f959076c10d54bdb5c80cad10a0aac5756ea4.zip gcc-084f959076c10d54bdb5c80cad10a0aac5756ea4.tar.gz gcc-084f959076c10d54bdb5c80cad10a0aac5756ea4.tar.bz2 |
attr: Handle `rustc_const_{un}stable` properly
Since extern functions cannot be marked as const (they take no
qualifiers) but some intrinsics are const, while still being `extern
"rust-intrinsic", we need to be able to handle the
`#[rustc_const_stable]` and `#[rustc_const_unstable]` attribute.
Technically, this simply indicates that a certain intrinsic is constant
and can be used in const contexts, such as `size_of` or `offset`.
We also need to mark all const intrinsics with `rustc_const_stable` in
the testsuite.
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions