1. 09 Sep, 1999 21 commits
    • cp-tree.h (scratch_tree_cons): Remove. · 1814b96b
      	* cp-tree.h (scratch_tree_cons): Remove.
      	* call.c: Replace all uses of expr_tree_cons, saveable_tree_cons,
      	and perm_tree_cons with plain tree_cons.
      	* class.c: Likewise.
      	* decl.c: Likewise.
      	* decl2.c: Likewise.
      	* except.c: Likewise.
      	* expr.c: Likewise.
      	* init.c: Likewise.
      	* lex.c: Likewise.
      	* method.c: Likewise.
      	* parse.y: Likewise.
      	* pt.c: Likewise.
      	* repo.c: Likewise.
      	* rtti.c: Likewise.
      	* search.c: Likewise.
      	* typeck.c: Likewise.
      	* parse.c: Regenerated.
      	* tree.c (build_srcloc): Simplify.
      
      From-SVN: r29238
      Mark Mitchell committed
    • Add a missing GC root · 638e6ebc
      From-SVN: r29236
      Bernd Schmidt committed
    • arm.c: Include "ggc.h". · 92a432f4
      * arm.c: Include "ggc.h".
      (arm_add_gc_roots): New function.
      (arm_override_options): Call it.
      (aof_pic_entry): Add a GC root for aof_pic_label when it's allocated.
      
      * arm.md (define_asm_attributes): Add a pool_range attribute.
      
      From-SVN: r29235
      Richard Earnshaw committed
    • lookup11.C: New test. · 6e9d6189
      	* g++.old-deja/g++.other/lookup11.C: New test.
      	* g++.old-deja/g++.bugs/900428_01.C: Rework now we understand
      	what is permitted and what we want.
      	* g++.old-deja/g++.jason/rfg4.C: Rework to remove ill-formed
      	overload use.
      	* g++.old-deja/g++.jason/rfg5.C: Likewise
      
      From-SVN: r29234
      Nathan Sidwell committed
    • extend.texi (Volatiles): New node. · 02cac427
      gcc/ChangeLog:
      	* extend.texi (Volatiles): New node.
      gcc/cp/ChangeLog:
      	* cp-tree.h (convert_to_void): Prototype new function.
      	(require_complete_type_in_void): Remove prototype.
      	* cvt.c (convert_to_void): New function.
      	(ocp_convert): Use convert_to_void.
      	* decl.c (cplus_expand_expr_stmt): Likewise, for complete
      	expressions.
      	* typeck.c (require_complete_type_in_void): Remove function.
      	(build_compound_expr): Use convert_to_void.
      	(build_static_cast): Likewise.
      	(build_c_cast): Likewise.
      	* semantics.c (finish_expr_stmt): Do not decay full expressions.
      
      	* typeck.c (build_x_compound_expr): Add FIXME.
      
      From-SVN: r29233
      Nathan Sidwell committed
    • Pass -pedantic command line switch on to cpplib · fb3f91c9
      From-SVN: r29232
      Nick Clifton committed
    • ggc-simple.c (IS_MARKED, [...]): New. · 9b1b9cc9
              * ggc-simple.c (IS_MARKED, IGNORE_MARK): New.
              (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): New.
              (struct ggc_any): Replace `mark' with `magic_mark'.
              (ggc_alloc_string): Use memcpy, not bcopy.
              (ggc_alloc_any): Set magic_mark.  Update bytes_alloced_since_gc.
              (ggc_free_{rtx,rtvec,tree,string}): Mark inline.
              (ggc_free_any): New.
              (ggc_mark_string): Use IGNORE_MARK.  Calc back to struct gcc_string.
              (ggc_mark): Use IGNORE_MARK.  Abort if magic doesn't match.
              (ggc_collect): Re-enable collection avoidance.  Use GGC_ANY_MARK.
              Use IS_MARKED. Use ggc_free_any.
      
      From-SVN: r29231
      Richard Henderson committed
    • define NO_IMPLICIT_EXTERN_C · 7bfcb180
      From-SVN: r29230
      Scott Bambrough committed
    • * toplev.c (main): Always init_ggc. · d09b562c
      From-SVN: r29229
      Richard Henderson committed
    • Daily bump. · 94d84bab
      From-SVN: r29228
      Jeff Law committed
    • except.c (find_all_handler_type_matches): Free the list if we found no matches. · a9f0664a
              * except.c (find_all_handler_type_matches): Free the list if
              we found no matches.
      
      From-SVN: r29227
      Richard Henderson committed
    • combine.c (SUBST): Break out to a real function do_SUBST. · 76095e2f
              * combine.c (SUBST): Break out to a real function do_SUBST.
              (SUBST_INT): Likewise.
              * gcse.c (free_pre_mem): Free `temp_bitmap'.
              (pre_insert): Free `inserted'.
              * loop.c (basic_induction_var): Always set `location'.
      
              * function.c (expand_function_end): Add initial_trampoline as a root.
              * rtl.h (init_varasm_once): Declare.
              * toplev.c (compile_file): Call it.
              * ggc-simple.c (ggc_mark_string_ptr): New.
              (ggc_add_string_root): New.
              (ggc_collect): Disable collection avoidance temporarily.
              * ggc.h (ggc_add_string_root): Declare.
              * except.c (create_rethrow_ref): Use ggc_alloc_string.
              * optabs.c (init_libfuncs): Likewise.
              * varasm.c (named_section): Use ggc_alloc_string.
              (make_function_rtl): Likewise.
              (make_decl_rtl): Likewise.
              (assemble_static_space): Likewise.
              (assemble_trampoline_template): Likewise.
              (output_constant_def): Likewise.
              (force_const_mem): Likewise.
              (mark_const_hash_entry): New.
              (mark_pool_sym_hash_table): New.
              (mark_varasm_state): Use it.
              (init_varasm_once): New.
      
              * expr.h (init_one_libfunc): Declare.
              * optabs.c (init_one_libfunc): New.
              (init_optabs): Use it.
              * config/gofast.h: Likewise.
              * config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Likewise.
              * config/sparc/sparc.h (INIT_TARGET_OPTABS): Likewise.
      
      From-SVN: r29226
      Richard Henderson committed
    • cp-tree.h (scratch_tree_cons): Remove. · e1b3e07d
      	* cp-tree.h (scratch_tree_cons): Remove.
      	* call.c: Replace all uses of expr_tree_cons, saveable_tree_cons,
      	and perm_tree_cons with plain tree_cons.
      	* class.c: Likewise.
      	* decl.c: Likewise.
      	* decl2.c: Likewise.
      	* except.c: Likewise.
      	* expr.c: Likewise.
      	* init.c: Likewise.
      	* lex.c: Likewise.
      	* method.c: Likewise.
      	* parse.y: Likewise.
      	* pt.c: Likewise.
      	* repo.c: Likewise.
      	* rtti.c: Likewise.
      	* search.c: Likewise.
      	* typeck.c: Likewise.
      	* parse.c: Regenerated.
      	* tree.c (build_srcloc): Simplify.
      
      From-SVN: r29225
      Mark Mitchell committed
    • Makefile.in (cppexp.o): Depend on cpphash.h. · fc009f96
      	* Makefile.in (cppexp.o): Depend on cpphash.h.
      	* cppexp.c (cpp_lex): Handle `defined (xxx)' for poisoned xxx.
      	Include cpphash.h.
      	* cpphash.c (special_symbol): Handle plain `xxx' for poisoned xxx.
      	* cpplib.c (do_define): Generalise to handle poisoned definitions,
      	redefining poisoned identifiers, etc.
      	(do_undef): Don't allow poisoned identifiers to be undefined.
      	(do_pragma): Add #pragma poison.
      	(do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
      
      	* cccp.c: Add T_POISON node type.
      	(special_symbol): Handle `defined(xxx)' and plain `xxx' for
      	poisoned xxx.
      	(do_define): Generalise to handle poisoned definitions,
      	redefining poisoned identifiers, etc.
      	(do_undef): Don't allow poisoned identifiers to be undefined.
      	(do_pragma): Add #pragma poison.
      	(do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
      
      	* c-pragma.c (handle_pragma_token): Ignore #pragma poison.
      	* c-pragma.h: Add ps_poison state.  We now always have generic
      	pragmas.
      
      From-SVN: r29224
      Geoff Keating committed
    • cp-tree.h (lang_decl_flags): Remove permanent_attr. · d60f72ae
      	* cp-tree.h (lang_decl_flags): Remove permanent_attr.
      	Remove next.
      	(LANG_DECL_PERMANENT): Remove.
      	* decl.c (duplicate_decls): Don't mess about with obstacks trying
      	to free memory.
      	(lang_mark_tree): Mark DECL_LANG_SPECIFIC.
      	* lex.c (free_lang_decl_chain): Remove.
      	(build_lang_decl): Don't use obstacks.
      	(retrofit_lang_decl): Likewise.
      	(copy_lang_decl): Likewise.
      
      From-SVN: r29223
      Mark Mitchell committed
    • ggc.h (ggc_alloc): New function. · 37b31aef
      	* ggc.h (ggc_alloc): New function.
      	(ggc_mark): Likewise.
      	* ggc-simple.c (ggc_any): New structure.
      	(ggc_status): Add anys.
      	(n_anys_collected): New variable.
      	(ggc_alloc): Define.
      	(ggc_mark): Likewise.
      	(ggc_collect): Collect the anys.
      
      From-SVN: r29222
      Mark Mitchell committed
    • cp-tree.h (saved_scope): Remove old_binding_level and function_decl. · fc0e7bf5
      	* cp-tree.h (saved_scope): Remove old_binding_level and
      	function_decl.  Tidy up.
      	* decl.c (mark_saved_scope): Don't set them.
      	(maybe_push_to_top_level): Clear memory.
      
      From-SVN: r29221
      Mark Mitchell committed
    • decl.c (layout_var_decl): Change prototype. · c82dbd95
      	* decl.c (layout_var_decl): Change prototype.  Don't complete
      	types for external objects.
      	(check_initializer): Likewise.  Tidy.
      	(initialize_local_var): Complete types here.
      	(cp_finish_decl): Not here.  Reorganize a little.
      	(grokvardecl): Don't complete types here.
      
      From-SVN: r29220
      Mark Mitchell committed
    • * xmemdup.c: Include sys/types.h. · 33c5ddcd
      From-SVN: r29218
      Kaveh R. Ghazi committed
  2. 08 Sep, 1999 19 commits