[trunk][patch] Don't print warnings in mangle_decl

Rafael Espindola espindola@google.com
Thu Apr 16 18:06:00 GMT 2009


> I will take another look to see if cp_finish_decl is a good place.

It works. I also tested this patch with


extern int a;
void f(void);
int b;
int g(int c)
{
  f();
  b = c;
  return a;
}

and a hack to always print the warning. We print warnings for a, b,f and g.

2009-04-16  Rafael Avila de Espindola  <espindola@google.com>

	* cp-tree.h (lang_identifier): Add ABI_WARNING.
	(IDENTIFIER_EMIT_ABI_WARNING_P): New.
	* decl.c (cp_finish_decl): Print warning for ABI changes.
	* mangle.c (finish_mangling_internal): Don't print warning. Set
	ABI_WARNING if one is needed. Update all callers.
	* semantics.c (expand_or_defer_fn): Print warning for ABI changes.


2009-04-16  Rafael Avila de Espindola  <espindola@google.com>

	* g++.dg/abi/mangle32.C: New.

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mangle.patch
Type: text/x-patch
Size: 7833 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090416/6ba8947e/attachment.bin>


More information about the Gcc-patches mailing list