r218404 - in /trunk/gcc: ChangeLog tree-pretty-...

dmalcolm@gcc.gnu.org dmalcolm@gcc.gnu.org
Thu Dec 4 21:23:00 GMT 2014


Author: dmalcolm
Date: Thu Dec  4 21:23:57 2014
New Revision: 218404

URL: https://gcc.gnu.org/viewcvs?rev=218404&root=gcc&view=rev
Log:
PR jit/63854: Fix double-initialization within tree-pretty-print.c

gcc/ChangeLog:
	PR jit/63854
	* tree-pretty-print.c: Eliminate include of <new>.
	(buffer): Convert this variable from a pretty_printer to a
	pretty_printer *.
	(initialized): Eliminate this variable in favor of the NULL-ness
	of "buffer".
	(print_generic_decl): Update for "buffer" becoming a pointer.
	(print_generic_stmt): Likewise.
	(print_generic_stmt_indented): Likewise.
	(print_generic_expr): Likewise.
	(maybe_init_pretty_print): Likewise, allocating "buffer" on the
	heap and using its non-NULL-ness to ensure idempotency.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-pretty-print.c



More information about the Gcc-cvs mailing list