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
This commit is contained in:
parent
6c698a6d9b
commit
99885b3f2a
|
@ -1,3 +1,11 @@
|
|||
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>
|
||||
|
||||
* ir.texi: Move to ../c-tree.texi.
|
||||
|
|
613
gcc/cp/error.c
613
gcc/cp/error.c
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
* gcc.dg/wtr-int-type-1.c: Don't expect a warning from system headers.
|
||||
|
|
|
@ -27,7 +27,7 @@ X::X ()
|
|||
|
||||
if (strcmp (function, "X"))
|
||||
bad = true;
|
||||
if (strcmp (pretty, "X::X ()"))
|
||||
if (strcmp (pretty, "X::X()"))
|
||||
bad = true;
|
||||
}
|
||||
X::~X ()
|
||||
|
@ -41,7 +41,7 @@ X::~X ()
|
|||
|
||||
if (strcmp (function, "X"))
|
||||
bad = true;
|
||||
if (strcmp (pretty, "X::~X ()"))
|
||||
if (strcmp (pretty, "X::~X()"))
|
||||
bad = true;
|
||||
}
|
||||
void X::fn ()
|
||||
|
@ -55,7 +55,7 @@ void X::fn ()
|
|||
|
||||
if (strcmp (function, "fn"))
|
||||
bad = true;
|
||||
if (strcmp (pretty, "void X::fn ()"))
|
||||
if (strcmp (pretty, "void X::fn()"))
|
||||
bad = true;
|
||||
}
|
||||
X::operator int ()
|
||||
|
@ -69,7 +69,7 @@ X::operator int ()
|
|||
|
||||
if (strcmp (function, "__opi"))
|
||||
bad = true;
|
||||
if (strcmp (pretty, "X::operator int ()"))
|
||||
if (strcmp (pretty, "X::operator int()"))
|
||||
bad = true;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ template<class T> void f1 (T)
|
|||
|
||||
if (strcmp (function, "f1"))
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ template<> void f1<int> (int)
|
|||
|
||||
if (strcmp (function, "f1"))
|
||||
bad = true;
|
||||
if (strcmp (pretty, "void f1 (T) [with T = int]"))
|
||||
if (strcmp (pretty, "void f1(T) [with T = int]"))
|
||||
bad = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue