[PATCH] define TARGET_PRINTF_POINTER_FORMAT for powerpc-linux (77837)

Martin Sebor msebor@gmail.com
Wed Oct 5 17:19:00 GMT 2016


On 10/03/2016 08:11 PM, Martin Sebor wrote:
> On 10/03/2016 07:10 PM, Segher Boessenkool wrote:
>> On Mon, Oct 03, 2016 at 05:30:35PM -0600, Martin Sebor wrote:
>>> The attached patch adds definitions of TARGET_PRINTF_POINTER_FORMAT
>>> to the rs6000 pair of linux.h and linux64.h headers, analogous to
>>> the config/linux.h header.  This appears to be necessary since
>>> unlike most other back ends, the rs6000 back end doesn't include
>>> the latter linux.h.
>>>
>>> The patch fixes bug 77837 - missing -Wformat-length warning for %p
>>> with null argument on powerpc64.
>>>
>>> Thanks
>>> Martin
>>
>>> PR target/77837 - missing -Wformat-length warning for %p with null
>>> argument on powerpc64
>>>
>>> gcc/ChangeLog:
>>> 2016-10-03  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.
>>
>> Okay for trunk, thanks!

I was able to fix this in r240793 without changing the rs6000 back
end so this patch is no longer necessary.

Thanks
Martin



More information about the Gcc-patches mailing list