PATCH: Typos
Mark Mitchell
mark@codesourcery.com
Sat Jul 22 19:42:00 GMT 2000
I'm forwarding this message from Jeffrey Oldham, who finds himself
behind a MAPS blockade.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
>>> Forwarded message from oldham@codesourcery.com <<<
This patch fixes some typos in the GCC source. No substantive
changes. Approved by Mark Mitchell.
2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
* collect2.c (main): Typo fixed.
* diagnostic.c: Typo fixed.
* dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
* eh-common.h: Typo fixed.
* emit-rtl.c (start_sequence): Typo fixed.
* flow.c (find_label_refs): Typo fixed.
(calculate_global_regs_live): Typo fixed.
(mark_regno_cond_dead): Typo fixed.
(create_edge_list): Typos fixed.
(verify_edge_list): Typo fixed.
* ggc-common.c (ggc_mark_rtx_children): Typo fixed.
* loop.c (strength_reduce): Typo in function name fixed.
* rtl.h: Added comments. Typo in function name fixed.
* rtlanal.c: Typo in function name fixed.
(insn_dependant_p): Rename to ...
(insn_dependent_p): ... this.
(computed_jumo_p): Typo fixed.
Index: gcc/collect2.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/collect2.c,v
retrieving revision 1.97
diff -c -p -r1.97 collect2.c
*** collect2.c 2000/07/12 04:17:40 1.97
--- collect2.c 2000/07/22 23:15:05
*************** main (argc, argv)
*** 876,882 ****
int num_c_args = argc+9;
#if defined (COLLECT2_HOST_INITIALIZATION)
! /* Perform system dependant initialization, if neccessary. */
COLLECT2_HOST_INITIALIZATION;
#endif
--- 876,882 ----
int num_c_args = argc+9;
#if defined (COLLECT2_HOST_INITIALIZATION)
! /* Perform system dependent initialization, if neccessary. */
COLLECT2_HOST_INITIALIZATION;
#endif
Index: gcc/diagnostic.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/diagnostic.c,v
retrieving revision 1.27
diff -c -p -r1.27 diagnostic.c
*** diagnostic.c 2000/07/21 07:10:35 1.27
--- diagnostic.c 2000/07/22 23:15:08
*************** the Free Software Foundation, 59 Temple
*** 20,26 ****
Boston, MA 02111-1307, USA. */
! /* This file implements the language independant aspect of diagnostic
message module. */
#include "config.h"
--- 20,26 ----
Boston, MA 02111-1307, USA. */
! /* This file implements the language independent aspect of diagnostic
message module. */
#include "config.h"
Index: gcc/dwarf2out.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarf2out.c,v
retrieving revision 1.186
diff -c -p -r1.186 dwarf2out.c
*** dwarf2out.c 2000/07/17 20:56:36 1.186
--- dwarf2out.c 2000/07/22 23:15:33
*************** dwarf2out_frame_debug_expr (expr, label)
*** 1226,1232 ****
long offset;
/* If RTX_FRAME_RELATED_P is set on a PARALLEL, process each member of
! the PARALLEL independantly. The first element is always processed if
it is a SET. This is for backward compatability. Other elements
are processed only if they are SETs and the RTX_FRAME_RELATED_P
flag is set in them. */
--- 1226,1232 ----
long offset;
/* If RTX_FRAME_RELATED_P is set on a PARALLEL, process each member of
! the PARALLEL independently. The first element is always processed if
it is a SET. This is for backward compatability. Other elements
are processed only if they are SETs and the RTX_FRAME_RELATED_P
flag is set in them. */
Index: gcc/eh-common.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/eh-common.h,v
retrieving revision 1.12
diff -c -p -r1.12 eh-common.h
*** eh-common.h 2000/06/06 16:38:48 1.12
--- eh-common.h 2000/07/22 23:15:34
*************** Foundation, 59 Temple Place - Suite 330,
*** 19,25 ****
/* This file contains the structures required for the language
! independant exception handling model. Both the static compiler and
the runtime library share this file. */
/* The runtime flag flag_new_exceptions is used to determine whether the
--- 19,25 ----
/* This file contains the structures required for the language
! independent exception handling model. Both the static compiler and
the runtime library share this file. */
/* The runtime flag flag_new_exceptions is used to determine whether the
Index: gcc/emit-rtl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/emit-rtl.c,v
retrieving revision 1.136
diff -c -p -r1.136 emit-rtl.c
*** emit-rtl.c 2000/06/13 21:47:38 1.136
--- emit-rtl.c 2000/07/22 23:15:43
*************** emit (x)
*** 3494,3500 ****
pops have previously been deferred; see INHIBIT_DEFER_POP for more
details), use do_pending_stack_adjust before calling this function.
That will ensure that the deferred pops are not accidentally
! emitted in the middel of this sequence. */
void
start_sequence ()
--- 3494,3500 ----
pops have previously been deferred; see INHIBIT_DEFER_POP for more
details), use do_pending_stack_adjust before calling this function.
That will ensure that the deferred pops are not accidentally
! emitted in the middle of this sequence. */
void
start_sequence ()
Index: gcc/flow.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/flow.c,v
retrieving revision 1.306
diff -c -p -r1.306 flow.c
*** flow.c 2000/07/21 00:15:44 1.306
--- flow.c 2000/07/22 23:16:04
*************** count_basic_blocks (f)
*** 535,543 ****
return count;
}
! /* Scan a list of insns for labels referrred to other than by jumps.
This is used to scan the alternatives of a call placeholder. */
! static rtx find_label_refs (f, lvl)
rtx f;
rtx lvl;
{
--- 535,544 ----
return count;
}
! /* Scan a list of insns for labels referred to other than by jumps.
This is used to scan the alternatives of a call placeholder. */
! static rtx
! find_label_refs (f, lvl)
rtx f;
rtx lvl;
{
*************** calculate_global_regs_live (blocks_in, b
*** 3188,3194 ****
/* If any bits were removed from live_at_end, we'll have to
rescan the block. This wouldn't be necessary if we had
precalculated local_live, however with PROP_SCAN_DEAD_CODE
! local_live is really dependant on live_at_end. */
CLEAR_REG_SET (tmp);
rescan = bitmap_operation (tmp, bb->global_live_at_end,
new_live_at_end, BITMAP_AND_COMPL);
--- 3189,3195 ----
/* If any bits were removed from live_at_end, we'll have to
rescan the block. This wouldn't be necessary if we had
precalculated local_live, however with PROP_SCAN_DEAD_CODE
! local_live is really dependent on live_at_end. */
CLEAR_REG_SET (tmp);
rescan = bitmap_operation (tmp, bb->global_live_at_end,
new_live_at_end, BITMAP_AND_COMPL);
*************** mark_regno_cond_dead (pbi, regno, cond)
*** 4554,4560 ****
{
/* If this is a store to a predicate register, the value of the
predicate is changing, we don't know that the predicate as seen
! before is the same as that seen after. Flush all dependant
conditions from reg_cond_dead. This will make all such
conditionally live registers unconditionally live. */
if (REGNO_REG_SET_P (pbi->reg_cond_reg, regno))
--- 4555,4561 ----
{
/* If this is a store to a predicate register, the value of the
predicate is changing, we don't know that the predicate as seen
! before is the same as that seen after. Flush all dependent
conditions from reg_cond_dead. This will make all such
conditionally live registers unconditionally live. */
if (REGNO_REG_SET_P (pbi->reg_cond_reg, regno))
*************** verify_flow_info ()
*** 6575,6590 ****
/* Functions to access an edge list with a vector representation.
Enough data is kept such that given an index number, the
! pred and succ that edge reprsents can be determined, or
! given a pred and a succ, it's index number can be returned.
! This allows algorithms which comsume a lot of memory to
represent the normally full matrix of edge (pred,succ) with a
single indexed vector, edge (EDGE_INDEX (pred, succ)), with no
wasted space in the client code due to sparse flow graphs. */
/* This functions initializes the edge list. Basically the entire
flowgraph is processed, and all edges are assigned a number,
! and the data structure is filed in. */
struct edge_list *
create_edge_list ()
{
--- 6576,6591 ----
/* Functions to access an edge list with a vector representation.
Enough data is kept such that given an index number, the
! pred and succ that edge represents can be determined, or
! given a pred and a succ, its index number can be returned.
! This allows algorithms which consume a lot of memory to
represent the normally full matrix of edge (pred,succ) with a
single indexed vector, edge (EDGE_INDEX (pred, succ)), with no
wasted space in the client code due to sparse flow graphs. */
/* This functions initializes the edge list. Basically the entire
flowgraph is processed, and all edges are assigned a number,
! and the data structure is filled in. */
struct edge_list *
create_edge_list ()
{
*************** print_edge_list (f, elist)
*** 6676,6682 ****
}
}
! /* This function provides an internal consistancy check of an edge list,
verifying that all edges are present, and that there are no
extra edges. */
void
--- 6677,6683 ----
}
}
! /* This function provides an internal consistency check of an edge list,
verifying that all edges are present, and that there are no
extra edges. */
void
*************** remove_fake_edges ()
*** 6904,6910 ****
remove_fake_successors (ENTRY_BLOCK_PTR);
}
! /* This functions will add a fake edge between any block which has no
successors, and the exit block. Some data flow equations require these
edges to exist. */
void
--- 6905,6911 ----
remove_fake_successors (ENTRY_BLOCK_PTR);
}
! /* This function will add a fake edge between any block which has no
successors, and the exit block. Some data flow equations require these
edges to exist. */
void
Index: gcc/ggc-common.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ggc-common.c,v
retrieving revision 1.29
diff -c -p -r1.29 ggc-common.c
*** ggc-common.c 2000/06/09 21:47:38 1.29
--- ggc-common.c 2000/07/22 23:16:05
*************** ggc_mark_rtx_children (r)
*** 220,226 ****
ggc_stats->size_rtxs[(int) code] += ggc_get_size (r);
}
! /* ??? If (some of) these are really pass-dependant info, do we
have any right poking our noses in? */
switch (code)
{
--- 220,226 ----
ggc_stats->size_rtxs[(int) code] += ggc_get_size (r);
}
! /* ??? If (some of) these are really pass-dependent info, do we
have any right poking our noses in? */
switch (code)
{
Index: gcc/loop.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/loop.c,v
retrieving revision 1.260
diff -c -p -r1.260 loop.c
*** loop.c 2000/07/18 00:31:30 1.260
--- loop.c 2000/07/22 23:16:35
*************** strength_reduce (loop, insn_count, flags
*** 4104,4110 ****
{
if (GET_CODE (next) == JUMP_INSN
|| (INSN_P (next)
! && insn_dependant_p (giv_insn, next)))
break;
#ifdef HAVE_cc0
if (! INSN_P (next)
--- 4104,4110 ----
{
if (GET_CODE (next) == JUMP_INSN
|| (INSN_P (next)
! && insn_dependent_p (giv_insn, next)))
break;
#ifdef HAVE_cc0
if (! INSN_P (next)
Index: gcc/rtl.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/rtl.h,v
retrieving revision 1.209
diff -c -p -r1.209 rtl.h
*** rtl.h 2000/07/21 07:10:36 1.209
--- rtl.h 2000/07/22 23:16:42
*************** extern const char * const note_insn_name
*** 754,760 ****
/* For a MEM rtx, 1 if it refers to an aggregate, either to the
aggregate itself of to a field of the aggregate. If zero, RTX may
! or may not be such a refrence. */
#define MEM_IN_STRUCT_P(RTX) ((RTX)->in_struct)
/* For a MEM rtx, 1 if it refers to a scalar. If zero, RTX may or may
--- 754,760 ----
/* For a MEM rtx, 1 if it refers to an aggregate, either to the
aggregate itself of to a field of the aggregate. If zero, RTX may
! or may not be such a reference. */
#define MEM_IN_STRUCT_P(RTX) ((RTX)->in_struct)
/* For a MEM rtx, 1 if it refers to a scalar. If zero, RTX may or may
*************** extern rtx plus_constant_wide PARAMS (
*** 1059,1090 ****
--- 1059,1106 ----
extern rtx plus_constant_for_output_wide PARAMS ((rtx, HOST_WIDE_INT));
extern void optimize_save_area_alloca PARAMS ((rtx));
+ /* In emit-rtl.c */
extern rtx gen_rtx PARAMS ((enum rtx_code,
enum machine_mode, ...));
extern rtvec gen_rtvec PARAMS ((int, ...));
+ /* In other files */
extern char *oballoc PARAMS ((int));
extern char *permalloc PARAMS ((int));
extern rtx rtx_alloc PARAMS ((RTX_CODE));
extern rtvec rtvec_alloc PARAMS ((int));
extern rtx copy_insn_1 PARAMS ((rtx));
extern rtx copy_insn PARAMS ((rtx));
+
+ /* In rtl.c */
extern rtx copy_rtx PARAMS ((rtx));
+
+ /* In emit-rtl.c */
extern rtx copy_rtx_if_shared PARAMS ((rtx));
+
+ /* In rtl.c */
extern rtx copy_most_rtx PARAMS ((rtx, rtx));
extern rtx shallow_copy_rtx PARAMS ((rtx));
extern int rtx_equal_p PARAMS ((rtx, rtx));
+
+ /* In emit-rtl.c */
extern rtvec gen_rtvec_v PARAMS ((int, rtx *));
extern rtx gen_reg_rtx PARAMS ((enum machine_mode));
extern rtx gen_label_rtx PARAMS ((void));
extern rtx gen_lowpart_common PARAMS ((enum machine_mode, rtx));
extern rtx gen_lowpart PARAMS ((enum machine_mode, rtx));
+
+ /* In cse.c */
extern rtx gen_lowpart_if_possible PARAMS ((enum machine_mode, rtx));
+
+ /* In emit-rtl.c */
extern rtx gen_highpart PARAMS ((enum machine_mode, rtx));
extern rtx gen_realpart PARAMS ((enum machine_mode, rtx));
extern rtx gen_imagpart PARAMS ((enum machine_mode, rtx));
extern rtx operand_subword PARAMS ((rtx, unsigned int, int,
enum machine_mode));
+
+ /* In emit-rtl.c */
extern rtx operand_subword_force PARAMS ((rtx, unsigned int,
enum machine_mode));
extern int subreg_lowpart_p PARAMS ((rtx));
*************** extern void end_sequence PARAMS ((void)
*** 1101,1124 ****
--- 1117,1151 ----
extern void push_to_full_sequence PARAMS ((rtx, rtx));
extern void end_full_sequence PARAMS ((rtx*, rtx*));
extern rtx gen_sequence PARAMS ((void));
+
+ /* In varasm.c */
extern rtx immed_double_const PARAMS ((HOST_WIDE_INT, HOST_WIDE_INT, enum machine_mode));
extern rtx force_const_mem PARAMS ((enum machine_mode, rtx));
+
+ /* In explow.c */
extern rtx force_reg PARAMS ((enum machine_mode, rtx));
+
+ /* In varasm.c */
extern rtx get_pool_constant PARAMS ((rtx));
extern enum machine_mode get_pool_mode PARAMS ((rtx));
extern rtx get_pool_constant_for_function PARAMS ((struct function *, rtx));
extern enum machine_mode get_pool_mode_for_function PARAMS ((struct function *, rtx));
extern int get_pool_offset PARAMS ((rtx));
extern rtx simplify_subtraction PARAMS ((rtx));
+
+ /* In function.c */
extern rtx assign_stack_local PARAMS ((enum machine_mode,
HOST_WIDE_INT, int));
extern rtx assign_stack_temp PARAMS ((enum machine_mode,
HOST_WIDE_INT, int));
extern rtx assign_temp PARAMS ((union tree_node *,
int, int, int));
+ /* In expr.c */
extern rtx protect_from_queue PARAMS ((rtx, int));
extern void emit_queue PARAMS ((void));
extern rtx emit_move_insn PARAMS ((rtx, rtx));
+
+ /* In emit-rtl.c */
extern rtx emit_insn_before PARAMS ((rtx, rtx));
extern rtx emit_jump_insn_before PARAMS ((rtx, rtx));
extern rtx emit_call_insn_before PARAMS ((rtx, rtx));
*************** extern rtx prev_label PARAMS ((rtx));
*** 1156,1168 ****
--- 1183,1201 ----
extern rtx next_label PARAMS ((rtx));
extern rtx next_cc0_user PARAMS ((rtx));
extern rtx prev_cc0_setter PARAMS ((rtx));
+
+ /* In jump.c */
extern rtx next_nondeleted_insn PARAMS ((rtx));
extern enum rtx_code reverse_condition PARAMS ((enum rtx_code));
extern enum rtx_code reverse_condition_maybe_unordered PARAMS ((enum rtx_code));
extern enum rtx_code swap_condition PARAMS ((enum rtx_code));
extern enum rtx_code unsigned_condition PARAMS ((enum rtx_code));
extern enum rtx_code signed_condition PARAMS ((enum rtx_code));
+
+ /* In reload.c */
extern rtx find_equiv_reg PARAMS ((rtx, rtx, enum reg_class, int, short *, int, enum machine_mode));
+
+ /* In jump.c */
extern rtx squeeze_notes PARAMS ((rtx, rtx));
extern rtx delete_insn PARAMS ((rtx));
extern void delete_jump PARAMS ((rtx));
*************** extern void delete_barrier PARAMS ((rtx
*** 1170,1178 ****
--- 1203,1219 ----
extern rtx get_label_before PARAMS ((rtx));
extern rtx get_label_after PARAMS ((rtx));
extern rtx follow_jumps PARAMS ((rtx));
+
+ /* In recog.c */
extern rtx adj_offsettable_operand PARAMS ((rtx, int));
+
+ /* In emit-rtl.c */
extern rtx try_split PARAMS ((rtx, rtx, int));
+
+ /* In unknown file */
extern rtx split_insns PARAMS ((rtx, rtx));
+
+ /* In simplify-rtx.c */
extern rtx simplify_unary_operation PARAMS ((enum rtx_code, enum machine_mode, rtx, enum machine_mode));
extern rtx simplify_binary_operation PARAMS ((enum rtx_code, enum machine_mode, rtx, rtx));
extern rtx simplify_ternary_operation PARAMS ((enum rtx_code, enum machine_mode, enum machine_mode, rtx, rtx, rtx));
*************** extern rtx simplify_relational_operation
*** 1180,1196 ****
--- 1221,1250 ----
extern rtx simplify_gen_binary PARAMS ((enum rtx_code, enum machine_mode,
rtx, rtx));
extern rtx simplify_rtx PARAMS ((rtx));
+
+ /* In optabs.c */
extern rtx gen_move_insn PARAMS ((rtx, rtx));
+
extern rtx gen_jump PARAMS ((rtx));
extern rtx gen_beq PARAMS ((rtx));
extern rtx gen_bge PARAMS ((rtx));
extern rtx gen_ble PARAMS ((rtx));
+
+ /* In function.c */
extern rtx gen_mem_addressof PARAMS ((rtx, union tree_node *));
+
+ /* In explow.c */
extern rtx eliminate_constant_term PARAMS ((rtx, rtx *));
+
+ /* In optabs.c */
extern rtx expand_complex_abs PARAMS ((enum machine_mode, rtx, rtx,
int));
+
+ /* In regclass.c */
extern enum machine_mode choose_hard_reg_mode PARAMS ((unsigned int,
unsigned int));
+
+ /* In emit-rtl.c */
extern void set_unique_reg_note PARAMS ((rtx, enum reg_note, rtx));
/* Functions in rtlanal.c */
*************** extern int modified_between_p PARAMS ((
*** 1210,1216 ****
extern int no_labels_between_p PARAMS ((rtx, rtx));
extern int no_jumps_between_p PARAMS ((rtx, rtx));
extern int modified_in_p PARAMS ((rtx, rtx));
! extern int insn_dependant_p PARAMS ((rtx, rtx));
extern int reg_set_p PARAMS ((rtx, rtx));
extern rtx single_set PARAMS ((rtx));
extern int multiple_sets PARAMS ((rtx));
--- 1264,1270 ----
extern int no_labels_between_p PARAMS ((rtx, rtx));
extern int no_jumps_between_p PARAMS ((rtx, rtx));
extern int modified_in_p PARAMS ((rtx, rtx));
! extern int insn_dependent_p PARAMS ((rtx, rtx));
extern int reg_set_p PARAMS ((rtx, rtx));
extern rtx single_set PARAMS ((rtx));
extern int multiple_sets PARAMS ((rtx));
Index: gcc/rtlanal.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/rtlanal.c,v
retrieving revision 1.63
diff -c -p -r1.63 rtlanal.c
*** rtlanal.c 2000/05/25 01:11:22 1.63
--- rtlanal.c 2000/07/22 23:16:46
*************** Boston, MA 02111-1307, USA. */
*** 26,32 ****
static int rtx_addr_can_trap_p PARAMS ((rtx));
static void reg_set_p_1 PARAMS ((rtx, rtx, void *));
! static void insn_dependant_p_1 PARAMS ((rtx, rtx, void *));
static void reg_set_last_1 PARAMS ((rtx, rtx, void *));
--- 26,32 ----
static int rtx_addr_can_trap_p PARAMS ((rtx));
static void reg_set_p_1 PARAMS ((rtx, rtx, void *));
! static void insn_dependent_p_1 PARAMS ((rtx, rtx, void *));
static void reg_set_last_1 PARAMS ((rtx, rtx, void *));
*************** modified_in_p (x, insn)
*** 689,699 ****
return 0;
}
! /* Return true if anything in insn X is (anti,output,true) dependant on
anything in insn Y. */
int
! insn_dependant_p (x, y)
rtx x, y;
{
rtx tmp;
--- 689,699 ----
return 0;
}
! /* Return true if anything in insn X is (anti,output,true) dependent on
anything in insn Y. */
int
! insn_dependent_p (x, y)
rtx x, y;
{
rtx tmp;
*************** insn_dependant_p (x, y)
*** 702,723 ****
abort ();
tmp = PATTERN (y);
! note_stores (PATTERN (x), insn_dependant_p_1, &tmp);
if (tmp == NULL_RTX)
return 1;
tmp = PATTERN (x);
! note_stores (PATTERN (y), insn_dependant_p_1, &tmp);
if (tmp == NULL_RTX)
return 1;
return 0;
}
! /* A helper routine for insn_dependant_p called through note_stores. */
static void
! insn_dependant_p_1 (x, pat, data)
rtx x;
rtx pat ATTRIBUTE_UNUSED;
void *data;
--- 702,723 ----
abort ();
tmp = PATTERN (y);
! note_stores (PATTERN (x), insn_dependent_p_1, &tmp);
if (tmp == NULL_RTX)
return 1;
tmp = PATTERN (x);
! note_stores (PATTERN (y), insn_dependent_p_1, &tmp);
if (tmp == NULL_RTX)
return 1;
return 0;
}
! /* A helper routine for insn_dependent_p called through note_stores. */
static void
! insn_dependent_p_1 (x, pat, data)
rtx x;
rtx pat ATTRIBUTE_UNUSED;
void *data;
*************** jmp_uses_reg_or_mem (x)
*** 2113,2119 ****
/* Return nonzero if INSN is an indirect jump (aka computed jump).
Tablejumps and casesi insns are not considered indirect jumps;
! we can recognize them by a (use (lael_ref)). */
int
computed_jump_p (insn)
--- 2113,2119 ----
/* Return nonzero if INSN is an indirect jump (aka computed jump).
Tablejumps and casesi insns are not considered indirect jumps;
! we can recognize them by a (use (label_ref)). */
int
computed_jump_p (insn)
More information about the Gcc-patches
mailing list