Commit a3eab619 by Mark Mitchell Committed by Mark Mitchell

decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__ and its ilk.

	* decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
	and its ilk.

From-SVN: r40485
parent 19e7881c
2001-03-14 Mark Mitchell <mark@codesourcery.com> 2001-03-14 Mark Mitchell <mark@codesourcery.com>
* decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
and its ilk.
2001-03-14 Mark Mitchell <mark@codesourcery.com>
* class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc. * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
* cp-tree.h (DECL_IN_MEMORY_P): Likewise. * cp-tree.h (DECL_IN_MEMORY_P): Likewise.
* decl.c (duplicate_decls): Likewise. * decl.c (duplicate_decls): Likewise.
......
...@@ -6609,6 +6609,7 @@ cp_make_fname_decl (id, name, type_dep) ...@@ -6609,6 +6609,7 @@ cp_make_fname_decl (id, name, type_dep)
DECL_SOURCE_LINE (decl) = 0; DECL_SOURCE_LINE (decl) = 0;
DECL_ARTIFICIAL (decl) = 1; DECL_ARTIFICIAL (decl) = 1;
DECL_IN_SYSTEM_HEADER (decl) = 1; DECL_IN_SYSTEM_HEADER (decl) = 1;
DECL_IGNORED_P (decl) = 1;
pushdecl (decl); pushdecl (decl);
if (processing_template_decl) if (processing_template_decl)
decl = push_template_decl (decl); decl = push_template_decl (decl);
......
// Build don't run:
// Origin: Loren James Rittle <rittle@latour.rsch.comm.mot.com>
// Special g++ Options: -g
int main ()
{
const char *s = __FUNCTION__;
}
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