Commit 99885b3f by Gabriel Dos Reis Committed by Gabriel Dos Reis

error.c: Remove direct obstack manipulation.

cp/
	* error.c: Remove direct obstack manipulation.  Replace with
	output_buffer-based formatting.  Adjust calls to removed macros.
	(obstack_chunk_alloc, obstack_chunk_free): Remove.
	(OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
	OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
testsuite/
	* g++.old-deja/g++.ext/pretty3.C: Fix comparison with
	__PRETTY_FUNCTION__.
	* g++.old-deja/g++.ext/pretty2.C: Likewise.

From-SVN: r36666
parent 6c698a6d
2000-09-29 Gabriel Dos Reis <gdr@codesourcery.com>
* error.c: Remove direct obstack manipulation. Replace with
output_buffer-based formatting. Adjust calls to removed macros.
(obstack_chunk_alloc, obstack_chunk_free): Remove.
(OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
2000-09-24 Mark Mitchell <mark@codesourcery.com> 2000-09-24 Mark Mitchell <mark@codesourcery.com>
* ir.texi: Move to ../c-tree.texi. * ir.texi: Move to ../c-tree.texi.
......
2000-09-29 Gabriel Dos Reis <gdr@codesourcery.com>
* g++.old-deja/g++.ext/pretty3.C: Fix comparison with
__PRETTY_FUNCTION__.
* g++.old-deja/g++.ext/pretty2.C: Likewise.
2000-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2000-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/wtr-int-type-1.c: Don't expect a warning from system headers. * gcc.dg/wtr-int-type-1.c: Don't expect a warning from system headers.
......
...@@ -27,7 +27,7 @@ X::X () ...@@ -27,7 +27,7 @@ X::X ()
if (strcmp (function, "X")) if (strcmp (function, "X"))
bad = true; bad = true;
if (strcmp (pretty, "X::X ()")) if (strcmp (pretty, "X::X()"))
bad = true; bad = true;
} }
X::~X () X::~X ()
...@@ -41,7 +41,7 @@ X::~X () ...@@ -41,7 +41,7 @@ X::~X ()
if (strcmp (function, "X")) if (strcmp (function, "X"))
bad = true; bad = true;
if (strcmp (pretty, "X::~X ()")) if (strcmp (pretty, "X::~X()"))
bad = true; bad = true;
} }
void X::fn () void X::fn ()
...@@ -55,7 +55,7 @@ void X::fn () ...@@ -55,7 +55,7 @@ void X::fn ()
if (strcmp (function, "fn")) if (strcmp (function, "fn"))
bad = true; bad = true;
if (strcmp (pretty, "void X::fn ()")) if (strcmp (pretty, "void X::fn()"))
bad = true; bad = true;
} }
X::operator int () X::operator int ()
...@@ -69,7 +69,7 @@ X::operator int () ...@@ -69,7 +69,7 @@ X::operator int ()
if (strcmp (function, "__opi")) if (strcmp (function, "__opi"))
bad = true; bad = true;
if (strcmp (pretty, "X::operator int ()")) if (strcmp (pretty, "X::operator int()"))
bad = true; bad = true;
return 0; return 0;
} }
......
...@@ -19,7 +19,7 @@ template<class T> void f1 (T) ...@@ -19,7 +19,7 @@ template<class T> void f1 (T)
if (strcmp (function, "f1")) if (strcmp (function, "f1"))
bad = true; bad = true;
if (strcmp (pretty, "void f1 (T) [with T = float]")) // only for float instantiation if (strcmp (pretty, "void f1(T) [with T = float]")) // only for float instantiation
bad = true; bad = true;
} }
...@@ -34,7 +34,7 @@ template<> void f1<int> (int) ...@@ -34,7 +34,7 @@ template<> void f1<int> (int)
if (strcmp (function, "f1")) if (strcmp (function, "f1"))
bad = true; bad = true;
if (strcmp (pretty, "void f1 (T) [with T = int]")) if (strcmp (pretty, "void f1(T) [with T = int]"))
bad = true; bad = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment