diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-09-04 14:23:10 +0200 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-10-31 11:39:08 +0000 |
commit | 327a285500ac640f1d8257d11ea56bf4ab65ee47 (patch) | |
tree | 28b355ecfac16f0ff9ce505a18b7a987f3568cf6 /gcc/rust/hir | |
parent | ff32f8fdcef87ef569fd072ee12c47237e8da2e7 (diff) | |
download | gcc-327a285500ac640f1d8257d11ea56bf4ab65ee47.zip gcc-327a285500ac640f1d8257d11ea56bf4ab65ee47.tar.gz gcc-327a285500ac640f1d8257d11ea56bf4ab65ee47.tar.bz2 |
Change ABI setup and add gccrs_proc_macro attr
Change the way the ABI is setup on a function to avoid duplicates. ABI
is setup by the setup function only now. Add a new attribute to the
function "gccrs_proc_macro" in order to differentiate it from another
type of function.
gcc/rust/ChangeLog:
* backend/rust-compile-base.cc (handle_proc_macro_common): Add
new attribute "gccrs_proc_macro" to all procedural macro
functions.
(get_abi): Add a function to retrieve the correct ABI depending
on wether the function is a proc macro or not.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions