diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-08-30 13:30:01 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2012-08-30 13:30:01 +0800 |
commit | 329ca6fa5d9972ad6dad8387036b4dbe9cfa1f27 (patch) | |
tree | 5b97b08a78ca7251979270bffc025e4a81ec86fe /gcc-4.4.3 | |
parent | a9fcd9b1ecb8954f67738a94b8553ab234d6def5 (diff) | |
download | toolchain_gcc-329ca6fa5d9972ad6dad8387036b4dbe9cfa1f27.tar.gz toolchain_gcc-329ca6fa5d9972ad6dad8387036b4dbe9cfa1f27.tar.bz2 toolchain_gcc-329ca6fa5d9972ad6dad8387036b4dbe9cfa1f27.zip |
Disable warning: the mangling of <va_list> has changed in GCC 4.4
For GCC 4.4.3. Same as the previous fix for GCC 4.6
Change-Id: I342083fdc2b7534c3b31ade0060a528a446de038
Diffstat (limited to 'gcc-4.4.3')
-rw-r--r-- | gcc-4.4.3/gcc/config/arm/arm.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.4.3/gcc/config/arm/arm.c b/gcc-4.4.3/gcc/config/arm/arm.c index 80bd3af3a..0904cbda9 100644 --- a/gcc-4.4.3/gcc/config/arm/arm.c +++ b/gcc-4.4.3/gcc/config/arm/arm.c @@ -20905,6 +20905,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) { @@ -20912,6 +20924,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"; } |