This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

why are few gcc graph output files incorrect ?


using gcc-4.3.2 and gcc-4.5 snapshot gcc-core-4.5-20090924.tar.bz2
and running 'gcc -dv -da test.c' to generate graph output files
noticed there are few files with syntax error when running checks
using a script like this:

#!/bin/sh
rm -v -f *.ps
pre=
rec=*.vcg
post=
for i in $pre${rec}; do
    ./xvcg -silent -psoutput $i.ps $i
done

with gcc-4.5 these syntax errors appear: (unexpected graph: statement)
Syntax error (test.c.144r.into_cfglayout.vcg: l:410 p:7): Unexpected
lexem GRAPH "graph:" (parse error) !
Syntax error (test.c.145r.jump.vcg: l:410 p:7): Unexpected lexem GRAPH
"graph:" (parse error) !
Syntax error (test.c.169r.reginfo.vcg: l:410 p:7): Unexpected lexem
GRAPH "graph:" (parse error) !

with gcc-4.3.2: these syntax errors appear: (unexpected graph: statement)
Syntax error (test.c.138r.into_cfglayout.vcg: l:410 p:7): Unexpected
lexem GRAPH "graph:" (parse error) !
Syntax error (test.c.139r.jump.vcg: l:410 p:7): Unexpected lexem GRAPH
"graph:" (parse error) !
Syntax error (test.c.159r.regclass.vcg: l:410 p:7): Unexpected lexem
GRAPH "graph:" (parse error) !

because the graph file has no indentation cannot easily see why this
error happens, it looks like this:

}
}
edge: { sourcename: "gcd.51" targetname: "gcd.999999" }
node: { title: "gcd.999999" label: "END" }
}
graph: { title: "main"  <---here syntax error happens
folding: 1
hidden: 2
node: { title: "main.0" }

the source in gcc/graph.c looks fine and generates for the other output files
correct graph output.

does this mean this error comes from for example unusual rtl in gcc in
specific cases ?
is there a easy fix for this ?

Thanks, tys.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]