Commit d147cbd9 by Mark Mitchell Committed by Mark Mitchell

re PR c++/42748 (warnings about 'mangling of 'va_list' has changed in GCC 4.4'…

re PR c++/42748 (warnings about 'mangling of 'va_list' has changed in GCC 4.4' not suppressed in sytem headers)

	PR c++/42748
	* config/arm/arm.c (arm_mangle_type): Do not warn about changes to
	mangling of va_list in system headers.

	PR c++/42748
	* g++.dg/abi/arm_va_list2.C: New test.
	* g++.dg/abi/arm_va_list2.h: Companion header file.

From-SVN: r156202
parent dd291a2e
2010-01-24 Mark Mitchell <mark@codesourcery.com>
PR c++/42748
* config/arm/arm.c (arm_mangle_type): Do not warn about changes to
mangling of va_list in system headers.
2010-01-23 Toon Moene <toon@moene.org>
* tree-predcom.c (combine_chains): Return NULL, not false.
......
......@@ -21372,7 +21372,7 @@ arm_mangle_type (const_tree type)
&& lang_hooks.types_compatible_p (CONST_CAST_TREE (type), va_list_type))
{
static bool warned;
if (!warned && warn_psabi)
if (!warned && warn_psabi && !in_system_header)
{
warned = true;
inform (input_location,
......
2010-01-24 Mark Mitchell <mark@codesourcery.com>
PR c++/42748
* g++.dg/abi/arm_va_list2.C: New test.
* g++.dg/abi/arm_va_list2.h: Companion header file.
2010-01-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/41044
......
// { dg-do compile }
// { dg-options "-Wpsabi" }
// { dg-require-effective-target arm_eabi }
#include <stdarg.h>
#include "arm_va_list2.h"
// The mangling of va_list changed in GCC 4.4. We want to warn about
// that -- but not in a system header.
#pragma GCC system_header
void f(va_list) {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment