From 3800bda255b20023e993ed786674f70c909d60b5 Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Mon, 8 Oct 2012 14:49:01 +0800 Subject: [4.7] Disable warning: the mangling of has changed in GCC 4.4 Please see commit message of the same fix for 4.6 and 4.4.3 GCC 4.6 a9fcd9b1ecb8954f67738a94b8553ab234d6def5 GCC 4.4.3 329ca6fa5d9972ad6dad8387036b4dbe9cfa1f27 Change-Id: I74847332d32fdcda7dcad4fc03013cb96109ac39 --- gcc-4.7/gcc/config/arm/arm.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gcc-4.7/gcc/config') diff --git a/gcc-4.7/gcc/config/arm/arm.c b/gcc-4.7/gcc/config/arm/arm.c index 35b73c56a..8d36af8e5 100644 --- a/gcc-4.7/gcc/config/arm/arm.c +++ b/gcc-4.7/gcc/config/arm/arm.c @@ -24416,6 +24416,18 @@ arm_mangle_type (const_tree type) if (TARGET_AAPCS_BASED && lang_hooks.types_compatible_p (CONST_CAST_TREE (type), va_list_type)) { + /* Disable this obsolete warning for Android, because none of the exposed APIs + by NDK is impacted by this change of ARM ABI. This warning can be triggered + very easily by compiling the following code using arm-linux-androideabi-g++: + + typedef __builtin_va_list __gnuc_va_list; + typedef __gnuc_va_list va_list; + void foo(va_list v) { } + + We could advise developer to add "-Wno-psabi", but doing so also categorically + deny other cases guarded by "warn_psabi". Hence the decision to disable it + case by case here. + static bool warned; if (!warned && warn_psabi && !in_system_header) { @@ -24423,6 +24435,7 @@ arm_mangle_type (const_tree type) inform (input_location, "the mangling of % has changed in GCC 4.4"); } + */ return "St9__va_list"; } -- cgit v1.2.3