public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* scope of a varible in gcc source code
@ 2007-06-06 17:54 ranjith kumar
  0 siblings, 0 replies; only message in thread
From: ranjith kumar @ 2007-06-06 17:54 UTC (permalink / raw)
  To: gcc-help

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 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-06 17:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-06 17:54 scope of a varible in gcc source code ranjith kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).