This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[vta,vta4.3] make curr_location and last_location static
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Sep 2008 03:49:34 -0300
- Subject: [vta,vta4.3] make curr_location and last_location static
While making other changes that I'll post momentarily, I couldn't find
any references to these variables outside of cfglayout.c, and no
header declared them. I figured it made sense to make them static, so
I did. Checking in...
for gcc/ChangeLog.vta
from Alexandre Oliva <aoliva@redhat.com>
* cfglayout.c (curr_location, last_location): Make static.
Index: gcc/cfglayout.c
===================================================================
--- gcc/cfglayout.c.orig 2008-09-05 03:09:44.000000000 -0300
+++ gcc/cfglayout.c 2008-09-05 03:11:46.000000000 -0300
@@ -240,7 +240,7 @@ int epilogue_locator;
/* Hold current location information and last location information, so the
datastructures are built lazily only when some instructions in given
place are needed. */
-location_t curr_location, last_location;
+static location_t curr_location, last_location;
static tree curr_block, last_block;
static int curr_rtl_loc = -1;
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}
FSFLA Board Member ÂSÃ Libre! => http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}