This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
scope of a varible in gcc source code
- From: ranjith kumar <ranjit_kumar_b4u at yahoo dot co dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 6 Jun 2007 18:53:54 +0100 (BST)
- Subject: scope of a varible in gcc source code
Hi,
'vect_dump' is variable of FILE type. That is
declared in tree-vectorizer.c
When I tried to access it from the file
tree-scalar-evolution.c, I got installation error.
My question is how to enable vect_dump variable
access-able in every file including
tree-scalar-evolution.c,
toplev.c....passes.c........etc
In which file I have to declare that variable?
If I move that declaration, to other file, from
tree-vectorizer.c , will I need to declare that
variable as extern in tree-vectorizer.c????
---------------------------------------------------------
../../gcc-4.1.2/gcc/tree-scalar-evolution.c -o
tree-scalar-evolution.o
../../gcc-4.1.2/gcc/tree-scalar-evolution.c: In
function `get_loop_exit_condition':
../../gcc-4.1.2/gcc/tree-scalar-evolution.c:986:
error: `vect_dump' undeclared (first use in this
function)
../../gcc-4.1.2/gcc/tree-scalar-evolution.c:986:
error: (Each undeclared identifier is reported only
once
../../gcc-4.1.2/gcc/tree-scalar-evolution.c:986:
error: for each function it appears in.)
make[2]: *** [tree-scalar-evolution.o] Error 1
make[2]: Leaving directory
`/users/pg05/ranjithk/gcc/obj/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory
`/users/pg05/ranjithk/gcc/obj/gcc'
make: *** [bootstrap] Error 2
___________________________________________________________
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html