diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-07-24 11:32:43 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-08-05 16:36:59 +0200 |
commit | 689f2ffb73cac20d5f0c64b50625573a46305392 (patch) | |
tree | ef44bdfbd5cbdf3a362fefb0244ca2747ec932e0 /gcc/rust/hir/tree/rust-hir-expr-abstract.h | |
parent | aa57360f2631fb5a90bdf2976ec2bba35e962cc1 (diff) | |
download | gcc-689f2ffb73cac20d5f0c64b50625573a46305392.zip gcc-689f2ffb73cac20d5f0c64b50625573a46305392.tar.gz gcc-689f2ffb73cac20d5f0c64b50625573a46305392.tar.bz2 |
gccrs: expand: Add parser for offset_of!() and builtin resolution.
gcc/rust/ChangeLog:
* Make-lang.in: Compile the offset_of handler.
* lang.opt: Add -frust-assume-builtin-offset-of option.
* ast/rust-ast.h: Add has_str() for const_TokenPtr.
* expand/rust-macro-builtins.cc: Map offset_of as builtin.
* expand/rust-macro-builtins.h: Declare it.
* expand/rust-macro-expand.cc (MacroExpander::expand_invoc): Add hack for calling builtin
offset_of!().
* resolve/rust-early-name-resolver-2.0.cc (Early::visit): Likewise.
* expand/rust-macro-builtins-offset-of.cc: New file.
gcc/testsuite/ChangeLog:
* rust/compile/offset_of1.rs: New test.
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir-expr-abstract.h')
0 files changed, 0 insertions, 0 deletions