diff options
author | Patrick Palka <patrick@parcs.ath.cx> | 2015-06-03 00:50:13 +0700 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-06-02 13:50:13 -0400 |
commit | 5d58db82b01c8c93ebe81257f7eca71098fad03b (patch) | |
tree | ef91ed22923e9247fad2ce790e2e86b7b33ba0ad /gcc/cp/error.c | |
parent | 1a607203b23e1429dd128b106d5a476a8fd1a8a4 (diff) | |
download | gcc-5d58db82b01c8c93ebe81257f7eca71098fad03b.zip gcc-5d58db82b01c8c93ebe81257f7eca71098fad03b.tar.gz gcc-5d58db82b01c8c93ebe81257f7eca71098fad03b.tar.bz2 |
cp-tree.h (init_error): Remove declaration.
* cp-tree.h (init_error): Remove declaration.
* error.c (scratch_pretty_printer): Rename to ...
(actual_pretty_printer): ... this.
(cxx_pp): Constify and update accordingly.
(init_error): Remove definition.
* lex.c (cxx_init): Do not call init_error.
From-SVN: r224037
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index ea03f7d..690cb0c 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -54,8 +54,8 @@ along with GCC; see the file COPYING3. If not see tree -> string functions that are occasionally called from the debugger or by the front-end for things like __PRETTY_FUNCTION__. */ -static cxx_pretty_printer scratch_pretty_printer; -static cxx_pretty_printer * cxx_pp = &scratch_pretty_printer; +static cxx_pretty_printer actual_pretty_printer; +static cxx_pretty_printer * const cxx_pp = &actual_pretty_printer; /* Translate if being used for diagnostics, but not for dump files or __PRETTY_FUNCTION. */ @@ -140,16 +140,6 @@ cxx_initialize_diagnostics (diagnostic_context *context) diagnostic_format_decoder (context) = cp_printer; } -/* Initialize the global cxx_pp that is used as the memory store for - the string representation of C++ AST. See the description of - cxx_pp above. */ - -void -init_error (void) -{ - new (cxx_pp) cxx_pretty_printer (); -} - /* Dump a scope, if deemed necessary. */ static void |