From 812b587e9dd503c08805b69f0006beef8faa9ac2 Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Wed, 24 Jan 2007 19:40:12 +0000 Subject: target.h (globalize_decl_name): New. * target.h (globalize_decl_name): New. * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New. * output.h (default_globalize_decl_name): New. * varasm.c (asm_output_bss): Use globalize_decl_name instead of globalize_label. (globalize_decl): Ditto. (default_globalize_decl_name): New. * config/ia64/ia64.c (ia64_globalize_decl_name): New. (ia64_handle_version_id_attribute): New. (TARGET_ASM_GLOBALIZE_DECL_NAME): New. (ia64_asm_output_external): Use globalize_decl_name instead of globalize_label. * doc/extend.texi (version_id): New pragma. * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook. From-SVN: r121128 --- gcc/doc/extend.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gcc/doc/extend.texi') diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 0eec8d2..8bbb316 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -2366,6 +2366,19 @@ for the function even if it appears that the function is not referenced. This is useful, for example, when the function is referenced only in inline assembly. +@item version_id +@cindex @code{version_id} attribute on IA64 HP-UX +This attribute, attached to a global variable or function, renames a +symbol to contain a version string, thus allowing for function level +versioning. HP-UX system header files may use version level functioning +for some system calls. + +@smallexample +extern int foo () __attribute__((version_id ("20040821"))); +@end smallexample + +Calls to @var{foo} will be mapped to calls to @var{foo@{20040821@}}. + @item visibility ("@var{visibility_type}") @cindex @code{visibility} attribute This attribute affects the linkage of the declaration to which it is attached. -- cgit v1.1