diff options
author | Martin Sebor <msebor@redhat.com> | 2016-10-23 22:38:24 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2016-10-23 16:38:24 -0600 |
commit | 683068d61afa2d7c77f3b2faf9ff6e436a265cf1 (patch) | |
tree | cb1e375bdb10604d5159e998b898a492ff3f5913 /gcc | |
parent | 0804124b9b65328380f5621818887f45186b543c (diff) | |
download | gcc-683068d61afa2d7c77f3b2faf9ff6e436a265cf1.zip gcc-683068d61afa2d7c77f3b2faf9ff6e436a265cf1.tar.gz gcc-683068d61afa2d7c77f3b2faf9ff6e436a265cf1.tar.bz2 |
PR target/77837 - missing -Wformat-length warning for %p with null argument on powerpc64
gcc/ChangeLog:
PR target/77837
* config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
* config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
From-SVN: r241457
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/linux.h | 4 | ||||
-rw-r--r-- | gcc/config/rs6000/linux64.h | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0522114..4c4583e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-10-23 Martin Sebor <msebor@redhat.com> + + PR target/77837 + * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define. + * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise. + 2016-10-23 Eric Botcazou <ebotcazou@adacore.com> * config/sparc/sparc.md (cpu_feature): Minor tweak. diff --git a/gcc/config/rs6000/linux.h b/gcc/config/rs6000/linux.h index ac9296d..a28e17f 100644 --- a/gcc/config/rs6000/linux.h +++ b/gcc/config/rs6000/linux.h @@ -138,3 +138,7 @@ || (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19) #define RS6000_GLIBC_ATOMIC_FENV 1 #endif + +/* The format string to which "%p" corresponds. */ +#undef TARGET_PRINTF_POINTER_FORMAT +#define TARGET_PRINTF_POINTER_FORMAT linux_printf_pointer_format diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h index 0101ec0..7de51ea 100644 --- a/gcc/config/rs6000/linux64.h +++ b/gcc/config/rs6000/linux64.h @@ -640,3 +640,7 @@ extern int dot_symbols; enabling the __float128 keyword. */ #undef TARGET_FLOAT128_ENABLE_TYPE #define TARGET_FLOAT128_ENABLE_TYPE 1 + +/* The format string to which "%p" corresponds. */ +#undef TARGET_PRINTF_POINTER_FORMAT +#define TARGET_PRINTF_POINTER_FORMAT linux_printf_pointer_format |