diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2007-05-24 10:11:49 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@gcc.gnu.org> | 2007-05-24 10:11:49 +0000 |
commit | 5234b8f573b0c5fa3c2c2694d183668423382b23 (patch) | |
tree | f82b188a73ec315cce237f81bc0dfa75447a66db /gcc/target.h | |
parent | 4f5497a9245ac73f32f4d202e3b7497c61e79925 (diff) | |
download | gcc-5234b8f573b0c5fa3c2c2694d183668423382b23.tar.gz |
re PR target/27067 (Compile errors with multiple inheritance where the stdcall attribute is applied to virtual functions.)
ChangeLog
PR target/27067
* doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
* targhooks.h (default_mangle_decl_assembler_name): Declare
default hook.
* targhooks.c (default_mangle_decl_assembler_name): Define
default hook.
* target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
default hook.
* target.h (struct gcc_target): Add mangle_decl_assembler_name field.
* langhooks.c (lhd_set_decl_assembler_name): Call
targetm.mangle_decl_assembler_name for names with global scope.
* config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
default.
(ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
* config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
Declare.
* config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
New. Factored out of i386_pe_encode_section_info.
(gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
Move check for prior decoration of stdcall
symbols to i386_pe_encode_section_info.
(i386_pe_encode_section_info): Adjust call to
gen_stdcall_or_fastcall_suffix. Use
i386_pe_maybe_mangle_decl_assembler_name, if needed.
(i386_pe_mangle_decl_assembler_name): New. Wrap
i386_pe_maybe_mangle_decl_assembler_name.
cp/ChangeLog
* mangle.c (mangle_decl): Call targetm.mangle_decl_assembler_name.
From-SVN: r125020
Diffstat (limited to 'gcc/target.h')
-rw-r--r-- | gcc/target.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h index 476eb8810b1..f769ae0938a 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -544,6 +544,12 @@ struct gcc_target to the current module. */ bool (* binds_local_p) (tree); + /* Modify and return the identifier of a DECL's external name, + originally identified by ID, as required by the target, + (eg, append @nn to windows32 stdcall function names). + The default is to return ID without modification. */ + tree (* mangle_decl_assembler_name) (tree decl, tree id); + /* Do something target-specific to record properties of the DECL into the associated SYMBOL_REF. */ void (* encode_section_info) (tree, rtx, int); |