1. 28 Mar, 2001 4 commits
  2. 27 Mar, 2001 3 commits
    • Makefile.in (SYSTEM_H): Define. · 911e6107
      	* Makefile.in (SYSTEM_H): Define.
      	Depend on $(SYSTEM_H), not system.h.
      
      	* objc/Make-lang.in: Depend on $(SYSTEM_H), not system.h.
      
      cp:
      	* Make-lang.in: Depend on $(SYSTEM_H), not system.h.
      
      f:
      	* Make-lang.in: Depend on $(SYSTEM_H), not system.h.
      
      java:
      	* Make-lang.in: Depend on $(SYSTEM_H), not system.h.
      
      From-SVN: r40883
      Kaveh R. Ghazi committed
    • dump.c (dump_access): New function. · 005a5cb0
      	* dump.c (dump_access): New function.
      	(cp_dump_tree): Use it.  Dump basetype information for class
      	types.
      
      Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
      
      From-SVN: r40866
      Mike Yang committed
    • c-common.h (DECL_NUM_STMTS): New macro. · b850de4f
      	* c-common.h (DECL_NUM_STMTS): New macro.
      	* c-decl.c (duplicate_decls): Copy DECL_NUM_STMTS, not
      	DECL_FRAME_SIZE.
      	(pushdecl): Likewise.
      	* c-semantics.c (add_stmt): Update DECL_NUM_STMTS.
      	* integrate.c (expand_inline_function): Don't check
      	DECL_FRAME_SIZE.
      	* print-tree.c (print_node): Don't print it.
      	* toplev.c (rest_of_compilation): Don't try to inline when
      	flag_no_inline is on.
      	* tree.h (DECL_FRAME_SIZE): Remove.
      	(tree_decl): Adjust accordingly.
      
      	* Makefile.in (optimize.o): Depend on params.h.
      	(duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
      	(init_decl_processing): Set flag_no_inline when doing
      	inlining-on-trees.
      	* optimize.c: Include params.h.
      	(struct inline_data): Improve documentation of FNS.  Add
      	FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
      	(INSNS_PER_STMT): New macro.
      	(remap_block): Use CLONING_P.
      	(inlinable_function_p): Don't inline big functions.
      	(expand_call_inline): Keep track of how much inlining we've done.
      	(optimize_function): Set FIRST_INLINED_FN.
      	(maybe_clone_body): Set CLONING_P.
      	* semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
      	tree nodes.
      	(genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
      	rest_of_compilation.  Clear DECL_RTL for local variables
      	afterwards.
      	(clear_decl_rtl): New function.
      
      	* com.c (duplicate_decls): Don't copy DECL_FRAME_SIZE.
      
      	* parse.h (DECL_END_SOURCE_LINE): Don't rely on DECL_FRAME_SIZE.
      
      From-SVN: r40859
      Mark Mitchell committed
  3. 26 Mar, 2001 3 commits
    • error.c: Also undefine 'A' macro used for cp_printers definition. · 711d29df
      2001-03-26  Phil Edwards  <pme@sources.redhat.com>
      
      	* error.c:  Also undefine 'A' macro used for cp_printers definition.
      
      From-SVN: r40854
      Phil Edwards committed
    • Implement DR 209 · 788bf0e3
      cp:
      	Implement DR 209
      	* cp-tree.h (skip_type_access_control,
      	reset_type_access_control): Prototype.
      	* decl.c (grokdeclarator): Access of friends is not checked.
      	* parse.y (component_decl_list): Reset type access control.
      	* semantics.c (decl_type_access_control): Clear
      	current_type_lookups.
      	(save_type_access_control): Don't save if not deferring.
      	(skip_type_access_control, reset_type_access_control): New
      	functions.
      	(begin_class_definition): Do type access control for basetypes.
      	Start deferred access control.
      	(finish_class_definition): Resume immediate access control if
      	this is a local class.
      testsuite:
      	* g++.old-deja/g++.other/friend12.C: New test.
      	* g++.old-deja/g++.other/friend9.C: Expect no errors.
      	* g++.old-deja/g++.robertl/eb56.C: Make typedef public.
      
      From-SVN: r40841
      Nathan Sidwell committed
    • class.c (add_method): Use memcpy/memmove, not bcopy. · 730e1556
      	* class.c (add_method): Use memcpy/memmove, not bcopy.
      
      	* decl.c (duplicate_decls): Likewise.
      
      From-SVN: r40835
      Kaveh R. Ghazi committed
  4. 23 Mar, 2001 3 commits
    • mangle.c (write_discriminator): Use `_0' for discriminator 1, not `_'. · f1a0345c
      	* mangle.c (write_discriminator): Use `_0' for discriminator 1,
      	not `_'.
      
      	* cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
      	`_' not followed by a digit is invalid.
      
      From-SVN: r40795
      Jakub Jelinek committed
    • decl.c (local_names): Define. · 8e4ce833
      	* decl.c (local_names): Define.
      	(push_local_name): New.
      	(grok_reference_init): Return init if initializing static reference
      	variable with non-constant instead of emitting it.
      	Move expand_static_init call to cp_finish_decl.
      	(layout_var_decl): Call push_local_name.
      	(maybe_commonize_var): Allow inlining functions even if they have
      	static local variables, use comdat_linkage for them if flag_weak.
      	(check_initializer): Call obscure_complex_init if
      	grok_reference_init returned non-zero.
      	(save_function_data): Clear x_local_names.
      	(pop_cp_function_context): Free x_local_names.
      	(mark_inlined_fns): Remove.
      	(mark_lang_function): Mark x_local_names.
      	(lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
      	Mark inlined_fns as tree, remove call to mark_inlined_fns.
      	* class.c (alter_access): Ensure DECL_ACCESS is never set if
      	DECL_DISCRIMINATOR_P.
      	* cp-tree.h (cp_language_function): Add x_local_names.
      	(lang_decl_flags): Add discriminator into u2.
      	(lang_decl_inlined_fns): Remove.
      	(lang_decl): inlined_fns is now a TREE_VEC.
      	(DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
      	* optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
      	TREE_VEC, not a custom structure.
      	(optimize_function): Likewise.
      	* mangle.c (discriminator_for_local_entity): Discriminate among
      	VAR_DECL local entities.
      	* search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
      	is not valid.
      
      	* g++.old-deja/g++.other/mangle3.C: New test.
      
      From-SVN: r40779
      Jakub Jelinek committed
    • [multiple changes] · 60c87482
      2001-03-23  Bryce McKinlay  <bryce@albatross.co.nz>
      
      	* extend.texi: Document the "java_interface" attribute.
      
      java/:
      2001-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
      
      	* gjavah.c (process_file): Mark interface definitions with
      	"__attribute__ ((java_interface))".
      
      cp/:
      2001-03-22  Bryce McKinlay  <bryce@albatross.co.nz>
      
      	Add support for Java interface method calls.
      	* cp-tree.h (struct lang_type): Add java_interface flag.
      	(TYPE_JAVA_INTERFACE): New macro.
      	* tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
      	by setting TYPE_JAVA_INTERFACE.
      	* call.c (java_iface_lookup_fn): New static.
      	(build_over_call): If calling a method declared in a
      	TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
      	expression which resolves the function address.
      	(build_java_interface_fn_ref): New function.
      
      From-SVN: r40769
      Bryce McKinlay committed
  5. 22 Mar, 2001 5 commits
    • Make-lang.in (cp/except.o): Don't depend on insn-flags.h. · 94c7f30b
              * Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
              * except.c: Don't include it.
      
      From-SVN: r40753
      Richard Henderson committed
    • parse.y (bad_decl, [...]): New nonterminals. · fd8b7a0e
      	* parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
      	New nonterminals.
      	(data_def, component_decl): Add reductions to bad_decl.
      
      Co-Authored-By: Joe Buck <jbuck@synopsys.com>
      
      From-SVN: r40752
      Gerald Pfeifer committed
    • method.c (do_build_assign_ref): Don't use build_modify_expr for anonymous aggregates... · a1c2b86d
      	* method.c (do_build_assign_ref): Don't use build_modify_expr for
      	anonymous aggregates, since they don't have assignment operator
      	method.
      	* decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
      	assignment operators for anonymous structure fields.
      
      	* g++.old-deja/g++.other/anon8.C: New test.
      
      From-SVN: r40746
      Jakub Jelinek committed
    • pt.c (instantiate_decl): Abort if we see a member constant instantiation that… · 46ccf50a
      pt.c (instantiate_decl): Abort if we see a member constant instantiation that doesn't already have its...
      
              * pt.c (instantiate_decl): Abort if we see a member constant
              instantiation that doesn't already have its initializer.
              Downgrade explicit instantiation without definition to pedwarn.
      
              * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
              * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
              (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
      
              * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
              (pending_vtables): Remove.
              * decl2.c (pending_vtables): Remove.
              (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
              CLASSTYPE_VTABLE_NEEDS_WRITING.
              (import_export_class): Likewise.
              (init_decl2): Don't mark pending_vtables.
              * lex.c (handle_pragma_vtable): Just sorry.
              * pt.c (instantiate_class_template): Don't mess with
              CLASSTYPE_VTABLE_NEEDS_WRITING.
              (mark_class_instantiated): Likewise.
              * ptree.c (print_lang_type): Don't print it.
              * semantics.c (begin_class_definition): Don't set it.
      
              * pt.c (template_tail): Replace with last_pending_template.
              (maybe_templates, maybe_template_tail): Remove.
              (add_pending_template): Adjust.
              (instantiate_pending_templates): Adjust.
      
              * cp-tree.h (struct saved_scope): Remove lang_stack field.
              (current_lang_stack): Remove.
              * decl.c (maybe_push_to_top_level): Don't initialize it.
              (duplicate_decls): Use current_lang_depth.
              (xref_basetypes): Likewise.
              * class.c (current_lang_depth): New fn.
              (push_lang_context): Use more varray functionality.
              (pop_lang_context): Likewise.
      
      From-SVN: r40724
      Jason Merrill committed
    • collect2.c (is_ctor_dtor): Always use '_' in the file fn names, not '.' or '$'. · 64d9c3fe
              * collect2.c (is_ctor_dtor): Always use '_' in the file fn names,
              not '.' or '$'.
              * tree.c (FILE_FUNCTION_FORMAT): Likewise.
              * varasm.c (CHKR_PREFIX): Likewise.
      
              * error.c (GLOBAL_THING): Always use '__'.
      
      From-SVN: r40723
      Jason Merrill committed
  6. 21 Mar, 2001 2 commits
  7. 19 Mar, 2001 1 commit
    • Compute DECL_ASSEMBLER_NAME lazily. · 92643fea
      	* tree.h (DECL_ASSEMBLER_NAME): Compute it lazily.
      	(DECL_ASSEMBLER_NAME_SET_P): New macro.
      	(SET_DECL_ASSEMBLER_NAME): Likewise.
      	(COPY_DECL_ASSEMBLER_NAME): Likewise.
      	(set_decl_assembler_name): Declare.
      	(lang_set_decl_assembler_name): Likewise.
      	* tree.c (lang_set_decl_assembler_name): New variab.e
      	(set_decl_assembler_name): New function.
      	(init_obstacks): Set lang_set_decl_assembler_name.
      	(build_decl): Don't set DECL_ASSEMBLER_NAME.
      	* c-decl.c (duplicate_decls): Use SET_DECL_ASSEMBLER_NAME,
      	COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
      	where it's not necessary.
      	(builtin_function): Likewise.
      	(finish_decl): Likewise.
      	* dbxout.c (dbxout_type_methods): Likewise.
      	* ggc-common.c (ggc_mark_trees): Likewise.
      	* profile.c (output_func_start_profiler): Likewise.
      	* varasm.c (make_decl_rtl): Likewise.
      
      	* class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
      	COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
      	where it's not necessary.
      	(add_method): Remove optimization involving comparison of
      	DECL_ASSEMBLER_NAME.
      	(build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
      	COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
      	where it's not necessary.
      	(check_methods): Likewise.
      	(build_clone): Likewise.
      	(built_vtt): Likewise.
      	* cp-tree.h (DECL_NEEDED_P): Likewise.
      	* decl.c (pushtag): Likewise.
      	(duplicate_decls): Likewise.
      	(pushdecl): Likewise.
      	(builtin_function): Likewise.
      	(build_library_fn_1): Set DECL_LANGUAGE for library functions.
      	(build_cp_library_fn): Likewise.
      	(maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
      	COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
      	where it's not necessary.
      	(make_rtl_for_nonlocal_decl): Likewise.
      	(cp_finish_decl): Likewise.
      	(grokfndecl): Likewise.
      	(grokvardecl): Likewise.
      	(grokdeclarator): Likewise.
      	(start_function): Likewise.
      	(cp_missing_return_ok_p): Likewise.
      	* decl2.c (grokclassfn): Likewise.
      	(check_classfn): Likewise.
      	(finish_static_data_member_decl): Likewise.
      	(grokfield): Likewise.
      	* error.c (GLOBAL_IORD_P): Remove.
      	(dump_global_iord): Improve output.
      	(dump_decl): Avoid using DECL_ASSEMBLER_NAME.
      	* except.c (nothrow_libfn_p): Summarily reject any function not in
      	namespace-scope.
      	* init.c (build_java_class_ref): Don't explicitly set
      	DECL_ASSEMBLER_NAME after calling mangle_decl.
      	* mangle.c (mangle_decl_string): Handle extern "C" functions.
      	(mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
      	* method.c (set_mangled_name_for_decl): Don't explicitly set
      	DECL_ASSEMBLER_NAME after calling mangle_decl.
      	(make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
      	IDENTIFIER_GLOBAL_VALUE for the thunk.
      	* pt.c (set_mangled_name_for_template_decl): Remove.
      	(check_explicit_specialization): Don't use it.
      	(looup_template_class): Don't set DECL_ASSEMBLER_NAME.
      	(tsubst_friend_function): Likewise.
      	(tsubst_decl): Likewise.
      	(regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
      	* rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
      	COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
      	where it's not necessary.
      	(tinfo_base_init): Likewise.
      	(create_real_tinfo_var): Likewise.
      	* search.c (looup_field_1): Likewise.
      	* semantics.c (finish_named_return_value): Likewise.
      	* tree.c (init_tree): Set lang_set_decl_assembler_name.
      
      	* com.c (builtin_function): Use SET_DECL_ASSEMBLER_NAME.
      
      	* class.c (build_class_ref): Use SET_DECL_ASSEMBLER_NAME.
      	(layout_class): Likewise.
      	(layout_class_method): Likewise.
      	(emit_register_classes): Likewise.
      	* decl.c (builtin_function): Likewise.
      	(give_name_to_locals): Likewise.
      
      From-SVN: r40642
      Mark Mitchell committed
  8. 15 Mar, 2001 3 commits
    • Correct semantics restrictions checking in throw-expression. · d064d75a
      cp/
      	Correct semantics restrictions checking in throw-expression.
      	* except.c (is_admissible_throw_operand): New function.
      	(build_throw): Use it.
      
      testsuite/
      	* g++.old-deja/g++.other/eh4.C: New test.
      
      From-SVN: r40487
      Gabriel Dos Reis committed
    • decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__ and its ilk. · a3eab619
      	* decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
      	and its ilk.
      
      From-SVN: r40485
      Mark Mitchell committed
    • varasm.c (assemble_alias): Use DECL_ASSEMBLER_NAME... · 19e7881c
      	* varasm.c (assemble_alias): Use DECL_ASSEMBLER_NAME, not the
      	contents of the RTL, to determine the name of the object.
      
      	* tree.h (DECL_RTL): Allocate RTL lazily.
      	(SET_DECL_RTL): New macro.
      	(DECL_RTL_SET_P): Likewise.
      	(COPY_DECL_RTL): Likewise.
      	(DECL_RTL_IF_SET): Likewise.
      	* varasm.c (make_decl_rtl): Add assertions about the kind of
      	declaration we are processing.
      	* c-decl.c (duplicate_decls): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
      	(start_decl): Likewise.
      	(finish_decl): Likewise.
      	* c-semantics.c (emit_local_var): Likewise.
      	* calls.c (expand_call): Likewise.
      	* dbxout.c (dbxout_symbol): Likewise.
      	* emit-rtl.c (unshare_all_rtl): Likewise.
      	(unshare_all_decls): Likewise.
      	(reset_used_decls): Likewise.
      	* expr.c (store_constructor): Likewise.
      	(safe_from_p): Likewise.
      	(expand_expr): Likewise.
      	* function.c (put_var_into_stack): Likewise.
      	(instantiate_decls_1): Likewise.
      	(assign_parms): Likewise.
      	(expand_function_start): Likewise.
      	(expand_function_end): Likewise.
      	* ggc-common.c (gcc_mark_trees): Likewise.
      	* integrate.c (function_cannot_inline_p): Likewise.
      	(copy_decl_for_inlining): Likewise.
      	(expand_inline_function): Likewise.
      	(integrate_parm_decls): Likewise.
      	(integrate_decl_tree): Likewise.
      	* print-tree.c (print_node): Likewise.
      	* reg-stack.c (stack_result): Likewise.
      	* stmt.c (label_rtx): Likewise.
      	(expand_return): Likewise.
      	(expand_decl): Likewise.
      	(expand_decl_cleanup): Likewise.
      	(expand_anon_union_decl): Likewise.
      	* toplev.c (check_global_declarations): Likewise.
      	(rest_of_decl_compilation): Likewise.
      	* tree.c (simple_cst_equal): Likewise.
      	* objc/objc-act.c (generate_static_references): Likewise.
      
      	* class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
      	* cp-tree.h (DECL_IN_MEMORY_P): Likewise.
      	* decl.c (duplicate_decls): Likewise.
      	(builtin_function): Likewise.
      	(build_library_fn): Likewise.
      	(build_cp_library_fn): Likewise.
      	(check_initializer): Likewise.
      	(cp_finish_decl): Likewise.
      	* decl2.c (grokfield): Likewise.
      	(grok_function_init): Remove #if 0'd code.
      	(finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
      	* friend.c (do_friend): Likewise.
      	* init.c (get_temp_regvar): Likewise.
      	* method.c (make_thunk): Likewise.
      	* pt.c (tsubst_friend_function): Likewise.
      	(tsubst_decl): Likewise.
      	(regenerate_decl_from_template): Likewise.
      	* semantics.c (genrtl_named_return_value): Likewise.
      	(expand_body): Likewise.
      	(genrtl_finish_function): Likewise.
      	* tree.c (cp_tree_equal): Likewise.
      
      	* com.c (ffecom_member_phase_2): Use COPY_DECL_RTL,
      	DECL_RTL_SET_P, etc.
      	(duplicate_decls): Likewise.
      	(start_decl): Likewise.
      
      	* class.c (build_static_field_ref): Likewise.
      	(make_method_value): Likewise.
      	(get_dispatch_table): Likewise.
      
      	* decl.c (push_jvm_slot): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
      
      From-SVN: r40482
      Mark Mitchell committed
  9. 12 Mar, 2001 1 commit
  10. 10 Mar, 2001 1 commit
    • toplev.c (file_name_nondirectory): Remove. · b3e68a79
      	* toplev.c (file_name_nondirectory): Remove.
      	* toplev.h: Similarly.
      	* dwarf2out.c (compute_section_prefix): Use lbasename instead
      	of file_name_nondirectory.
      	* cp/lex.c: Delete duplicate pending_lang_change.
      	* cp/lex.c (handle_pragma_interface, handle_pragma_implementation):
      	Similarly.
      	* cp/repo.c (get_base_filename, open_repo_file): Similarly.
      	* cp/cp-tree.h: Remove file_name_nondirectory prototype.
      
      From-SVN: r40369
      Neil Booth committed
  11. 09 Mar, 2001 1 commit
    • configure.in: Prune nonexistent files from build_xm_file, xm_file, and host_xm_file lists. · 11642c3a
      	* configure.in: Prune nonexistent files from build_xm_file,
      	xm_file, and host_xm_file lists.  Warn unless they're
      	$cpu/xm-$cpu.h.
      	Don't generate *config.h here.
      	AC_SUBST all variables needed to generate *config.h.
      	* configure: Regenerate.
      	* mkconfig.sh: New helper script, from code removed from
      	configure.in.
      	* Makefile.in: Zap all MALLOC variables - no longer used
      	anywhere, and malloc.c doesn't exist.
      	Substitute in variables needed to generate *config.h.
      	Stop lying about the dependencies contained in CONFIG_H and
      	GCONFIG_H.
      	(HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
      	(config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
      	cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
      	(all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
      	$(TM_P_H), etc. as appropriate.
      
      	* config.gcc: Zap references to deleted files.
      	* ggc-none.c: Don't include rtl.h or tm_p.h.
      
      	* config/i386/xm-beos.h, config/i386/xm-dgux.h,
      	config/i386/xm-djgpp.h, config/i386/xm-dos.h,
      	config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
      	config/i386/xm-linux.h, config/i386/xm-linux.h,
      	config/i386/xm-next.h, config/i386/xm-openbsd.h,
      	config/i386/xm-sun.h, config/i386/xm-sysv3.h:
      	Don't include i386/xm-i386.h.
      
      	* config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
      	config/i386/xm-i386.h, config/i860/xm-i860.h,
      	config/i960/xm-i960.h, config/mcore/xm-mcore.h,
      	config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
      	config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
      	Delete (empty except comments, #includes of other deleted
      	files, and macros used nowhere).
      cp:
      	* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
      
      From-SVN: r40350
      Zack Weinberg committed
  12. 08 Mar, 2001 2 commits
  13. 07 Mar, 2001 1 commit
    • c-parse.in (yylexname): New function, split out of _yylex. · cc937581
      	* c-parse.in (yylexname): New function, split out of _yylex.
      	(objc_rid_sans_at): New table.
      	(init_reswords): Initialize it.
      	(_yylex): Give labels clearer names.  Handle CPP_ATSIGN by
      	retrieving the next token and checking it for significance as
      	an ObjC keyword or string constant.
      
      	* cpplex.c (_cpp_lex_token): Just return CPP_ATSIGN for '@'.
      	* cpplib.h (TTYPE_TABLE): Add CPP_ATSIGN, drop CPP_OSTRING.
      
      	* c-lex.c, c-parse.in, cppmacro.c, cpplex.c, cp/spew.c: Remove
      	references to CPP_OSTRING.
      
      From-SVN: r40279
      Zack Weinberg committed
  14. 06 Mar, 2001 2 commits
  15. 02 Mar, 2001 5 commits
    • typeck.c (build_static_cast): Allow enum to enum conversions as per DR 128. · 7eeb553c
      cp:
      	* typeck.c (build_static_cast): Allow enum to enum conversions
      	as per DR 128.
      testsuite:
      	* g++.old-deja/g++.other/enum3.C: New test.
      
      From-SVN: r40187
      Nathan Sidwell committed
    • class.c (check_field_decls): Pointers to member do not a non-pod struct make, as per DR 148. · d282fcb2
      cp:
      	* class.c (check_field_decls): Pointers to member do not a
      	non-pod struct make, as per DR 148.
      testsuite:
      	* g++.old-deja/g++.other/pod1.C: New test.
      
      From-SVN: r40186
      Nathan Sidwell committed
    • call.c (joust): cp_pedwarn when using gnu extension concerning worst conversion sequences. · f86fdf68
      cp:
      	* call.c (joust): cp_pedwarn when using gnu extension concerning
      	worst conversion sequences.
      testsuite:
      	* g++.old-deja/g++.ext/overload1.C: New test.
      
      From-SVN: r40182
      Nathan Sidwell committed
    • xm-lynx.h, [...]: Do not define TRUE or FALSE. · d6edb99e
      	* config/xm-lynx.h, config/xm-std32.h, config/a29k/xm-a29k.h,
      	config/a29k/xm-unix.h, config/alpha/xm-alpha.h,
      	config/arc/xm-arc.h, config/arm/xm-arm.h, config/c4x/xm-c4x.h,
      	config/clipper/xm-clix.h, config/convex/xm-convex.h,
      	config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
      	config/elxsi/xm-elxsi.h, config/fr30/xm-fr30.h,
      	config/h8300/xm-h8300.h, config/i370/xm-i370.h,
      	config/i370/xm-linux.h, config/i370/xm-mvs.h,
      	config/i370/xm-oe.h, config/i386/xm-aix.h,
      	config/i386/xm-i386.h, config/i386/xm-osf.h,
      	config/i860/xm-i860.h, config/i960/xm-i960.h,
      	config/ia64/xm-ia64.h, config/m32r/xm-m32r.h,
      	config/m68k/xm-m68k.h, config/m88k/xm-m88k.h,
      	config/mcore/xm-mcore.h, config/mips/xm-mips.h,
      	config/mn10200/xm-mn10200.h, config/mn10300/xm-mn10300.h,
      	config/ns32k/xm-ns32k.h, config/pa/xm-linux.h,
      	config/pa/xm-pa.h, config/pa/xm-pa64hpux.h,
      	config/pa/xm-pahpux.h, config/pa/xm-papro.h,
      	config/pj/xm-pj.h, config/romp/xm-romp.h,
      	config/rs6000/xm-beos.h, config/rs6000/xm-rs6000.h,
      	config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
      	config/sparc/xm-sparc.h, config/sparc/xm-sysv4.h,
      	config/v850/xm-v850.h, config/vax/xm-vax.h,
      	config/vax/xm-vms.h, config/we32k/xm-we32k.h:
      	Do not define TRUE or FALSE.
      
      	* config/i386/xm-aix.h, config/i386/xm-osf.h: Delete; made
      	empty by above change.
      	* config.gcc: Remove references to these files.
      
      	* configure.in: Detect stdbool.h.
      	* configure, config.in: Regenerate.
      	* system.h: Include stddef.h here if available.  Set
      	HAVE__BOOL based on GCC_VERSION and __STDC_VERSION__.  Then
      	set up a sensible boolean type at the very end.
      
      	* combine.c, cse.c, expr.c, fold-const.c, gensupport.c,
      	f/com.c, config/mcore/mcore.c:
      	Rename variables named 'true' and/or 'false'.
      
      	* hash.h: Delete 'boolean' typedef and related #undefs.
      	* f/proj.h: Delete 'bool' type.  Don't include stddef.h here.
      
      	* function.c, ggc-common.c, hash.h, hash.c, tlink.c, cp/decl.c,
      	java/class.c, java/decl.c, java/java-tree.h:
      	Replace all uses of 'boolean' with 'bool'.
      
      From-SVN: r40176
      Zack Weinberg committed
    • gcc.c, [...]: Add zero initializer for cpp_spec field to all array elements. · f7143427
      	* gcc.c, cp/lang-specs.h, f/lang-specs.h, java/lang-specs.h,
      	objc/lang-specs.h: Add zero initializer for cpp_spec field to
      	all array elements.
      	* cp/lang-specs.h: Don't put an #ifdef inside the initializer
      	list; set a default for CPLUSPLUS_CPP_SPEC and use it.
      
      From-SVN: r40173
      Zack Weinberg committed
  16. 01 Mar, 2001 2 commits
  17. 28 Feb, 2001 1 commit