From 6a73406ee9839b8ecb1172a3e2d14c6e0abbab10 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 2 Feb 1999 17:26:55 -0800 Subject: [PATCH] Missed rtl.h on commit and from ChangeLog. Add copyright to resource.c. From-SVN: r24999 --- gcc/ChangeLog | 5 +++-- gcc/resource.c | 29 ++++++++++++++++++++++++++++- gcc/rtl.h | 4 ++++ 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 18453d508cb..68b333844ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,7 +1,7 @@ Tue Feb 2 23:38:35 1999 David O'Brien - * i386/freebsd*.h now allows '$' in label names and does not use the PCC struct - return method. + * i386/freebsd*.h now allows '$' in label names and does not use the + PCC struct return method. Tue Feb 2 22:38:23 1999 Jim Wilson @@ -29,6 +29,7 @@ Fri Jan 29 21:00:56 1999 Bob Manson * haifa-sched.c (regno_use_in): Moved to rtlanal.c. (split_block_insns): Moved to recog.c. (update_flow_info): Make public. + * rtl.h: Declare them. * reorg.c: Moved the functions dealing with computing resource usage to resource.c. diff --git a/gcc/resource.c b/gcc/resource.c index 020212c21fe..c76e253fe10 100644 --- a/gcc/resource.c +++ b/gcc/resource.c @@ -1,3 +1,23 @@ +/* Definitions for computing resource usage of specific insns. + Copyright (C) 1999 Free Software Foundation, Inc. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + #include "config.h" #include "rtl.h" #include "hard-reg-set.h" @@ -49,7 +69,14 @@ static HARD_REG_SET current_live_regs; Also only used by the next two functions. */ static HARD_REG_SET pending_dead_regs; - + +static void update_live_status PROTO ((rtx, rtx)); +static int find_basic_block PROTO ((rtx)); +static rtx next_insn_no_annul PROTO ((rtx)); +static rtx find_dead_or_set_registers PROTO ((rtx, struct resources*, + rtx*, int, struct resources, + struct resources)); + /* Utility function called from mark_target_live_regs via note_stores. It deadens any CLOBBERed registers and livens any SET registers. */ diff --git a/gcc/rtl.h b/gcc/rtl.h index 6c2c1b3adf4..bb36e4eb38c 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1037,6 +1037,7 @@ extern int computed_jump_p PROTO((rtx)); typedef int (*rtx_function) PROTO((rtx *, void *)); extern int for_each_rtx PROTO((rtx *, rtx_function, void *)); extern int insn_first_p PROTO((rtx, rtx)); +extern rtx regno_use_in PROTO((int, rtx)); /* flow.c */ @@ -1064,6 +1065,9 @@ extern enum reg_class reg_alternate_class PROTO((int)); extern rtx get_first_nonparm_insn PROTO((void)); +extern void split_block_insns PROTO((int, int)); +extern void update_flow_info PROTO((rtx, rtx, rtx, rtx)); + /* Standard pieces of rtx, to be substituted directly into things. */ #define pc_rtx (&global_rtl.pc_val) #define cc0_rtx (&global_rtl.cc0_val) -- 2.30.2