1. 16 Jun, 2003 1 commit
    • decl.c, [...]: Don't use the PTR macro. · fad205ff
      cp:
      	* cp/decl.c, cp/pt.c, cp/search.c, cp/tree.c: Don't use the PTR
      	macro.
      
      gcc:
      	* bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
      	config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
      	dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
      	function.c, gcc.c, genoutput.c, gensupport.c, global.c,
      	haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
      	loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
      	read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
      	stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
      	the PTR macro.
      
      From-SVN: r68043
      Kaveh R. Ghazi committed
  2. 12 Jun, 2003 1 commit
    • ChangeLog: Follow spelling conventions. · 6356f892
      	* ChangeLog: Follow spelling conventions.
      	* ChangeLog.2: Likewise.
      	* c-decl.c: Likewise.
      	* cfgloop.h: Likewise.
      	* cgraph.c: Likewise.
      	* coverage.c: Likewise.
      	* cppcharset.c: Likewise.
      	* cpphash.h: Likewise.
      	* cpplex.c: Likewise.
      	* cpplib.c: Likewise.
      	* dbxout.c: Likewise.
      	* df.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarfout.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* explow.c: Likewise.
      	* gcov-io.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* gengtype.c: Likewise.
      	* ggc.h: Likewise.
      	* opts.c: Likewise.
      	* real.c: Likewise.
      	* reload.c: Likewise.
      	* stmt.c: Likewise.
      
      From-SVN: r67849
      Kazu Hirata committed
  3. 08 Mar, 2003 2 commits
    • Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h. · 988d1653
      	* Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
      	* gt-cgraph.h: New GC file.
      	* cgraph.c (known_fns): New static variable.
      	(cgraph_node): Add the decl into varray.
      
      From-SVN: r63998
      Jan Hubicka committed
    • inline-3.c: New test. · 18d13f34
      	* gcc.dg/inline-3.c: New test.
      
      	* c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
      	* cgraph.h: (cgraph_local_info): Add can_inline_once
      	(cgraph_global_info): Add inline_once.
      	(cgraph_node): Add previous.
      	(cgraph_remove_node): New.
      	* cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
      	function.
      	(cgraph_optimize): Call it.
      	(cgraph_finalize_function):  Set inlinable flags.
      	(cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
      	(cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
      	(cgraph_expand_function): Likewise.
      	* cgraph.c
      	(cgraph_node): Put nodes into doubly linked chain.
      	(cgraph_remove_node): New function.
      	* flags.h (flag_inline_functions_called_once): Declare.
      	* tree-inline.c: Include cgraph.h
      	(inlinable_functions_p): Add extra argument to bypass limits.
      	(expand_call_inline):  Obey cgraph flag.
      	* tree-inline.h (tree_inlinable_function_p): Update prototype.
      
      From-SVN: r63983
      Jan Hubicka committed
  4. 06 Mar, 2003 1 commit
  5. 05 Mar, 2003 2 commits
    • Makefile.in (calls.o, [...]): Depend on cgraph.h · b255a036
      	* Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
      	* alias.c:  Include cgraph.h
      	(mark_constant_function): Use cgraph_rtl_info.
      	* calls.c:  Include cgraph.h
      	(flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
      	calls.
      	(expand_call): Use cgraph_rtl_info to set preferred stack boundary.
      	* cgraph.c (cgraph_rtl_info): New function.
      	* cgraph.h (cgraph_rtl_info): Declare
      	(cgraph_rtl_info): Likewise.
      	* function.h (struct function): Add recursive_call_emit.
      	* toplev.c: Include cgraph.h.
      	(rest_of_compilation): Set preferred_incoming_stack_boundary.
      
      	* gcc.dg/i386-local2.c: New.
      
      From-SVN: r63868
      Jan Hubicka committed
    • i386-local.c: New. · dafc5b82
      	* gcc.dg/i386-local.c: New.
      
      	* toplev.c (rest_of_compilation):  Deffer RTL compilation only when
      	RTL inlining is done.
      
      	* cgraphunit.c (cgraph_mark_local_functions): New local function.
      	(cgraph_optimize): Mark local functions.
      	* i386-protos.h (init_cumulative_args): Update prototype.
      	* i386.c (init_cumulative_args): Use register passing convention for
      	local functions.
      
      	* cgraph.c (cgraph_global_info_ready): New global variable
      	(cgraph_local_info, cgraph_global_info): New functions.
      	* cgraph.h (struct cgraph_local_info, cgraph_global_info): New
      	structures.
      	(cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
      	Declare.
      	* cgraphunit.c (cgraph_finalize_function): Set inline_many.
      	(cgraph_mark_functions_to_output): Use inline_many.
      	(cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
      	(cgraph_expand_functions): Expand inline functions last.
      	(cgraph_optimize): Do not emit uneeded functions.
      
      From-SVN: r63822
      Jan Hubicka committed
  6. 22 Feb, 2003 1 commit
    • expmed.c (expand_divmod): Undo sign extensions for unsigned operands · 1c4a429a
      	* expmed.c (expand_divmod): Undo sign extensions for unsigned operands
      
      	* cfgcleanup.c (try_forward_edges):  Don't check loop structures
      	when not optimizing.
      	(cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
      	when not expensive.
      	* toplev.c (rest_of_compilation):  Duplicate loop headers only when
      	optimizing;  Delete trivially dead insns early; fix optimize check.
      
      	* Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
      	dependency on cgraph.h
      	* c-decl.c: Include cgraph.h
      	(finish_function): Update call of tree_inlinable_function_p.
      	* c-objc-common.c: Include cgraph.h
      	* cgraph.h: New file.
      	* cgraphunit.c: New file.
      	* cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
      	(cgraph_nodes, cgraph_n_nodes): Globalize.
      	(cgraph_finalize_function, cgraph_finalize_compilation_unit
      	cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
      	Move into cgraphunit.c
      	* tree-inline.c: Include cgraph.h
      	* tree-inline.c: Include cgraph.h
      
      From-SVN: r63281
      Jan Hubicka committed
  7. 19 Feb, 2003 1 commit
  8. 13 Feb, 2003 1 commit
  9. 12 Feb, 2003 1 commit
    • Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time · e72fcfe8
      	* Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
      	(OBJS): Add callgraph.o
      	(callgraph.o): New.
      	* c-decl.c (expand_body_1): Break out from ...
      	(expand_body): This one;  change calling convention
      	(finish_function): Move some of expand_body logic here.
      	(c_expand_deferred_function): Update call of expand_body
      	(c_expand_stmt): Use c_expand_body_1.
      	* c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
      	* c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
      	* c-tree.h (c_expand_body): Declare.
      	* callgraph.c: New file.
      	* flags.h (flag_unit_at_a_time): Declare.
      	* langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
      	LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
      	LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
      	* langhooks.h (struct lang_hooks_for_callgraph): New.
      	(struct lang_hooks): Add callgraph field.
      	* toplev.c (flag_unit_at_a_time): New.
      	(lang_independent_options): Add flag_unit_at_a_time.
      	(process_options): Disable unit-at-a-time mode for frontends not
      	supporting callgraph.
      	* tree-inline.c (typedef struct inline_data): Add "decl"
      	(expand_call_inline): Update callgraph.
      	(optimize_inline_calls): Set id.decl.
      	* tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
      	cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
      	cgraph_calls_p): Declare.
      	* invoke.texi (-funit-at-a-time): Document
      
      From-SVN: r62789
      Jan Hubicka committed