aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/gcc/config
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-10-08 14:49:01 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2012-10-08 14:49:01 +0800
commit3800bda255b20023e993ed786674f70c909d60b5 (patch)
tree4f08a5df81d4798356868567213e23aff35a2770 /gcc-4.7/gcc/config
parent646acf76e6cb9b5b569fd8925b4d5d8a501527c3 (diff)
downloadtoolchain_gcc-3800bda255b20023e993ed786674f70c909d60b5.tar.gz
toolchain_gcc-3800bda255b20023e993ed786674f70c909d60b5.tar.bz2
toolchain_gcc-3800bda255b20023e993ed786674f70c909d60b5.zip
[4.7] Disable warning: the mangling of <va_list> 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
Diffstat (limited to 'gcc-4.7/gcc/config')
-rw-r--r--gcc-4.7/gcc/config/arm/arm.c13
1 files changed, 13 insertions, 0 deletions
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 %<va_list%> has changed in GCC 4.4");
}
+ */
return "St9__va_list";
}