This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] stmt.c: Make some functions static.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 04 Nov 2004 12:44:21 -0500 (EST)
- Subject: [patch] stmt.c: Make some functions static.
Hi,
Attached is a patch to make expand_asm and expand_asm_operands static
as they are called only from stmt.c.
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
* stmt.c (expand_asm, expand_asm_operands): Make them static.
* tree.h: Remove the prototypes for expand_asm and
expand_asm_operands.
Index: stmt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/stmt.c,v
retrieving revision 1.406
diff -u -d -p -r1.406 stmt.c
--- stmt.c 26 Oct 2004 17:25:32 -0000 1.406
+++ stmt.c 3 Nov 2004 06:36:30 -0000
@@ -260,7 +260,7 @@ n_occurrences (int c, const char *s)
or an ADDR_EXPR containing a STRING_CST. VOL nonzero means the
insn is volatile; don't optimize it. */
-void
+static void
expand_asm (tree string, int vol)
{
rtx body;
@@ -611,7 +611,7 @@ decl_conflicts_with_clobbers_p (tree dec
VOL nonzero means the insn is volatile; don't optimize it. */
-void
+static void
expand_asm_operands (tree string, tree outputs, tree inputs,
tree clobbers, int vol, location_t locus)
{
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.643
diff -u -d -p -r1.643 tree.h
--- tree.h 29 Oct 2004 14:05:43 -0000 1.643
+++ tree.h 3 Nov 2004 06:36:32 -0000
@@ -3467,7 +3467,6 @@ extern void expand_expr_stmt_value (tree
extern int warn_if_unused_value (tree, location_t);
extern void expand_label (tree);
extern void expand_goto (tree);
-extern void expand_asm (tree, int);
extern rtx expand_stack_save (void);
extern void expand_stack_restore (tree);
@@ -3737,7 +3736,6 @@ extern bool parse_output_constraint (con
bool *, bool *, bool *);
extern bool parse_input_constraint (const char **, int, int, int, int,
const char * const *, bool *, bool *);
-extern void expand_asm_operands (tree, tree, tree, tree, int, location_t);
extern void expand_asm_expr (tree);
extern tree resolve_asm_operand_names (tree, tree, tree);
extern void expand_case (tree);