Commit 1ee1f340 by Mike Stump

Fix up spelling and formatting.

From-SVN: r26417
parent 9c73ec84
...@@ -426,7 +426,7 @@ Fri Mar 26 10:20:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -426,7 +426,7 @@ Fri Mar 26 10:20:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1999-03-25 Mark Mitchell <mark@codesourcery.com> 1999-03-25 Mark Mitchell <mark@codesourcery.com>
* pt.c (tsubst_decl): Tsubst into DECL_BEFRIENDING_CLASSES. * pt.c (tsubst_decl): tsubst into DECL_BEFRIENDING_CLASSES.
1999-03-25 Nathan Sidwell <nathan@acm.org> 1999-03-25 Nathan Sidwell <nathan@acm.org>
...@@ -513,7 +513,7 @@ Fri Mar 26 10:20:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -513,7 +513,7 @@ Fri Mar 26 10:20:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cp-tree.h (TYPE_PTRMEMFUNC_P): Use TYPE_PTRMEMFUNC_FLAG. * cp-tree.h (TYPE_PTRMEMFUNC_P): Use TYPE_PTRMEMFUNC_FLAG.
Document internals of pointer-to-member-functions. Document internals of pointer-to-member-functions.
(DELTA2_FROM_PTRMEMFUNC): Make it call delta2_from_ptrmemfunc. (DELTA2_FROM_PTRMEMFUNC): Make it call delta2_from_ptrmemfunc.
(PFN_FROM_PTRMEMFUNC): Similarly. (PFN_FROM_PTRMEMFUNC): Likewise.
(build_type_conversion): Remove unused parameter. (build_type_conversion): Remove unused parameter.
(build_ptrmemfunc1): Declare. (build_ptrmemfunc1): Declare.
(expand_ptrmemfunc_cst): New function. (expand_ptrmemfunc_cst): New function.
...@@ -559,8 +559,8 @@ Fri Mar 26 10:20:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -559,8 +559,8 @@ Fri Mar 26 10:20:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1999-03-19 Alexandre Oliva <oliva@dcc.unicamp.br> 1999-03-19 Alexandre Oliva <oliva@dcc.unicamp.br>
* Make-lang.in: ($(INTL_TARGETS)): depend on cp/parse.c * Make-lang.in: ($(INTL_TARGETS)): Depend on cp/parse.c.
($(srcdir)/cp/parse.c): moved from ../Makefile.in ($(srcdir)/cp/parse.c): Moved from ../Makefile.in.
1999-03-17 Martin von Lwis <loewis@informatik.hu-berlin.de> 1999-03-17 Martin von Lwis <loewis@informatik.hu-berlin.de>
...@@ -575,7 +575,7 @@ Fri Mar 26 10:20:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -575,7 +575,7 @@ Fri Mar 26 10:20:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
g++.jason/incomplete1.C. g++.jason/incomplete1.C.
* tree.c (build_dummy_object): Use void_zero_node instead of the * tree.c (build_dummy_object): Use void_zero_node instead of the
error_mark_node error_mark_node.
(is_dummy_object): Check for such a node. (is_dummy_object): Check for such a node.
Detected by g++.bob/inherit1.C Detected by g++.bob/inherit1.C
...@@ -645,16 +645,16 @@ Mon Mar 15 21:57:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -645,16 +645,16 @@ Mon Mar 15 21:57:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1999-03-13 Martin von Lwis <loewis@informatik.hu-berlin.de> 1999-03-13 Martin von Lwis <loewis@informatik.hu-berlin.de>
* semantics.c (finish_switch_cond): Handle error cases gracefully. * semantics.c (finish_switch_cond): Handle error cases gracefully.
Detected by g++.law/enum5.C Detected by g++.law/enum5.C.
* typeck.c (build_modify_expr): Check for errors after resolving * typeck.c (build_modify_expr): Check for errors after resolving
offsets. Detected by g++.brendan/static1.C offsets. Detected by g++.brendan/static1.C.
* decl.c (complete_array_type): Ignore initial_value if it is an * decl.c (complete_array_type): Ignore initial_value if it is an
error. Detected by g++.benjamin/17930.C error. Detected by g++.benjamin/17930.C.
* typeck2.c (process_init_constructor): Return error if one argument * typeck2.c (process_init_constructor): Return error if one argument
is in error. Detected by g++.benjamin/13478.C is in error. Detected by g++.benjamin/13478.C.
1999-03-12 Martin von Lwis <loewis@informatik.hu-berlin.de> 1999-03-12 Martin von Lwis <loewis@informatik.hu-berlin.de>
...@@ -816,7 +816,7 @@ Mon Mar 15 21:57:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -816,7 +816,7 @@ Mon Mar 15 21:57:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* typeck.c (complete_type_or_else): Add VALUE arg, for helpful * typeck.c (complete_type_or_else): Add VALUE arg, for helpful
diagnostics. diagnostics.
cp-tree.h (complete_type_or_else): Added VALUE parameter. * cp-tree.h (complete_type_or_else): Added VALUE parameter.
* init.c (build_new_1): Extra arg to complete_type_or_else. * init.c (build_new_1): Extra arg to complete_type_or_else.
(build_delete): Likewise. (build_delete): Likewise.
* typeck.c (require_complete_type): Likewise. * typeck.c (require_complete_type): Likewise.
...@@ -838,27 +838,28 @@ Mon Mar 15 21:57:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -838,27 +838,28 @@ Mon Mar 15 21:57:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
require_complete_type_in_void. Call it. require_complete_type_in_void. Call it.
* cp-tree.h (require_complete_type_in_void): Prototype new function. * cp-tree.h (require_complete_type_in_void): Prototype new function.
* typeck.c (convert_arguments): Use alternative format for function * typeck.c (convert_arguments): Use alternative format for
decls. Don't require_complete_type here. Simplify diagnostic printing. function decls. Don't require_complete_type here. Simplify
diagnostic printing.
(convert_for_initialization): Don't require_complete_type on RHS yet. (convert_for_initialization): Don't require_complete_type on RHS yet.
* call.c (convert_arg_to_ellipsis): Call require_complete_type. * call.c (convert_arg_to_ellipsis): Call require_complete_type.
* call.c (build_over_call): Cope with qualified void return type. * call.c (build_over_call): Cope with qualified void return type.
* semantics.c (finish_call_expr): Likewise * semantics.c (finish_call_expr): Likewise.
* typeck.c (build_function_call_real): Likewise * typeck.c (build_function_call_real): Likewise.
(c_expand_return): Likewise (c_expand_return): Likewise.
* decl2.c (reparse_absdcl_as_expr): Cope with qualified void type. * decl2.c (reparse_absdcl_as_expr): Cope with qualified void type.
* call.c (print_z_candidates): Use alternate print format, to be * call.c (print_z_candidates): Use alternate print format, to be
consistant with (pt.c) print_candidates. consistent with (pt.c) print_candidates.
method.c (hack_identifier): List candidate members. * method.c (hack_identifier): List candidate members.
search.c (lookup_field): Build ambiguous list, and show it, if * search.c (lookup_field): Build ambiguous list, and show it, if
ambiguous. ambiguous.
1999-02-26 Mark Mitchell <mark@markmitchell.com> 1999-02-26 Mark Mitchell <mark@markmitchell.com>
* typeck.c (decay_conversion): Don't confuse constant array * typeck.c (decay_conversion): Don't confuse constant array
variables with their intiailizers. variables with their initializers.
* decl.c (duplicate_decls): Copy DECL_TEMPLATE_INSTANTIATED when * decl.c (duplicate_decls): Copy DECL_TEMPLATE_INSTANTIATED when
merging decls. merging decls.
...@@ -1042,7 +1043,7 @@ Thu Feb 18 23:40:01 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -1042,7 +1043,7 @@ Thu Feb 18 23:40:01 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat Feb 6 18:08:40 1999 Jeffrey A Law (law@cygnus.com) Sat Feb 6 18:08:40 1999 Jeffrey A Law (law@cygnus.com)
* typeck2.c: Update email addrsses. * typeck2.c: Update email addresses.
1999-02-04 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu> 1999-02-04 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
...@@ -1413,7 +1414,7 @@ Tue Dec 22 15:09:25 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -1413,7 +1414,7 @@ Tue Dec 22 15:09:25 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
(DECL_TEMPLATE_TEMPLATE_PARM_P): Use it. (DECL_TEMPLATE_TEMPLATE_PARM_P): Use it.
(decl_template_parm_p): Remove. (decl_template_parm_p): Remove.
* decl.c (pushdecl): Don't set DECL_CONTEXT for a template * decl.c (pushdecl): Don't set DECL_CONTEXT for a template
paramter. parameter.
* lex.c (do_identifier): Use DECL_TEMPLATE_PARM_P. * lex.c (do_identifier): Use DECL_TEMPLATE_PARM_P.
* pt.c (push_inline_template_parms_recursive): Set it. * pt.c (push_inline_template_parms_recursive): Set it.
(decl_template_parm_p): Remove. (decl_template_parm_p): Remove.
...@@ -1429,7 +1430,7 @@ Wed Dec 16 16:33:58 1998 Dave Brolley <brolley@cygnus.com> ...@@ -1429,7 +1430,7 @@ Wed Dec 16 16:33:58 1998 Dave Brolley <brolley@cygnus.com>
* decl.c (poplevel): Make sure ns_binding is initialized. * decl.c (poplevel): Make sure ns_binding is initialized.
* decl.c (finish_function): Undo inadvertant change in previous * decl.c (finish_function): Undo inadvertent change in previous
patch. patch.
1998-12-14 Mark Mitchell <mark@markmitchell.com> 1998-12-14 Mark Mitchell <mark@markmitchell.com>
...@@ -1607,7 +1608,7 @@ Wed Dec 9 15:33:01 1998 Dave Brolley <brolley@cygnus.com> ...@@ -1607,7 +1608,7 @@ Wed Dec 9 15:33:01 1998 Dave Brolley <brolley@cygnus.com>
1998-12-08 Andrew MacLeod <amacleod@cygnus.com> 1998-12-08 Andrew MacLeod <amacleod@cygnus.com>
* cp/except.c (call_eh_info): use __start_cp_handler instead of * cp/except.c (call_eh_info): Use __start_cp_handler instead of
__cp_eh_info for getting the eh info pointer. Add table_index to __cp_eh_info for getting the eh info pointer. Add table_index to
field list. field list.
(push_eh_cleanup): Don't increment 'handlers' data field. (push_eh_cleanup): Don't increment 'handlers' data field.
...@@ -1629,7 +1630,7 @@ Mon Dec 7 17:56:06 1998 Mike Stump <mrs@wrs.com> ...@@ -1629,7 +1630,7 @@ Mon Dec 7 17:56:06 1998 Mike Stump <mrs@wrs.com>
* lex.c (check_newline): Add support for \ as `natural' * lex.c (check_newline): Add support for \ as `natural'
characters in file names in #line to be consistent with #include characters in file names in #line to be consistent with #include
handling. We support escape prcessing in the # 1 "..." version of handling. We support escape processing in the # 1 "..." version of
the command. See also support in cp/lex.c. the command. See also support in cp/lex.c.
1998-12-07 Zack Weinberg <zack@rabi.phys.columbia.edu> 1998-12-07 Zack Weinberg <zack@rabi.phys.columbia.edu>
...@@ -1759,7 +1760,7 @@ Fri Nov 27 13:07:23 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -1759,7 +1760,7 @@ Fri Nov 27 13:07:23 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1998-11-24 Dave Pitts <dpitts@cozx.com> 1998-11-24 Dave Pitts <dpitts@cozx.com>
* Make-lang.in (DEMANGLER_PROG): Move the output argumnts to the * Make-lang.in (DEMANGLER_PROG): Move the output arguments to the
first position. first position.
* lex.c (check_newline): Use ISALPHA. * lex.c (check_newline): Use ISALPHA.
(readescape): Use ISGRAPH. (readescape): Use ISGRAPH.
...@@ -2024,7 +2025,7 @@ Fri Nov 27 13:07:23 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -2024,7 +2025,7 @@ Fri Nov 27 13:07:23 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
SET_IS_AGGR_TYPE. SET_IS_AGGR_TYPE.
* tree.c (make_binfo): Check CLASS_TYPE_P. * tree.c (make_binfo): Check CLASS_TYPE_P.
(copy_template_template_parm): Adjust. (copy_template_template_parm): Adjust.
(make_temp_vec): Use push_expresion_obstack. (make_temp_vec): Use push_expression_obstack.
* typeck.c (complete_type): Use new macros. * typeck.c (complete_type): Use new macros.
(comptypes): Likewise. (comptypes): Likewise.
...@@ -2196,10 +2197,10 @@ Sat Nov 7 15:48:02 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -2196,10 +2197,10 @@ Sat Nov 7 15:48:02 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1998-11-02 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-11-02 Alexandre Oliva <oliva@dcc.unicamp.br>
* parse.y (apparent_template_type): new type * parse.y (apparent_template_type): New type.
(named_complex_class_head_sans_basetype): use it (named_complex_class_head_sans_basetype): Use it.
* Makefile.in (CONFLICTS): one new conflict * Makefile.in (CONFLICTS): One new conflict.
* parse.c: Regenerated * parse.c: Regenerated.
1998-11-01 Mark Mitchell <mark@markmitchell.com> 1998-11-01 Mark Mitchell <mark@markmitchell.com>
...@@ -2703,7 +2704,7 @@ Sat Oct 17 23:27:20 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -2703,7 +2704,7 @@ Sat Oct 17 23:27:20 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
class type is complete. class type is complete.
(grokfield): Reformat error message. (grokfield): Reformat error message.
* method.c (set_mangled_name_for_decl): Don't mangle names while * method.c (set_mangled_name_for_decl): Don't mangle names while
procesing_template_decl. processing_template_decl.
1998-10-16 Jason Merrill <jason@yorick.cygnus.com> 1998-10-16 Jason Merrill <jason@yorick.cygnus.com>
...@@ -2854,7 +2855,7 @@ Thu Oct 8 06:00:19 1998 Jeffrey A Law (law@cygnus.com) ...@@ -2854,7 +2855,7 @@ Thu Oct 8 06:00:19 1998 Jeffrey A Law (law@cygnus.com)
* typeck.c (unsigned_type): Only return TItype nodes when * typeck.c (unsigned_type): Only return TItype nodes when
HOST_BITS_PER_WIDE_INT is >= 64 bits. HOST_BITS_PER_WIDE_INT is >= 64 bits.
(signed_type): Similarly. (signed_type): Likewise.
* decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
when HOST_BITS_PER_WIDE_INT is >= 64 bits. when HOST_BITS_PER_WIDE_INT is >= 64 bits.
(init_decl_processing): Only create TItype nodes when (init_decl_processing): Only create TItype nodes when
...@@ -2870,7 +2871,7 @@ Wed Oct 7 12:32:44 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -2870,7 +2871,7 @@ Wed Oct 7 12:32:44 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1998-10-07 Mark Mitchell <mark@markmitchell.com> 1998-10-07 Mark Mitchell <mark@markmitchell.com>
* class.c (finish_struct_1): Add commentary on prevous change. * class.c (finish_struct_1): Add commentary on previous change.
* cp-tree.h (vtbl_ptr_type_node): New variable. * cp-tree.h (vtbl_ptr_type_node): New variable.
* class.c (build_vtbl_ref): Don't indirect through the vptr; it's * class.c (build_vtbl_ref): Don't indirect through the vptr; it's
...@@ -3135,7 +3136,7 @@ Thu Oct 1 10:43:45 1998 Nick Clifton <nickc@cygnus.com> ...@@ -3135,7 +3136,7 @@ Thu Oct 1 10:43:45 1998 Nick Clifton <nickc@cygnus.com>
(start_function): Add invocation of (start_function): Add invocation of
SET_DEFAULT_DECL_ATTRIBUTES, if defined. SET_DEFAULT_DECL_ATTRIBUTES, if defined.
* lex.c: Replace occurances of HANDLE_SYSV_PRAGMA with * lex.c: Replace occurrences of HANDLE_SYSV_PRAGMA with
HANDLE_GENERIC_PRAGMAS. HANDLE_GENERIC_PRAGMAS.
1998-09-28 Anthony Green <green@cygnus.com> 1998-09-28 Anthony Green <green@cygnus.com>
...@@ -3247,9 +3248,9 @@ Fri Sep 25 11:45:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -3247,9 +3248,9 @@ Fri Sep 25 11:45:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* spew.c (yylex): Give diagnostic. * spew.c (yylex): Give diagnostic.
* hash.h (is_reserved_word): Add export. * hash.h (is_reserved_word): Add export.
* gxx.gperf: Ditto. * gxx.gperf: Likewise.
* lex.h (rid): Add RID_EXPORT. * lex.h (rid): Add RID_EXPORT.
* lex.c (init_parse): Ditto. * lex.c (init_parse): Likewise.
Tue Sep 22 21:01:19 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> Tue Sep 22 21:01:19 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
...@@ -3289,7 +3290,7 @@ Mon Sep 21 01:53:05 1998 Felix Lee <flee@cygnus.com> ...@@ -3289,7 +3290,7 @@ Mon Sep 21 01:53:05 1998 Felix Lee <flee@cygnus.com>
1998-09-17 Andrew MacLeod <amacleod@cygnus.com> 1998-09-17 Andrew MacLeod <amacleod@cygnus.com>
* exception.cc (__cplus_type_matcher): realign some code. * exception.cc (__cplus_type_matcher): Realign some code.
1998-09-16 Mark Mitchell <mark@markmitchell.com> 1998-09-16 Mark Mitchell <mark@markmitchell.com>
...@@ -3312,10 +3313,10 @@ Mon Sep 21 01:53:05 1998 Felix Lee <flee@cygnus.com> ...@@ -3312,10 +3313,10 @@ Mon Sep 21 01:53:05 1998 Felix Lee <flee@cygnus.com>
1998-09-15 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-09-15 Alexandre Oliva <oliva@dcc.unicamp.br>
* call.c (build_field_call): handle static data members too * call.c (build_field_call): Handle static data members too.
* typeck.c (comptypes): when comparing pointer types, check * typeck.c (comptypes): When comparing pointer types, check
whether referred types match even in strictest modes whether referred types match even in strictest modes.
1998-09-15 Mark Mitchell <mark@markmitchell.com> 1998-09-15 Mark Mitchell <mark@markmitchell.com>
...@@ -3406,7 +3407,7 @@ Mon Sep 21 01:53:05 1998 Felix Lee <flee@cygnus.com> ...@@ -3406,7 +3407,7 @@ Mon Sep 21 01:53:05 1998 Felix Lee <flee@cygnus.com>
1998-09-08 Richard Henderson <rth@cygnus.com> 1998-09-08 Richard Henderson <rth@cygnus.com>
Mark Mitchell <mark@markmitchell.com> Mark Mitchell <mark@markmitchell.com>
* pt.c (process_partial_specialization): Consistantly allocate * pt.c (process_partial_specialization): Consistently allocate
and zero tpd.parms based on ntparms. Use tpd2.parms, not and zero tpd.parms based on ntparms. Use tpd2.parms, not
tpd.parms, where appropriate. tpd.parms, where appropriate.
...@@ -3447,7 +3448,7 @@ Sun Sep 6 00:00:51 1998 Jeffrey A Law (law@cygnus.com) ...@@ -3447,7 +3448,7 @@ Sun Sep 6 00:00:51 1998 Jeffrey A Law (law@cygnus.com)
make_tree_vec. Document this behavior. make_tree_vec. Document this behavior.
(lookup_template_class): Likewise. (lookup_template_class): Likewise.
(tsubst, cases METHOD_TYPE, FUNCTION_TYPE): Use tsubst_arg_types. (tsubst, cases METHOD_TYPE, FUNCTION_TYPE): Use tsubst_arg_types.
Remove dead code (and add ssertion to check its deadness). Fix Remove dead code (and add assertion to check its deadness). Fix
bug w.r.t. exception specifications. bug w.r.t. exception specifications.
1998-09-03 Jason Merrill <jason@yorick.cygnus.com> 1998-09-03 Jason Merrill <jason@yorick.cygnus.com>
...@@ -3546,7 +3547,7 @@ Wed Sep 02 09:25:29 1998 Nick Clifton <nickc@cygnus.com> ...@@ -3546,7 +3547,7 @@ Wed Sep 02 09:25:29 1998 Nick Clifton <nickc@cygnus.com>
* decl.c (finish_enum): Handle member enums of classes declared in * decl.c (finish_enum): Handle member enums of classes declared in
template functions. template functions.
* decl2.c (grok_x_components): Strip attributres before calling * decl2.c (grok_x_components): Strip attributes before calling
groktypename. groktypename.
1998-08-31 Jason Merrill <jason@yorick.cygnus.com> 1998-08-31 Jason Merrill <jason@yorick.cygnus.com>
...@@ -3606,7 +3607,7 @@ Sun Aug 30 22:16:31 1998 H.J. Lu (hjl@gnu.org) ...@@ -3606,7 +3607,7 @@ Sun Aug 30 22:16:31 1998 H.J. Lu (hjl@gnu.org)
1998-08-28 Mark Mitchell <mark@markmitchell.com> 1998-08-28 Mark Mitchell <mark@markmitchell.com>
* cp-tree.h (build_enumerator): Take the enumeration type as a * cp-tree.h (build_enumerator): Take the enumeration type as a
paramter. parameter.
* decl.c (finish_enum): Don't set the TREE_TYPE for the * decl.c (finish_enum): Don't set the TREE_TYPE for the
enumeration constant values if we're processing_template_decls. enumeration constant values if we're processing_template_decls.
Don't set the type for the CONST_DECLs either; that's done in Don't set the type for the CONST_DECLs either; that's done in
...@@ -4158,7 +4159,7 @@ Fri Aug 14 16:42:27 1998 Nick Clifton <nickc@cygnus.com> ...@@ -4158,7 +4159,7 @@ Fri Aug 14 16:42:27 1998 Nick Clifton <nickc@cygnus.com>
* method.c (hack_identifier): Improve error message. * method.c (hack_identifier): Improve error message.
* pt.c (lookup_template_function): Don't needlessly call * pt.c (lookup_template_function): Don't needlessly call
copy_to_permanent or build_min. copy_to_permanent or build_min.
(tsubst_copy): Remove #if 0'd code. Tsubst into LOOKUP_EXPRs if (tsubst_copy): Remove #if 0'd code. tsubst into LOOKUP_EXPRs if
necessary. necessary.
(do_decl_instantiation): Improve error message. (do_decl_instantiation): Improve error message.
* tree.c (mapcar, case LOOKUP_EXPR): Don't be sorry; make a copy. * tree.c (mapcar, case LOOKUP_EXPR): Don't be sorry; make a copy.
...@@ -4315,7 +4316,7 @@ Fri Aug 14 16:42:27 1998 Nick Clifton <nickc@cygnus.com> ...@@ -4315,7 +4316,7 @@ Fri Aug 14 16:42:27 1998 Nick Clifton <nickc@cygnus.com>
(innermost_args): Use new macros. (innermost_args): Use new macros.
(tsubst_aggr_type): New function, split out from tsubst. (tsubst_aggr_type): New function, split out from tsubst.
(tsubst): Use tsubst_aggr_type, tsubst_template_parms, new calling (tsubst): Use tsubst_aggr_type, tsubst_template_parms, new calling
conventions for lookup_tmeplate_class. Refine handling of partial conventions for lookup_template_class. Refine handling of partial
instantiations. Remove calls to complete_template_args. instantiations. Remove calls to complete_template_args.
Simplify. Add consistency checks. Use set_mangled_name_for_decl Simplify. Add consistency checks. Use set_mangled_name_for_decl
and set_mangled_name_for_template_decl. and set_mangled_name_for_template_decl.
...@@ -4691,7 +4692,7 @@ Mon Jul 13 17:21:01 1998 Nick Clifton <nickc@cygnus.com> ...@@ -4691,7 +4692,7 @@ Mon Jul 13 17:21:01 1998 Nick Clifton <nickc@cygnus.com>
1998-07-12 Klaus Kaempf (kkaempf@progis.de) 1998-07-12 Klaus Kaempf (kkaempf@progis.de)
* repo.c (get_base_filename): Use file_name_nondirectory. * repo.c (get_base_filename): Use file_name_nondirectory.
(open_repo_file): Ditto. (open_repo_file): Likewise.
* cp-tree.h (file_name_nondirectory): Add prototype. * cp-tree.h (file_name_nondirectory): Add prototype.
1998-07-12 Jason Merrill <jason@yorick.cygnus.com> 1998-07-12 Jason Merrill <jason@yorick.cygnus.com>
...@@ -4786,7 +4787,7 @@ Sun Jul 12 01:20:57 1998 Jeffrey A Law (law@cygnus.com) ...@@ -4786,7 +4787,7 @@ Sun Jul 12 01:20:57 1998 Jeffrey A Law (law@cygnus.com)
1998-06-30 Benjamin Kosnik <bkoz@bliss.nabi.net> 1998-06-30 Benjamin Kosnik <bkoz@bliss.nabi.net>
* decl2.c (lang_decode_option): Remove warn_template_debugging. * decl2.c (lang_decode_option): Remove warn_template_debugging.
* lang-options.h: Ditto. * lang-options.h: Likewise.
Mon Jun 29 20:17:40 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> Mon Jun 29 20:17:40 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
...@@ -4899,7 +4900,7 @@ Sat Jun 27 07:36:09 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -4899,7 +4900,7 @@ Sat Jun 27 07:36:09 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* exception.cc (struct cp_eh_info): Add original_value field. * exception.cc (struct cp_eh_info): Add original_value field.
(__cplus_type_matcher): Perform type matching on the original exception (__cplus_type_matcher): Perform type matching on the original exception
value, and if we have a match, set the current value. value, and if we have a match, set the current value.
(__cp_push_exception): Set the original expcetion value. (__cp_push_exception): Set the original exception value.
1998-06-23 Jason Merrill <jason@yorick.cygnus.com> 1998-06-23 Jason Merrill <jason@yorick.cygnus.com>
...@@ -5571,7 +5572,7 @@ Thu May 21 11:54:44 1998 Dave Brolley <brolley@cygnus.com> ...@@ -5571,7 +5572,7 @@ Thu May 21 11:54:44 1998 Dave Brolley <brolley@cygnus.com>
* cp-tree.h: (get_directive_line): Different prototype for cpplib. * cp-tree.h: (get_directive_line): Different prototype for cpplib.
(GET_DIRECTIVE_LINE): Macro wrapper for get_directive_line. (GET_DIRECTIVE_LINE): Macro wrapper for get_directive_line.
* Makefile.in (CXX_OBJS): add @extra_cxx_objs@ for cpplib. * Makefile.in (CXX_OBJS): Add @extra_cxx_objs@ for cpplib.
1998-05-21 Jason Merrill <jason@yorick.cygnus.com> 1998-05-21 Jason Merrill <jason@yorick.cygnus.com>
...@@ -5698,7 +5699,7 @@ Tue May 19 10:05:02 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -5698,7 +5699,7 @@ Tue May 19 10:05:02 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* parse.y: Include toplev.h. * parse.y: Include toplev.h.
* pt.c (type_unification): Remove unused variable `arg'. * pt.c (type_unification): Remove unused variable `arg'.
(instantiate_decl): likewise for `save_ti'. (instantiate_decl): Likewise for `save_ti'.
* tree.c (propagate_binfo_offsets): Likewise for `base_binfos'. * tree.c (propagate_binfo_offsets): Likewise for `base_binfos'.
...@@ -5743,7 +5744,7 @@ Mon May 18 01:24:08 1998 Jeffrey A Law (law@cygnus.com) ...@@ -5743,7 +5744,7 @@ Mon May 18 01:24:08 1998 Jeffrey A Law (law@cygnus.com)
* Makefile.in (program_transform_name, objdir): Define. * Makefile.in (program_transform_name, objdir): Define.
* Makefile.in (BISON): Use bison from the build tree if it exists. * Makefile.in (BISON): Use bison from the build tree if it exists.
(FLEX): Similarly. (FLEX): Likewise.
Sun May 17 14:52:08 1998 Martin v. Loewis <loewis@informatik.hu-berlin.de> Sun May 17 14:52:08 1998 Martin v. Loewis <loewis@informatik.hu-berlin.de>
...@@ -5792,17 +5793,17 @@ Fri May 15 00:46:05 1998 Jason Merrill <jason@yorick.cygnus.com> ...@@ -5792,17 +5793,17 @@ Fri May 15 00:46:05 1998 Jason Merrill <jason@yorick.cygnus.com>
Thu May 14 16:30:47 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> Thu May 14 16:30:47 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
* exception.cc: Include eh-common.h. * exception.cc: Include eh-common.h.
(struct cp_eh_info): add eh_info struct with NEW_EH_MODEL. (struct cp_eh_info): Add eh_info struct with NEW_EH_MODEL.
(__cplus_type_matcher): First stab at new C++ runtime type matcher. (__cplus_type_matcher): First stab at new C++ runtime type matcher.
(__cp_push_exception): Initialize eh_info struct as well. (__cp_push_exception): Initialize eh_info struct as well.
* except.c: Remove local structs and include eh-common.h. * except.c: Remove local structs and include eh-common.h.
(init_exception_processing): Set language and version codes. (init_exception_processing): Set language and version codes.
(call_eh_info): add presence of eh_info to runtime description of (call_eh_info): Add presence of eh_info to runtime description of
struct cp_eh_info. struct cp_eh_info.
(expand_end_eh_spec): call start_catch_block() and end_catch_block(). (expand_end_eh_spec): Call start_catch_block() and end_catch_block().
* semantics.c (finish_try_block): call start_catch_block() and * semantics.c (finish_try_block): Call start_catch_block() and
end_catch_block(). end_catch_block().
* parse.y (function_try_block): call start_catch_block() and * parse.y (function_try_block): Call start_catch_block() and
end_catch_block(). end_catch_block().
Thu May 14 12:27:34 1998 Brendan Kehoe <brendan@cygnus.com> Thu May 14 12:27:34 1998 Brendan Kehoe <brendan@cygnus.com>
...@@ -6161,7 +6162,7 @@ Fri May 8 23:32:42 1998 Martin von Loewis <loewis@informatik.hu-berlin.de> ...@@ -6161,7 +6162,7 @@ Fri May 8 23:32:42 1998 Martin von Loewis <loewis@informatik.hu-berlin.de>
Set DECL_CONTEXT to current_namespace if not set already. Set DECL_CONTEXT to current_namespace if not set already.
Ignore real contexts that are namespaces. Ignore real contexts that are namespaces.
(mangle_class_name_for_template): Skip global_namespace. (mangle_class_name_for_template): Skip global_namespace.
Mangle other namepaces as declarations. Mangle other namespaces as declarations.
(lookup_template_function): Set type of OVERLOAD nodes to unknown. (lookup_template_function): Set type of OVERLOAD nodes to unknown.
(lookup_template_class): Push into namespace of context. (lookup_template_class): Push into namespace of context.
If the context is a namespace, set it to global_namespace. If the context is a namespace, set it to global_namespace.
...@@ -6363,7 +6364,7 @@ Thu Apr 23 21:19:06 1998 Jason Merrill <jason@yorick.cygnus.com> ...@@ -6363,7 +6364,7 @@ Thu Apr 23 21:19:06 1998 Jason Merrill <jason@yorick.cygnus.com>
Enforce access control here. Emit overload warnings here. Enforce access control here. Emit overload warnings here.
(add_warning): New fn. (add_warning): New fn.
(joust): Add WARN parm. If not set, call add_warning instead of (joust): Add WARN parm. If not set, call add_warning instead of
printing a warning. Reenable some warnings. printing a warning. Re-enable some warnings.
(tourney): Pass it. (tourney): Pass it.
(convert_like): Adjust. (convert_like): Adjust.
(build_new_op): Adjust. (build_new_op): Adjust.
...@@ -6573,14 +6574,14 @@ Thu Apr 9 22:16:57 1998 Benjamin Kosnik <bkoz@loony.cygnus.com> ...@@ -6573,14 +6574,14 @@ Thu Apr 9 22:16:57 1998 Benjamin Kosnik <bkoz@loony.cygnus.com>
* decl.c (grokdeclarator): Check TYPE_MAIN_VARIANT. * decl.c (grokdeclarator): Check TYPE_MAIN_VARIANT.
* call.c (build_scoped_method_call): Check for TREE_CODE for * call.c (build_scoped_method_call): Check for TREE_CODE for
VOID_TYPE instead of type == void_type_node. VOID_TYPE instead of type == void_type_node.
(build_method_call): Ditto. (build_method_call): Likewise.
* decl.c (lookup_name_real): Ditto. * decl.c (lookup_name_real): Likewise.
(grokdeclarator): Ditto. (grokdeclarator): Likewise.
(start_decl): Ditto. (start_decl): Likewise.
(grokparms): Ditto. (grokparms): Likewise.
(start_function): Ditto. (start_function): Likewise.
(finish_function): Ditto. (finish_function): Likewise.
(start_method): Ditto. (start_method): Likewise.
Thu Apr 9 00:18:44 1998 Dave Brolley (brolley@cygnus.com) Thu Apr 9 00:18:44 1998 Dave Brolley (brolley@cygnus.com)
...@@ -6868,7 +6869,7 @@ Tue Mar 24 10:23:47 1998 Mark Mitchell <mmitchell@usa.net> ...@@ -6868,7 +6869,7 @@ Tue Mar 24 10:23:47 1998 Mark Mitchell <mmitchell@usa.net>
(fn_type_unification): Use new interfaces. (fn_type_unification): Use new interfaces.
(type_unification): Likewise. Remove NOP_EXPR hack. (type_unification): Likewise. Remove NOP_EXPR hack.
(type_unification_real): Likewise. (type_unification_real): Likewise.
(unify): Likewise. Deal with unification of complex expresions. (unify): Likewise. Deal with unification of complex expressions.
Mon Mar 23 12:24:37 1998 Jason Merrill <jason@yorick.cygnus.com> Mon Mar 23 12:24:37 1998 Jason Merrill <jason@yorick.cygnus.com>
...@@ -7008,7 +7009,7 @@ Mon Mar 16 10:54:21 1998 Mark Mitchell <mmitchell@usa.net> ...@@ -7008,7 +7009,7 @@ Mon Mar 16 10:54:21 1998 Mark Mitchell <mmitchell@usa.net>
* pt.c (tsubst_copy): Deal with BIND_EXPR in a way that more * pt.c (tsubst_copy): Deal with BIND_EXPR in a way that more
closely mimics the behavior in parse.y. closely mimics the behavior in parse.y.
(tsubst_expr): Return the resuting BLOCK when making a tsubst'ing (tsubst_expr): Return the resulting BLOCK when making a tsubst'ing
into a compound statement. into a compound statement.
Sun Mar 15 02:07:26 1998 Jason Merrill <jason@yorick.cygnus.com> Sun Mar 15 02:07:26 1998 Jason Merrill <jason@yorick.cygnus.com>
...@@ -7126,7 +7127,7 @@ Wed Mar 4 12:11:53 1998 Michael Tiemann <tiemann@axon.cygnus.com> ...@@ -7126,7 +7127,7 @@ Wed Mar 4 12:11:53 1998 Michael Tiemann <tiemann@axon.cygnus.com>
* rtti.c (get_tinfo_fn_dynamic): If this function is called an * rtti.c (get_tinfo_fn_dynamic): If this function is called an
FLAG_RTTI is unset, initialize type info machinery and continue FLAG_RTTI is unset, initialize type info machinery and continue
with FLAG_RTTI enabled. with FLAG_RTTI enabled.
(get_typeid): Ditto. (get_typeid): Likewise.
Wed Mar 4 11:47:55 1998 Jason Merrill <jason@yorick.cygnus.com> Wed Mar 4 11:47:55 1998 Jason Merrill <jason@yorick.cygnus.com>
...@@ -7262,43 +7263,43 @@ Wed Feb 25 00:35:33 1998 Jason Merrill <jason@yorick.cygnus.com> ...@@ -7262,43 +7263,43 @@ Wed Feb 25 00:35:33 1998 Jason Merrill <jason@yorick.cygnus.com>
Tue Feb 24 22:15:04 1998 Martin von Loewis <loewis@informatik.hu-berlin.de> Tue Feb 24 22:15:04 1998 Martin von Loewis <loewis@informatik.hu-berlin.de>
* cp-tree.def: Add CPLUS_BINDING node. * cp-tree.def: Add CPLUS_BINDING node.
* cp-tree.h (tree_binding): new struct * cp-tree.h (tree_binding): New struct.
(BINDING_SCOPE, BINDING_VALUE): new macros (BINDING_SCOPE, BINDING_VALUE): New macros.
(current_namespace, global_namespace): declare extern (current_namespace, global_namespace): Declare extern.
(struct lang_decl_flags): new field in_namespace (struct lang_decl_flags): New field in_namespace.
(DECL_NAMESPACE_USING, DECL_NAMESPACE_USERS): new macros (DECL_NAMESPACE_USING, DECL_NAMESPACE_USERS): New macros.
(DECL_NAMESPACE, SET_DECL_NAMESPACE): new macros (DECL_NAMESPACE, SET_DECL_NAMESPACE): New macros.
(TREE_INDIRECT_USING): new macro (TREE_INDIRECT_USING): New macro.
* decl2.c (current_namespace, global_namespace): Declare. The * decl2.c (current_namespace, global_namespace): Declare. The
value is a NAMESPACE_DECL now, not a TREE_LIST. value is a NAMESPACE_DECL now, not a TREE_LIST.
(is_namespace_ancestor, namespace_ancestor):new static functions. (is_namespace_ancestor, namespace_ancestor): New static functions.
(add_using_namespace, ambiguous_decl): likewise. (add_using_namespace, ambiguous_decl): Likewise.
(lookup_using_namespace): new support function for lookup_name. (lookup_using_namespace): New support function for lookup_name.
(qualified_lookup_using_namespace): new support function for (qualified_lookup_using_namespace): New support function for
do_scoped_id and lookup_namespace_name do_scoped_id and lookup_namespace_name.
(get_namespace_id): mark as obsolete. (get_namespace_id): Mark as obsolete.
(current_namespace_id): Likewise. (current_namespace_id): Likewise.
(do_namespace_alias): Implement. (do_namespace_alias): Implement.
(do_using_directive): Implement as call to add_using_namespace. (do_using_directive): Implement as call to add_using_namespace.
* decl.c (binding_for_name): new function. * decl.c (binding_for_name): New function.
(push_namespace, pop_namespace): implement. (push_namespace, pop_namespace): Implement.
(push_decl): don't install a FUNCTION_DECL in the global branch. (push_decl): Don't install a FUNCTION_DECL in the global branch.
(lookup_namespace_name): implement using qualified lookup. (lookup_namespace_name): Implement using qualified lookup.
(lookup_name_real): For global scoping, lookup in (lookup_name_real): For global scoping, lookup in
global_namespace. For namespace scoping, lookup in given global_namespace. For namespace scoping, lookup in given
namespace. For unscoped lookup, iterate over namespace, namespace. For unscoped lookup, iterate over namespace,
considering using directives. considering using directives.
(init_decl_processing): initialize global_namespace. (init_decl_processing): Initialize global_namespace.
(grokvardecl): Build assembler name as static name for globals. (grokvardecl): Build assembler name as static name for globals.
(grokdeclarator): Remove old namespace mangling. (grokdeclarator): Remove old namespace mangling.
(xref_tag): When installing a global binding for the (xref_tag): When installing a global binding for the
tag, make sure we have an identifier. tag, make sure we have an identifier.
* method.c (build_overload_nested_name): mangle namespaces. * method.c (build_overload_nested_name): Mangle namespaces.
(build_qualified_name): Likewise. (build_qualified_name): Likewise.
(build_decl_overload_real): Likewise. (build_decl_overload_real): Likewise.
* lex.c (build_lang_decl): set namespace for new declaration to * lex.c (build_lang_decl): Set namespace for new declaration to
current_namespace. current_namespace.
(do_scoped_id): find global names in global or current (do_scoped_id): Find global names in global or current
namespace, or using qualified namespace lookup, depending on namespace, or using qualified namespace lookup, depending on
context. context.
* init.c (build_member_call): When scope is namespace, use * init.c (build_member_call): When scope is namespace, use
...@@ -7328,7 +7329,7 @@ Tue Feb 24 01:40:24 1998 Jason Merrill <jason@yorick.cygnus.com> ...@@ -7328,7 +7329,7 @@ Tue Feb 24 01:40:24 1998 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (instantiate_class_template): Don't instantiate if pedantic * pt.c (instantiate_class_template): Don't instantiate if pedantic
and the args use template parms. and the args use template parms.
* pt.c (push_tinst_level): If the instantiaton uses template parms, * pt.c (push_tinst_level): If the instantiation uses template parms,
fail silently. fail silently.
* decl.c (xref_basetypes): Do call complete_type for basetypes * decl.c (xref_basetypes): Do call complete_type for basetypes
that involve template parameters. that involve template parameters.
...@@ -7440,7 +7441,7 @@ Mon Feb 23 02:52:29 1998 Mark Mitchell <mmitchell@usa.net> ...@@ -7440,7 +7441,7 @@ Mon Feb 23 02:52:29 1998 Mark Mitchell <mmitchell@usa.net>
(instantiate_decl): Handle instantiations of friend templates. (instantiate_decl): Handle instantiations of friend templates.
* search.c (lookup_field_1): Don't treat the TYPE_FIELDS of a * search.c (lookup_field_1): Don't treat the TYPE_FIELDS of a
TEMPLATE_TYPE_PARM as a list of fields; it's not! TEMPLATE_TYPE_PARM as a list of fields; it's not!
* spew.c (yylex): Do a little manual constant propogation to * spew.c (yylex): Do a little manual constant propagation to
clarify the code. clarify the code.
Sun Feb 22 19:53:29 1998 Jeffrey A Law (law@cygnus.com) Sun Feb 22 19:53:29 1998 Jeffrey A Law (law@cygnus.com)
...@@ -7455,7 +7456,7 @@ Thu Feb 19 10:36:48 1998 Jason Merrill <jason@yorick.cygnus.com> ...@@ -7455,7 +7456,7 @@ Thu Feb 19 10:36:48 1998 Jason Merrill <jason@yorick.cygnus.com>
* typeck2.c (process_init_constructor): Sorry about non-trivial * typeck2.c (process_init_constructor): Sorry about non-trivial
labeled initializers. labeled initializers.
* parse.y (initlist): Reenable labeled initializers. * parse.y (initlist): Re-enable labeled initializers.
Thu Feb 19 10:15:55 1998 Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu> Thu Feb 19 10:15:55 1998 Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
...@@ -7468,7 +7469,7 @@ Thu Feb 19 10:04:12 1998 Jason Merrill <jason@yorick.cygnus.com> ...@@ -7468,7 +7469,7 @@ Thu Feb 19 10:04:12 1998 Jason Merrill <jason@yorick.cygnus.com>
* cvt.c (cp_convert_to_pointer): Preserve TREE_CONSTANT. * cvt.c (cp_convert_to_pointer): Preserve TREE_CONSTANT.
* typeck2.c (initializer_constant_valid_p): Allow conversions * typeck2.c (initializer_constant_valid_p): Allow conversions
between pointers and refrerences. between pointers and references.
1998-02-19 Brendan Kehoe <brendan@cygnus.com> 1998-02-19 Brendan Kehoe <brendan@cygnus.com>
...@@ -7529,7 +7530,7 @@ Fri Feb 13 02:26:10 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund. ...@@ -7529,7 +7530,7 @@ Fri Feb 13 02:26:10 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.
* call.c (build_over_call): Convert builtin abs, labs and fabs to * call.c (build_over_call): Convert builtin abs, labs and fabs to
tree-codes. tree-codes.
* decl.c (init_decl_processing): Reenable abs, labs and fabs as * decl.c (init_decl_processing): Re-enable abs, labs and fabs as
builtins. builtins.
Fri Feb 13 01:36:42 1998 Jason Merrill <jason@yorick.cygnus.com> Fri Feb 13 01:36:42 1998 Jason Merrill <jason@yorick.cygnus.com>
...@@ -7680,7 +7681,7 @@ Tue Feb 3 22:43:42 1998 Jason Merrill <jason@yorick.cygnus.com> ...@@ -7680,7 +7681,7 @@ Tue Feb 3 22:43:42 1998 Jason Merrill <jason@yorick.cygnus.com>
* decl.c: Lose arg_looking_for_template. * decl.c: Lose arg_looking_for_template.
(lookup_name_real): Likewise. (lookup_name_real): Likewise.
* parse.y: Lose processing_template_arg, template_arg1 * parse.y: Lose processing_template_arg, template_arg1.
(primary): Likewise. (primary): Likewise.
* spew.c (yylex): Set lastiddecl for PTYPENAMEs, too. * spew.c (yylex): Set lastiddecl for PTYPENAMEs, too.
...@@ -7824,7 +7825,7 @@ Mon Feb 2 00:57:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -7824,7 +7825,7 @@ Mon Feb 2 00:57:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
truth value. truth value.
(finish_repo): Remove unused varable `p'. (finish_repo): Remove unused varable `p'.
* search.c (get_binfo): Initiize `type' to NULL_TREE. * search.c (get_binfo): Initialize `type' to NULL_TREE.
(get_base_distance): Likewise. (get_base_distance): Likewise.
(lookup_field): Initialize `rval_binfo_h', `type', `basetype_path' (lookup_field): Initialize `rval_binfo_h', `type', `basetype_path'
and `new_v' to NULL_TREE. and `new_v' to NULL_TREE.
...@@ -8097,7 +8098,7 @@ Mon Jan 19 22:40:03 1998 Mark Mitchell <mmitchell@usa.net> ...@@ -8097,7 +8098,7 @@ Mon Jan 19 22:40:03 1998 Mark Mitchell <mmitchell@usa.net>
(begin_tree): Likewise. (begin_tree): Likewise.
(end_tree): Likewise. (end_tree): Likewise.
(lookup_template_class): Change prototype. (lookup_template_class): Change prototype.
* decl.c (cp_finish_decl): Check for NULL where necesary. * decl.c (cp_finish_decl): Check for NULL where necessary.
Consider FUNCTION_DECLS to declare objects with top-level binding, Consider FUNCTION_DECLS to declare objects with top-level binding,
when calling make_decl_rtl. when calling make_decl_rtl.
(grokdeclarator): Give members of local classes internal linkage. (grokdeclarator): Give members of local classes internal linkage.
...@@ -8165,7 +8166,7 @@ Mon Jan 19 22:40:03 1998 Mark Mitchell <mmitchell@usa.net> ...@@ -8165,7 +8166,7 @@ Mon Jan 19 22:40:03 1998 Mark Mitchell <mmitchell@usa.net>
instantiation/specialization mismatches. instantiation/specialization mismatches.
(start_decl): Don't call pushdecl for template specializations, (start_decl): Don't call pushdecl for template specializations,
since they don't affect overloading. since they don't affect overloading.
(start_function): Likewise (start_function): Likewise.
(grokfndecl): Call check_explicit_specialization a little later. (grokfndecl): Call check_explicit_specialization a little later.
Don't call duplicate_decls for memberm template specializations. Don't call duplicate_decls for memberm template specializations.
(grokdeclarator): Don't update template_count for classes that are (grokdeclarator): Don't update template_count for classes that are
...@@ -8364,8 +8365,8 @@ Thu Dec 11 20:43:33 1997 Teemu Torma <tot@trema.com> ...@@ -8364,8 +8365,8 @@ Thu Dec 11 20:43:33 1997 Teemu Torma <tot@trema.com>
(init_decl_processing): Initialize it. (init_decl_processing): Initialize it.
* cp-tree.h: Declare it. * cp-tree.h: Declare it.
* exception.cc (__cp_exception_info): Use __get_eh_info. * exception.cc (__cp_exception_info): Use __get_eh_info.
(__cp_push_exception): Ditto. (__cp_push_exception): Likewise.
(__cp_pop_exception): Ditto. (__cp_pop_exception): Likewise.
From Scott Snyder <snyder@d0sgif.fnal.gov>: From Scott Snyder <snyder@d0sgif.fnal.gov>:
* except.c (expand_builtin_throw): Use get_saved_pc_ref instead of * except.c (expand_builtin_throw): Use get_saved_pc_ref instead of
...@@ -8628,7 +8629,7 @@ Wed Nov 19 18:24:14 1997 Jason Merrill <jason@yorick.cygnus.com> ...@@ -8628,7 +8629,7 @@ Wed Nov 19 18:24:14 1997 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (make_implicit_typename): Handle case where t is not * decl.c (make_implicit_typename): Handle case where t is not
actually from context. actually from context.
* tree.c (get_type_decl): Lose identifier case. * tree.c (get_type_decl): Lose identifier case.
* spew.c (yylex): Lose useless call to identifer_typedecl_value. * spew.c (yylex): Lose useless call to identifier_typedecl_value.
* parse.y (nonnested_type): Just use lookup_name. * parse.y (nonnested_type): Just use lookup_name.
(complex_type_name): Just use IDENTIFIER_GLOBAL_VALUE. (complex_type_name): Just use IDENTIFIER_GLOBAL_VALUE.
...@@ -8865,7 +8866,7 @@ Thu Oct 23 02:01:30 1997 Jason Merrill <jason@yorick.cygnus.com> ...@@ -8865,7 +8866,7 @@ Thu Oct 23 02:01:30 1997 Jason Merrill <jason@yorick.cygnus.com>
Mon Oct 20 12:06:34 1997 Jason Merrill <jason@yorick.cygnus.com> Mon Oct 20 12:06:34 1997 Jason Merrill <jason@yorick.cygnus.com>
* except.c (expand_exception_blocks): Call do_pending_stack_adust. * except.c (expand_exception_blocks): Call do_pending_stack_adjust.
(expand_end_catch_block): Likewise. (expand_end_catch_block): Likewise.
(expand_end_eh_spec): Likewise. (expand_end_eh_spec): Likewise.
...@@ -8969,9 +8970,9 @@ Tue Oct 7 22:52:10 1997 Jason Merrill <jason@yorick.cygnus.com> ...@@ -8969,9 +8970,9 @@ Tue Oct 7 22:52:10 1997 Jason Merrill <jason@yorick.cygnus.com>
Tue Oct 7 22:45:31 1997 Alexandre Oliva <oliva@dcc.unicamp.br> Tue Oct 7 22:45:31 1997 Alexandre Oliva <oliva@dcc.unicamp.br>
* typeck.c (build_reinterpret_cast): converting a void pointer * typeck.c (build_reinterpret_cast): Converting a void pointer
to function pointer with a reinterpret_cast produces a warning to function pointer with a reinterpret_cast produces a warning
if -pedantic is issued if -pedantic is issued.
Tue Oct 7 22:43:43 1997 Bruno Haible <bruno@linuix.mathematik.uni-karlsruhe.de> Tue Oct 7 22:43:43 1997 Bruno Haible <bruno@linuix.mathematik.uni-karlsruhe.de>
...@@ -9068,11 +9069,11 @@ Mon Sep 29 19:57:51 1997 H.J. Lu (hjl@gnu.ai.mit.edu) ...@@ -9068,11 +9069,11 @@ Mon Sep 29 19:57:51 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
Mon Sep 29 11:05:54 1997 Alexandre Oliva <oliva@dcc.unicamp.br> Mon Sep 29 11:05:54 1997 Alexandre Oliva <oliva@dcc.unicamp.br>
* lang-options.h: new -Wold-style-cast flag. * lang-options.h: New -Wold-style-cast flag.
* cp-tree.h (warn_old_style_cast): new variable. * cp-tree.h (warn_old_style_cast): New variable.
* decl2.c (warn_old_style_cast): ditto. * decl2.c (warn_old_style_cast): Likewise..
(lang_decode_option): support -Wold-style-cast. (lang_decode_option): Support -Wold-style-cast.
(reparse_absdcl_as_casts): produce old-style-cast warning. (reparse_absdcl_as_casts): Produce old-style-cast warning.
Mon Sep 29 09:20:53 1997 Benjamin Kosnik <bkoz@rhino.cygnus.com> Mon Sep 29 09:20:53 1997 Benjamin Kosnik <bkoz@rhino.cygnus.com>
...@@ -9236,7 +9237,7 @@ Thu Sep 25 11:11:13 1997 Jason Merrill <jason@yorick.cygnus.com> ...@@ -9236,7 +9237,7 @@ Thu Sep 25 11:11:13 1997 Jason Merrill <jason@yorick.cygnus.com>
Rvalue conversions were removed in London. Rvalue conversions were removed in London.
* call.c (is_subseq): Don't consider lvalue transformations. * call.c (is_subseq): Don't consider lvalue transformations.
(build_conv): LVALUE_CONV and RVALUE_CONV get IDENTITY_RANK. (build_conv): LVALUE_CONV and RVALUE_CONV get IDENTITY_RANK.
(joust): Reenable ?: kludge. (joust): Re-enable ?: kludge.
1997-09-22 Brendan Kehoe <brendan@lisa.cygnus.com> 1997-09-22 Brendan Kehoe <brendan@lisa.cygnus.com>
...@@ -9433,7 +9434,7 @@ Fri Sep 5 01:37:17 1997 Mark Mitchell <mmitchell@usa.net> ...@@ -9433,7 +9434,7 @@ Fri Sep 5 01:37:17 1997 Mark Mitchell <mmitchell@usa.net>
Wed Sep 3 12:30:24 1997 Mark Mitchell <mmitchell@usa.net> Wed Sep 3 12:30:24 1997 Mark Mitchell <mmitchell@usa.net>
* pt.c (type_unification): Change calling squence to allow for * pt.c (type_unification): Change calling sequence to allow for
multiple levels of template parameters. multiple levels of template parameters.
(tsubst_expr): Likewise. (tsubst_expr): Likewise.
(tsubst): Likewise. (tsubst): Likewise.
...@@ -9495,7 +9496,7 @@ Wed Sep 3 12:30:24 1997 Mark Mitchell <mmitchell@usa.net> ...@@ -9495,7 +9496,7 @@ Wed Sep 3 12:30:24 1997 Mark Mitchell <mmitchell@usa.net>
for member templates. for member templates.
(process_next_inline): Likewise. (process_next_inline): Likewise.
* method. (build_overload_identifier): Adjust for multiple levels * method.c (build_overload_identifier): Adjust for multiple levels
of template parameters. of template parameters.
* parse.y (fn.def2): Add member templates. * parse.y (fn.def2): Add member templates.
...@@ -9718,7 +9719,7 @@ Fri Aug 8 11:47:48 1997 Jason Merrill <jason@yorick.cygnus.com> ...@@ -9718,7 +9719,7 @@ Fri Aug 8 11:47:48 1997 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (lang_decode_option): Handle -fhandle-exceptions. * decl2.c (lang_decode_option): Handle -fhandle-exceptions.
* lang-options.h: Add -fhandle-exceptions. * lang-options.h: Add -fhandle-exceptions.
* class.c (build_vtable): vtables are artificial. * class.c (build_vtable): Vtables are artificial.
(prepare_fresh_vtable): Likewise. (prepare_fresh_vtable): Likewise.
Wed Aug 6 11:02:36 1997 Jason Merrill <jason@yorick.cygnus.com> Wed Aug 6 11:02:36 1997 Jason Merrill <jason@yorick.cygnus.com>
...@@ -9812,8 +9813,8 @@ Thu Jul 17 18:06:30 1997 Jason Merrill <jason@yorick.cygnus.com> ...@@ -9812,8 +9813,8 @@ Thu Jul 17 18:06:30 1997 Jason Merrill <jason@yorick.cygnus.com>
Thu Jul 17 11:20:17 1997 Benjamin Kosnik <bkoz@rhino.cygnus.com> Thu Jul 17 11:20:17 1997 Benjamin Kosnik <bkoz@rhino.cygnus.com>
* class.c (finish_struct_methods): add check of warn_ctor_dtor_privacy * class.c (finish_struct_methods): Add check of warn_ctor_dtor_privacy
before "all member functions in class [] are private" before "all member functions in class [] are private".
Wed Jul 16 23:47:08 1997 Jason Merrill <jason@yorick.cygnus.com> Wed Jul 16 23:47:08 1997 Jason Merrill <jason@yorick.cygnus.com>
...@@ -9881,7 +9882,7 @@ Wed Jul 9 13:44:12 1997 Jason Merrill <jason@yorick.cygnus.com> ...@@ -9881,7 +9882,7 @@ Wed Jul 9 13:44:12 1997 Jason Merrill <jason@yorick.cygnus.com>
Wed Jul 9 13:04:38 1997 Geoffrey Noer <noer@cygnus.com> Wed Jul 9 13:04:38 1997 Geoffrey Noer <noer@cygnus.com>
* decl.c (init_decl_processing): fix Jun 30 patch -- move * decl.c (init_decl_processing): Fix Jun 30 patch -- move
ifndef for Cygwin32 to include SIGSEGV. ifndef for Cygwin32 to include SIGSEGV.
Thu Jul 3 01:44:05 1997 Jason Merrill <jason@yorick.cygnus.com> Thu Jul 3 01:44:05 1997 Jason Merrill <jason@yorick.cygnus.com>
...@@ -10063,9 +10064,9 @@ Tue Jun 3 18:08:23 1997 Jason Merrill <jason@yorick.cygnus.com> ...@@ -10063,9 +10064,9 @@ Tue Jun 3 18:08:23 1997 Jason Merrill <jason@yorick.cygnus.com>
Tue Jun 3 12:30:40 1997 Benjamin Kosnik <bkoz@cirdan.cygnus.com> Tue Jun 3 12:30:40 1997 Benjamin Kosnik <bkoz@cirdan.cygnus.com>
* decl.c (build_enumerator): fix problem with unsigned long * decl.c (build_enumerator): Fix problem with unsigned long
enumerated values being smashed to ints, causing overflow enumerated values being smashed to ints, causing overflow
when computing next enumerated value. (for enum values around when computing next enumerated value (for enum values around
MAX_VAL). MAX_VAL).
Mon Jun 2 17:40:56 1997 Jason Merrill <jason@yorick.cygnus.com> Mon Jun 2 17:40:56 1997 Jason Merrill <jason@yorick.cygnus.com>
...@@ -10257,7 +10258,7 @@ Wed Apr 23 18:06:50 1997 Jason Merrill <jason@yorick.cygnus.com> ...@@ -10257,7 +10258,7 @@ Wed Apr 23 18:06:50 1997 Jason Merrill <jason@yorick.cygnus.com>
Wed Apr 23 14:43:06 1997 Mike Stump <mrs@cygnus.com> Wed Apr 23 14:43:06 1997 Mike Stump <mrs@cygnus.com>
* init.c (init_decl_processing): Add supoprt for setjmp/longjmp based * init.c (init_decl_processing): Add support for setjmp/longjmp based
exception handling. exception handling.
* except.c (init_exception_processing): Likewise. * except.c (init_exception_processing): Likewise.
(expand_end_catch_block): Likewise. (expand_end_catch_block): Likewise.
...@@ -10746,7 +10747,7 @@ Thu Jan 23 16:39:06 1997 Jason Merrill <jason@yorick.cygnus.com> ...@@ -10746,7 +10747,7 @@ Thu Jan 23 16:39:06 1997 Jason Merrill <jason@yorick.cygnus.com>
Tue Jan 21 18:32:04 1997 Mike Stump <mrs@cygnus.com> Tue Jan 21 18:32:04 1997 Mike Stump <mrs@cygnus.com>
* cvt.c (cp_convert): Pedwarn enum to pointer conversions. * cvt.c (cp_convert): pedwarn enum to pointer conversions.
Mon Jan 20 17:59:51 1997 Jason Merrill <jason@yorick.cygnus.com> Mon Jan 20 17:59:51 1997 Jason Merrill <jason@yorick.cygnus.com>
...@@ -11358,7 +11359,7 @@ Fri Sep 27 16:40:30 1996 Jason Merrill <jason@yorick.cygnus.com> ...@@ -11358,7 +11359,7 @@ Fri Sep 27 16:40:30 1996 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (build_expr_from_tree): Use it. * decl2.c (build_expr_from_tree): Use it.
* cp-tree.h: Declare it. * cp-tree.h: Declare it.
* decl.c (start_decl): variable-sized arrays cannot be initialized. * decl.c (start_decl): Variable-sized arrays cannot be initialized.
* error.c (dump_type_suffix): Handle variable arrays. * error.c (dump_type_suffix): Handle variable arrays.
Fri Sep 27 13:14:05 1996 Brendan Kehoe <brendan@lisa.cygnus.com> Fri Sep 27 13:14:05 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
...@@ -11586,7 +11587,7 @@ Wed Sep 4 17:16:09 1996 Bob Manson <manson@charmed.cygnus.com> ...@@ -11586,7 +11587,7 @@ Wed Sep 4 17:16:09 1996 Bob Manson <manson@charmed.cygnus.com>
* init.c (perform_member_init): Use add_partial_entry () instead * init.c (perform_member_init): Use add_partial_entry () instead
of directly manipulating lists. of directly manipulating lists.
(emit_base_init): Ditto. (emit_base_init): Likewise.
Wed Sep 4 12:14:36 1996 Mike Stump <mrs@cygnus.com> Wed Sep 4 12:14:36 1996 Mike Stump <mrs@cygnus.com>
...@@ -11677,7 +11678,7 @@ Fri Aug 30 10:01:55 1996 Mike Stump <mrs@cygnus.com> ...@@ -11677,7 +11678,7 @@ Fri Aug 30 10:01:55 1996 Mike Stump <mrs@cygnus.com>
to start_function. to start_function.
* parse.y (datadef): Remove non-winning optimization. * parse.y (datadef): Remove non-winning optimization.
(decl): Likewise. (decl): Likewise.
(fndef): Remove ambiguous error productions uncovered by grammer (fndef): Remove ambiguous error productions uncovered by grammar
fixing. fixing.
(constructor_declarator): Add exception_specification_opt here. (constructor_declarator): Add exception_specification_opt here.
(component_constructor_declarator): Likewise. (component_constructor_declarator): Likewise.
...@@ -11789,7 +11790,7 @@ Wed Aug 21 00:13:15 1996 Jason Merrill <jason@yorick.cygnus.com> ...@@ -11789,7 +11790,7 @@ Wed Aug 21 00:13:15 1996 Jason Merrill <jason@yorick.cygnus.com>
* call.c (build_new_method_call): Add missing args to cp_error. * call.c (build_new_method_call): Add missing args to cp_error.
* tree.c (error_type): Dont print reference-to-array. * tree.c (error_type): Don't print reference-to-array.
* typeck.c (convert_for_assignment): Don't say contravariance for * typeck.c (convert_for_assignment): Don't say contravariance for
removing const. removing const.
...@@ -12282,7 +12283,7 @@ Mon Jul 22 12:18:54 1996 Jason Merrill <jason@yorick.cygnus.com> ...@@ -12282,7 +12283,7 @@ Mon Jul 22 12:18:54 1996 Jason Merrill <jason@yorick.cygnus.com>
* g++.c (main): Don't link with -lg++. * g++.c (main): Don't link with -lg++.
NEW_OVER changes: NEW_OVER changes:
* cvt.c (convert_to_reference): Don't use convert_from_refeence on * cvt.c (convert_to_reference): Don't use convert_from_reference on
result of build_type_conversion. result of build_type_conversion.
(cp_convert): Only call build_method_call for ctors if (cp_convert): Only call build_method_call for ctors if
build_type_conversion failed. build_type_conversion failed.
...@@ -13464,7 +13465,7 @@ Fri Mar 22 17:57:55 1996 Mike Stump <mrs@cygnus.com> ...@@ -13464,7 +13465,7 @@ Fri Mar 22 17:57:55 1996 Mike Stump <mrs@cygnus.com>
Fri Mar 22 13:48:29 1996 Jason Merrill <jason@yorick.cygnus.com> Fri Mar 22 13:48:29 1996 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokdeclarator): Call bad_specifiers for typedefs. Also * decl.c (grokdeclarator): Call bad_specifiers for typedefs. Also
give an error if initialized. Pedwarn about nested type with the give an error if initialized. pedwarn about nested type with the
same name as its enclosing class. same name as its enclosing class.
* pt.c (tsubst, case TYPE_DECL): Set DECL_CONTEXT. * pt.c (tsubst, case TYPE_DECL): Set DECL_CONTEXT.
...@@ -13695,7 +13696,7 @@ Wed Mar 13 14:03:34 1996 Jason Merrill <jason@yorick.cygnus.com> ...@@ -13695,7 +13696,7 @@ Wed Mar 13 14:03:34 1996 Jason Merrill <jason@yorick.cygnus.com>
Tue Mar 12 14:36:02 1996 Jason Merrill <jason@yorick.cygnus.com> Tue Mar 12 14:36:02 1996 Jason Merrill <jason@yorick.cygnus.com>
* init.c (build_new): Pedwarn about init and array new. * init.c (build_new): pedwarn about init and array new.
(expand_vec_init): Handle lists, use convert_for_initialization. (expand_vec_init): Handle lists, use convert_for_initialization.
* typeck.c (convert_for_initialization): Pass LOOKUP_NO_CONVERSION * typeck.c (convert_for_initialization): Pass LOOKUP_NO_CONVERSION
...@@ -14276,7 +14277,7 @@ Wed Feb 21 16:57:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com> ...@@ -14276,7 +14277,7 @@ Wed Feb 21 16:57:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
* class.c (n_*): Wrap with #ifdef GATHER_STATISTICS. * class.c (n_*): Wrap with #ifdef GATHER_STATISTICS.
* class.c (get_vtable_entry): Diable unused function. * class.c (get_vtable_entry): Disable unused function.
(doing_hard_virtuals): Delete unused static global var. (doing_hard_virtuals): Delete unused static global var.
(finish_struct_1): Don't init DOING_HARD_VIRTUALS. (finish_struct_1): Don't init DOING_HARD_VIRTUALS.
(prepare_fresh_vtable): Delete unused vars PATH and RESULT. (prepare_fresh_vtable): Delete unused vars PATH and RESULT.
...@@ -15057,7 +15058,7 @@ Wed Dec 6 11:48:21 1995 Mike Stump <mrs@cygnus.com> ...@@ -15057,7 +15058,7 @@ Wed Dec 6 11:48:21 1995 Mike Stump <mrs@cygnus.com>
* class.c (build_vfn_ref): Remove building_cleanup logic, as we now * class.c (build_vfn_ref): Remove building_cleanup logic, as we now
use UNSAVE_EXPRs. use UNSAVE_EXPRs.
typeck.c (get_member_function_from_ptrfunc): Remove remnants of * typeck.c (get_member_function_from_ptrfunc): Remove remnants of
building_cleanup logic, as we now use UNSAVE_EXPRs. building_cleanup logic, as we now use UNSAVE_EXPRs.
* cp-tree.h (unsave_expr): Declare it. * cp-tree.h (unsave_expr): Declare it.
* decl.c (building_cleanup): Remove. * decl.c (building_cleanup): Remove.
...@@ -15155,7 +15156,7 @@ Mon Nov 6 18:36:13 1995 Brendan Kehoe <brendan@lisa.cygnus.com> ...@@ -15155,7 +15156,7 @@ Mon Nov 6 18:36:13 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
Sat Nov 4 20:01:52 1995 Jason Molenda <crash@phydeaux.cygnus.com> Sat Nov 4 20:01:52 1995 Jason Molenda <crash@phydeaux.cygnus.com>
* method.c (make_thunk): use TREE_SET_CODE to set thunk's tree code. * method.c (make_thunk): Use TREE_SET_CODE to set thunk's tree code.
Thu Nov 2 17:56:57 1995 Mike Stump <mrs@cygnus.com> Thu Nov 2 17:56:57 1995 Mike Stump <mrs@cygnus.com>
......
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