]> git.ipfire.org Git - thirdparty/gcc.git/commit
invoke.texi (-fdump-translation-unit): New option.
authorMark Mitchell <mark@codesourcery.com>
Tue, 3 Aug 1999 01:37:47 +0000 (01:37 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 3 Aug 1999 01:37:47 +0000 (01:37 +0000)
commitf71f87f9ebc585a5092659aadc45ab2f12921a2d
treee60e4eb12e074384984174f31e71d89fb02af12b
parent246833ac171aa132fee598a93a86a819c6eaf4f4
invoke.texi (-fdump-translation-unit): New option.

* invoke.texi (-fdump-translation-unit): New option.
* Make-lang.in (CXX_SRCS): Add dump.c.
* Makefile.in (CXX_OBJS): Add dump.o.
(dump.o): New target.
* cp-tree.h (DECL_CONV_FN_P): Document.
(DECL_OVERLOADED_OPERATOR_P): New function.
(TYPE_PTRMEM_CLASS_TYPE): New macro.
(TYPE_PTRMEM_POINTED_TO_TYPE): Likewise.
(PTRMEM_CST_CLASS): Use TYPE_PTRMEM_CLASS_TYPE.
(ASM_VOLATILE_P): New macro.
(STMT_LINENO): Likewise.
(cp_namespace_decls): New function.
(dump_node_to_file): New function.
* decl.c (cp_namespace_decls): New function.
(walk_namespaces_r): Use it.
(wrapup_globals_for_namespace): Likewise.
* decl2.c (flag_dump_translation_unit): New variable.
(lang_decode_option): Handle -fdump-translation-unit.
(finish_file): If flag_dump_translation_unit is set, dump the
translation unit.
* dump.c: New file.
* lang-options.h: Add -fdump-translation-unit.
* pt.c (tsubst_template_parms): Robustify.
(tsubst_decl): Use DECL_OVERLOADED_OPERATOR_P.
(tsubst_expr): Use STMT_LINENO.
* semantics.c (finish_asm_stmt): Eliminate duplicate code.  Check
for invalid cv-qualifiers even while building templates.

From-SVN: r28434
12 files changed:
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/Make-lang.in
gcc/cp/Makefile.in
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/dump.c [new file with mode: 0644]
gcc/cp/lang-options.h
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/invoke.texi