1. 05 Jun, 2001 6 commits
    • re PR c/2735 (can't cast a union type defined by a typedef to itself) · f375b7a7
      	* c-typeck.c (build_c_cast): Use TYPE_MAIN_VARIANT when checking
      	for casting an aggregate to its own type.  Fixes PR c/2735.
      
      testsuite:
      	* gcc.c-torture/compile/20010605-2.c: New test.
      
      From-SVN: r42900
      Joseph Myers committed
    • natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors table index is within allowed bounds. · c90efa7a
      2001-06-05  Martin Kahlert  <martin.kahlert@infineon.com>
      	    Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
      
      	* java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
      	table index is within allowed bounds. Ensure that we dont try to access
      	class itable at a negative offset. Avoid an ancestor table lookup if
      	source is a primitive type class.
      	(isInstance): Remove redundant isPrimitive() check.
      
      Co-Authored-By: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
      
      From-SVN: r42898
      Martin Kahlert committed
    • * doc/texinfo.tex: Update to version 2001-05-24.08. · bdef41ac
      From-SVN: r42897
      Joseph Myers committed
    • c-common.h (flag_dump_translation_unit): Remove. · b7442fb5
      	* c-common.h (flag_dump_translation_unit): Remove.
      	(enum tree_dump_index): Define.
      	(TDF_ADDRESS, TDF_SLIM): New #defines.
      	(dump_node_to_file): Remove.
      	(dump_node): Make extern. Add flags.
      	(dump_flag, dump_enabled_p, dump_begin, dump_end,
      	dump_switch_p): Prototype.
      	* c-common.c (flag_dump_translation_unit): Remove.
      	* c-decl.c (c_decode_option): Remove -fdump-translation-unit
      	logic. Use dump_switch_p.
      	* c-dump.h (struct dump_info): Add node and user fields.
      	(dump_pointer): Declare.
      	* c-dump.c (dump_node): Make extern. Add flags.
      	(SOL_COLUMN, EOL_COLUMN, COLUMN_ALIGNMENT): New #defines.
      	(dump_new_line, dump_maybe_newline): Use them.
      	(dump_pointer): New function.
      	(dequeue_and_dump): Check TDF_SLIM before dumping a _DECL's
      	chain or function's body. Dump address, if TDF_ADDRESS set.
      	(dump_flag): Define.
      	(dump_node_to_file): Remove.
      	(struct dump_file_info): New struct.
      	(dump_files): New array.
      	(dump_begin, dump_end, dump_enabled_p, dump_switch_p): Define.
      	* c-lang.c (finish_file): Adjust dumping.
      	* toplev.h (dump_base_name): Make extern.
      	* invoke.texi: Document new flags.
      cp:
      	* class.c (maybe_indent_hierarchy): New function.
      	(dump_class_hierarchy_r): Add flags. Dump extra binfo
      	information, if enabled. Use maybe_indent_hierarchy. Adjust
      	output format.
      	(dump_class_hierarchy): Adjust prototype. Adjust output format.
      	(dump_array, dump_vtable, dump_vtt): New functions.
      	(finish_struct_1): Adjust hierarchy dumping.
      	(initialize_vtable): Call dump_vtable.
      	(build_vtt): Call dump_vtt.
      	(build_ctor_vtbl_group): Call dump_vtable.
      	* decl2.c (flag_dump_class_layout): Remove.
      	(cxx_decode_option): Remove dump translation unit
      	and dump class hierarchy check. Call dump_switch_p.
      	(finish_file): Adjust dumping.
      	(dump.c): Only dump base classes if not TDF_SLIM.
      	Only dump namespace members if not TDF_SLIM.
      	* optimize.c (dump_function): New function.
      	(optimize_function): Call dump_function.
      	* semantics.c (expand_body): Use dump_enabled_p.
      
      From-SVN: r42896
      Nathan Sidwell committed
    • Daily bump. · eb537d4f
      From-SVN: r42894
      GCC Administrator committed
    • c-tree.h (lang_decl): Add pending_sizes fields. · 1f731749
      	* c-tree.h (lang_decl): Add pending_sizes fields.
      	* c-decl.c (store_parm_decls): Save pending_sizes away for nested
      	functions.
      	(c_expand_body): Expand them.
      	(lang_mark_tree): Mark lang_decl:pending_sizes.
      	* function.c (expand_pending_sizes): New function, broken out
      	from ...
      	(expand_function_start): ... here.
      	* tree.h (expand_pending_sizes): Declare it.
      
      From-SVN: r42892
      Mark Mitchell committed
  2. 04 Jun, 2001 30 commits
  3. 03 Jun, 2001 4 commits