Patchwork tree-ssa-structalias.c: make call_stmt_vars static

login
register
mail settings
Submitter David Malcolm
Date June 4, 2013, 9:29 p.m.
Message ID <1370381363.22768.51.camel@surprise>
Download mbox | patch
Permalink /patch/248858/
State New
Headers show

Comments

David Malcolm - June 4, 2013, 9:29 p.m.
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.
Jeff Law - June 4, 2013, 9:43 p.m.
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.
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.

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.  */