From 67e18edbc6fcddeb11629224e53629bdb59c7ed1 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 23 Feb 2011 23:56:26 -0500 Subject: cp-tree.h (DECL_PARM_LEVEL): New. * cp-tree.h (DECL_PARM_LEVEL): New. (struct lang_decl_parm): Add level field. * name-lookup.c (function_parm_depth): New fn. * name-lookup.h: Declare it. * parser.c (cp_parser_parameter_declaration_list): Use it. * mangle.c (struct globals): Add parm_depth field. (write_bare_function_type): Adjust it. (write_expression): Include the level delta in PARM_DECL mangling for abi >= 6. * semantics.c (finish_decltype_type): Remove shortcut for decltype of id-expression. * mangle.c (write_type) [DECLTYPE_TYPE]: Strip it here for abi < 6. From-SVN: r170459 --- gcc/common.opt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/common.opt') diff --git a/gcc/common.opt b/gcc/common.opt index f95805c..2717b11 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -741,6 +741,12 @@ Driver Undocumented ; 4: The version of the ABI that introduces unambiguous mangling of ; vector types. ; +; 5: The version of the ABI that ignores attribute const/noreturn +; in function pointer mangling. +; +; 6: The version of the ABI that corrects mangling of decltype and +; function parameters used in other parameters and the return type. +; ; Additional positive integers will be assigned as new versions of ; the ABI become the default version of the ABI. fabi-version= -- cgit v1.1