PR tree-optimization/78512 - [7 Regression] r242674 miscompiles Linux kernel
commit72d5639d126d3b84a480430b4a4ce7dabd8ebd63
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Nov 2016 21:08:02 +0000 (29 21:08 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Nov 2016 21:08:02 +0000 (29 21:08 +0000)
tree5fbc744df1a8f6439838b03be9b6d394153c091e
parent3be67a6f7e07c9378deb9eb213ce4c2c78974658
PR tree-optimization/78512 - [7 Regression] r242674 miscompiles Linux kernel

gcc/ChangeLog:

PR tree-optimization/78512
* config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
* config/rs6000/linux.h: Same.
* config/rs6000/linux64.h: Same.
* config/sol2.h: Same.
* config/sol2.c (solaris_printf_pointer_format): Remove.
* doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
* doc/tm.texi: Regenerate.
* gimple-ssa-sprintf.c (format_pointer): Rempove.
(pass_sprintf_length::compute_format_length): Return bool.
(pass_sprintf_length::handle_gimple_call): Adjust.
* target.def (printf_pointer_format): Remove.
* targhooks.c (default_printf_pointer_format): Remove.
(linux_printf_pointer_format): Same.
* targhooks.h (default_printf_pointer_format): Remove.
(linux_printf_pointer_format, solaris_printf_pointer_format): Same.

gcc/testsuite/ChangeLog:

PR tree-optimization/78512
* gcc.dg/tree-ssa/builtin-sprintf-6.c: Add test cases.
* gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Remove test cases.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242975 138bc75d-0d04-0410-961f-82ee72b054a4
15 files changed:
gcc/ChangeLog
gcc/config/linux.h
gcc/config/rs6000/linux.h
gcc/config/rs6000/linux64.h
gcc/config/sol2.c
gcc/config/sol2.h
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/gimple-ssa-sprintf.c
gcc/target.def
gcc/targhooks.c
gcc/targhooks.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-6.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c