diff options
author | Jason Merrill <jason@redhat.com> | 2012-11-09 16:14:37 +0000 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2012-11-09 16:14:37 +0000 |
commit | 19726dbcc6bffd70381bbae5a6c8679a2030a753 (patch) | |
tree | af7983d092e390f212209b62a57e8d2eac7d8be6 /gcc/c-family | |
parent | 22d23e886601a2d8ffbfb3e00ac60b1687ecfbc6 (diff) |
Add C++ attribute abi_tag and -Wabi-tag option.
gcc/
* attribs.c (lookup_attribute_spec): Handle getting a TREE_LIST.
gcc/c-family/
* c.opt (Wabi-tag): New.
gcc/cp/
* tree.c (cxx_attribute_table): Add abi_tag attribute.
(check_abi_tag_redeclaration, handle_abi_tag_attribute): New.
* class.c (find_abi_tags_r, check_abi_tags): New.
(check_bases, check_field_decl): Call check_abi_tags.
* decl.c (redeclaration_error_message): Call
check_abi_tag_redeclaration.
* mangle.c (tree_string_cmp, write_abi_tags): New.
(write_unqualified_name): Call write_abi_tags.
include/
* demangle.h (enum demangle_component_type): Add
DEMANGLE_COMPONENT_TAGGED_NAME.
libiberty/
* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME.
(d_make_comp, d_find_pack, d_print_comp): Likewise.
(d_abi_tags): New.
(d_name): Call it.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@193367 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-family/c.opt | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 20ef315ea74..b3234d34dd5 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2012-11-09 Jason Merrill <jason@redhat.com> + + * c.opt (Wabi-tag): New. + 2012-11-09 Andi Kleen <ak@linux.intel.com> PR 55139 diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index e11aef7a365..fe1fc4d5ac0 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -257,6 +257,10 @@ Wabi C ObjC C++ ObjC++ LTO Var(warn_abi) Warning Warn about things that will change when compiling with an ABI-compliant compiler +Wabi-tag +C++ ObjC++ Var(warn_abi_tag) Warning +Warn if a subobject has an abi_tag attribute that the complete object type does not have + Wpsabi C ObjC C++ ObjC++ LTO Var(warn_psabi) Init(1) Undocumented |