https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83711
gml4gtk <mooigraph at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mooigraph at gmail dot com
--- Comment #2 from gml4gtk <mooigraph at gmail dot com> ---
Created attachment 51103
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51103&action=edit
add GNU GCC version information to the graph output data
Created this patch to add GCC version information to the graph data
using gcc git version of sun 4 july 2021
and using gml4gtk graph viewer on sourceforge with the GNU GCC graph data
git describe
basepoints/gcc-12-1999-gd07092a61d5
gcc --version
gcc (GCC) 12.0.0 20210704 (experimental)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The start of the gcc -fcallgraph-info output now looks like this:
/* callgraph generated by GNU GCC Compiler -fcallgraph-info option version
* GNU C17 (GCC) version 12.0.0 20210704 (experimental) (x86_64-pc-linux-gnu)
* compiled by GNU C version 12.0.0 20210704 (experimental), GMP version
6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version none
* GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
*/
graph: { title: "foo.c"
node: { title: "hello_GCC" label: "hello_GCC\nfoo.c:3:6" }
...
}
The start of the rtl, tree, ipa graph data look like this
generated with gcc -fdump-rtl-all-graph -fdump-tree-all-graph
-fdump-ipq-all-graph
/* graph generated by GNU GCC Compiler version
* GNU C99 (GCC) version 12.0.0 20210704 (experimental) (x86_64-pc-linux-gnu)
* compiled by GNU C version 12.0.0 20210704 (experimental), GMP version
6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version none
* GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
*/
digraph "gml4gtk-dot.tab.c.296r.ira" {
...
}
The start of the -fanalyzer graph output files look like this
/* graph generated by GNU GCC Compiler version
* GNU C99 (GCC) version 12.0.0 20210704 (experimental) (x86_64-pc-linux-gnu)
* compiled by GNU C version 12.0.0 20210704 (experimental), GMP version
6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version none
* GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
*/
digraph "base" {
...
}