This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Minor declaration fixes
- To: gcc-patches at gcc dot gnu dot org
- Subject: Minor declaration fixes
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 05 Apr 2000 09:44:15 -0600
- Reply-To: law at cygnus dot com
Declarations for functions with external scope belong in .h files, not
.c files.
* basic-block.h (verify_flow_info): Declare.
(flow_loop_outside_edge_p): Declare.
* flow.c (verify_flow_info): Remove declaration.
(clear_log_links, flow_loop_outside_edge_p): Likewise.
Index: basic-block.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/basic-block.h,v
retrieving revision 1.56
diff -c -3 -p -r1.56 basic-block.h
*** basic-block.h 2000/03/16 14:56:54 1.56
--- basic-block.h 2000/04/05 15:41:55
*************** extern void debug_bb_n PARAMS ((int));
*** 453,457 ****
--- 453,463 ----
extern void dump_regset PARAMS ((regset, FILE *));
extern void debug_regset PARAMS ((regset));
+ /* This function is always defined so it can be called from the
+ debugger, and it is declared extern so we don't get warnings about
+ it being unused. */
+ extern void verify_flow_info PARAMS ((void));
+ extern int flow_loop_outside_edge_p PARAMS ((const struct loop *, edge));
+
#endif /* _BASIC_BLOCK_H */
Index: flow.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/flow.c,v
retrieving revision 1.242
diff -c -3 -p -r1.242 flow.c
*** flow.c 2000/03/25 18:34:02 1.242
--- flow.c 2000/04/05 15:42:05
*************** static void flow_loop_tree_node_add PARA
*** 353,365 ****
static void flow_loops_tree_build PARAMS ((struct loops *));
static int flow_loop_level_compute PARAMS ((struct loop *, int));
static int flow_loops_level_compute PARAMS ((struct loops *));
-
- /* This function is always defined so it can be called from the
- debugger, and it is declared extern so we don't get warnings about
- it being unused. */
- void verify_flow_info PARAMS ((void));
- int flow_loop_outside_edge_p PARAMS ((const struct loop *, edge));
- void clear_log_links PARAMS ((rtx));
/* Find basic blocks of the current function.
F is the first insn of the function and NREGS the number of register
--- 353,358 ----