diff mbox

tree-ssa-structalias.c: make call_stmt_vars static

Message ID 1370381363.22768.51.camel@surprise
State New
Headers show

Commit Message

David Malcolm June 4, 2013, 9:29 p.m. UTC
call_stmt_vars is only used inside of tree-ssa-structalias.c, so it can
be made static.

Successfully bootstrapped on x86_64-unknown-linux-gnu (using
gcc-4.7.2-2.fc17.x86_64).

OK for trunk?

2013-06-04  David Malcolm  <dmalcolm@redhat.com>

	* tree-ssa-structalias.c (call_stmt_vars): Make static.

Comments

Jeff Law June 4, 2013, 9:43 p.m. UTC | #1
On 06/04/2013 03:29 PM, David Malcolm wrote:
> call_stmt_vars is only used inside of tree-ssa-structalias.c, so it can
> be made static.
>
> Successfully bootstrapped on x86_64-unknown-linux-gnu (using
> gcc-4.7.2-2.fc17.x86_64).
>
> OK for trunk?
>
> 2013-06-04  David Malcolm  <dmalcolm@redhat.com>
>
> 	* tree-ssa-structalias.c (call_stmt_vars): Make static.
OK.  Please install.

Thanks,
Jeff
David Malcolm June 5, 2013, 12:53 a.m. UTC | #2
On Tue, 2013-06-04 at 15:43 -0600, Jeff Law wrote:
> On 06/04/2013 03:29 PM, David Malcolm wrote:
> > call_stmt_vars is only used inside of tree-ssa-structalias.c, so it can
> > be made static.
> >
> > Successfully bootstrapped on x86_64-unknown-linux-gnu (using
> > gcc-4.7.2-2.fc17.x86_64).
> >
> > OK for trunk?
> >
> > 2013-06-04  David Malcolm  <dmalcolm@redhat.com>
> >
> > 	* tree-ssa-structalias.c (call_stmt_vars): Make static.
> OK.  Please install.

Thanks; committed to SVN trunk as r199679.
diff mbox

Patch

Index: gcc/tree-ssa-structalias.c
===================================================================
--- gcc/tree-ssa-structalias.c	(revision 199669)
+++ gcc/tree-ssa-structalias.c	(working copy)
@@ -382,7 +382,7 @@ 
 
 /* A map mapping call statements to per-stmt variables for uses
    and clobbers specific to the call.  */
-struct pointer_map_t *call_stmt_vars;
+static struct pointer_map_t *call_stmt_vars;
 
 /* Lookup or create the variable for the call statement CALL.  */