PR tree-optimization/78512 - [7 Regression] r242674 miscompiles Linux kernel
authorMartin Sebor <msebor@redhat.com>
Tue, 29 Nov 2016 21:08:02 +0000 (21:08 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 29 Nov 2016 21:08:02 +0000 (14:08 -0700)
commit01a4551ceba1063466ab1cbd3e2f4a8df31b2358
tree5fbc744df1a8f6439838b03be9b6d394153c091e
parenta918548079a2af0db87abf7611aac4ab4b691c39
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.

From-SVN: r242975
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