diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-06-01 16:23:27 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-06-05 13:23:05 +0000 |
commit | cc09d0bf04fd87afb9f2b717d485a380a05e0a73 (patch) | |
tree | a01ce052ccaf265d49b1eb3ecd74441eca79d485 /gcc/gdbhooks.py | |
parent | 171ea4e2b3e202067c50f9c206974fbe1da691c0 (diff) | |
download | gcc-cc09d0bf04fd87afb9f2b717d485a380a05e0a73.zip gcc-cc09d0bf04fd87afb9f2b717d485a380a05e0a73.tar.gz gcc-cc09d0bf04fd87afb9f2b717d485a380a05e0a73.tar.bz2 |
derive: Add dummy builtin transcriber for builtin derive macros.
Fixes #2257.
Derive builtins do not need a real transcriber, but still need one. It
will however never be called since builtin derive macros get expanded
differently, and benefit from knowing on what kind of items they are
applied (struct, enums, unions) rather than receiving a list of tokens
like regular builtin macros.
gcc/rust/ChangeLog:
* expand/rust-macro-builtins.cc (MacroBuiltin::dummy): New function.
* expand/rust-macro-builtins.h: Declare it.
gcc/testsuite/ChangeLog:
* rust/compile/derive_macro7.rs: New test.
Diffstat (limited to 'gcc/gdbhooks.py')
0 files changed, 0 insertions, 0 deletions