From b66093b0c21ce1818e61d082738198126f47674e Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 24 Feb 2010 14:26:38 -0500 Subject: re PR c++/12909 (ambiguity in mangling vector types) PR c++/12909 * mangle.c (write_type): Give -Wabi warning for old vector mangling. From-SVN: r157052 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/mangle.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 427b3ad..a3b7e52 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2010-02-24 Jason Merrill + PR c++/12909 + * mangle.c (write_type): Give -Wabi warning for old vector mangling. + * class.c (layout_class_type): Don't give -Wabi warning for a bug in a previous ABI version. diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index ca15dab..e6d7934 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -1904,7 +1904,10 @@ write_type (tree type) write_char ('_'); } else - write_string ("U8__vector"); + { + G.need_abi_warning = 1; + write_string ("U8__vector"); + } write_type (TREE_TYPE (type)); break; -- cgit v1.1