Bug #789
closed
LDV-Git doesn't detect call-graph dependencies
Added by Pavel Shved almost 14 years ago.
Updated over 13 years ago.
Detected in build:
91f05e40
Published in build:
8038062
Description
After reviewing metadata of Eugene Novikov's machine, I noticed that they don't contain dependency data at all.
Perhaps, the reason is a compiler-specific way of printing those debug dumps, out of which the dependencies are extracted. GCC 4.4.1 on my machine provides the dumps that can be understood by LDV-Git.
Eugene, could you, please, post your version of GCC compiler, and attach a debug dump (on my machine it's named hello_world.c.128r.expand
) that is produced by compiling a simple hello_world program (attached):
gcc -o hello_world.o hello_world.c -fdump-rtl-expand
Files
On my machine it has another name (see attachment).
I can advice you to try the following command:
gcc -o hello_world.o hello_world.c -fdump-tree-all
may be you'll find something interesting.
O! I have found a good option for you: -fdump-final-insns[=file] By means of it you can get almost the same as you got (most probably) and control where to dump representation.
- Status changed from Feedback to Open
Newer GCC versions place the dump into the directory where source file resides, while older versions placed it into the current working dir.
I fixed the meta1
script to look for *.expand
file in both locations. The fix is placed to fix-789
branch for testing.
- Status changed from Open to Resolved
- Published in build set to 8038062
Eugene reports that the commit fixes the absence of dependencies.
The fix is merges in 8038062
Are we ready to close it now?
Eugene, does it work on your machine as of today? If it does, the bug is closed.
I'll see it tomorrow or in the day after tomorrow.
I'll try to test it with the problem described in #749.
- Status changed from Resolved to Closed
I observe that dependencies are collected well even more two files were caught in comparison with the listed in #749 ones:
/drivers/base/power/runtime.o
/drivers/base/devtmpfs.o
Also available in: Atom
PDF