]> gcc.gnu.org Git - gcc.git/commit - gcc/toplev.c
lists.c (unused_insn_list, [...]): New file for maintaining various types of lists.
authorAndrew MacLeod <amacleod@cygnus.com>
Wed, 25 Aug 1999 17:50:53 +0000 (17:50 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Wed, 25 Aug 1999 17:50:53 +0000 (17:50 +0000)
commit5a4f6418af320b21dca63e0a0139306ce23b728a
tree86584c27da4bb36103f3b8996d2188499bab6044
parentb54480a7e6ff4cf13e5c6464a1efa5fa151e732a
lists.c (unused_insn_list, [...]): New file for maintaining various types of lists.

Wed Aug 25 13:41:47 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>

* lists.c (unused_insn_list, unused_expr_list): New file for
maintaining various types of lists. New statics for maintaining a
cache of available INSN_LIST and EXPR_LIST nodes.
(free_list): Static function for freeing a list of INSN/EXPR nodes.
(alloc_INSN_LIST): Function to get a free INSN_LIST node.
(alloc_EXPR_LIST): Function to get a free EXPR_LIST node.
(init_EXPR_INSN_LIST_cache): Initialize the cache lists.
(free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes.
(free_INSN_LIST_list): Free an entire list of INSN_LIST nodes.
(free_EXPR_LIST_node): Free an individual EXPR_LIST node.
(free_INSN_LIST_node): Free an individual INSN_LIST node.
* haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c
(free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c
(remove_dependence, free_pending_lists): Use new global routines.
(flush_pending_lists, sched_analyze_insn): Use new global routines.
(sched_analyze, compute_block_backward_dependences): Use new routines.
(sched_analyze_1, sched_analyze_2): Use new routines.
(schedule_insns): Use new global routines.
* rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function
prototypes.
(free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes.
(free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function
prototypes.
* toplev.c (rest_of_compilation): Initialize node cache.
* Makefile.in (OBJS): Add lists.o to list of object files.
(lists.o): Add dependancies.

From-SVN: r28864
gcc/ChangeLog
gcc/Makefile.in
gcc/haifa-sched.c
gcc/lists.c [new file with mode: 0644]
gcc/rtl.h
gcc/toplev.c
This page took 0.057223 seconds and 5 git commands to generate.