scope of a varible in gcc source code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux