PR target/77837 - missing -Wformat-length warning for %p with null argument on powerpc64
authorMartin Sebor <msebor@redhat.com>
Sun, 23 Oct 2016 22:38:24 +0000 (22:38 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Sun, 23 Oct 2016 22:38:24 +0000 (16:38 -0600)
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

gcc/ChangeLog
gcc/config/rs6000/linux.h
gcc/config/rs6000/linux64.h

index 0522114feb72f6462f547ab6dbd6a75a198a71bf..4c4583ecc5ca8ee63f704f2dae4d908429e472de 100644 (file)
@@ -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.
index ac9296d79ec8edc92c570a7d39855e03d79431be..a28e17f966c3402f5da33c9a0d69bb3b02d27bb5 100644 (file)
   || (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
index 0101ec0ac698fad979b6d0c55abd763a7074c7ab..7de51ea81a409df111851b0d62eefd72d69c2b18 100644 (file)
@@ -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