extending gccmakedep to output file inclusions

Thomas P thp@uctr.net
Tue Jan 20 13:20:00 GMT 2015


Hello,

[previously sent mail with same content possibly rejected because of text-only email requirement not met]

I would like to suggest/recommend a feature whereby the gccmakedep component of the gcc suite can be made to emit "file inclusion" notices similar to the ones resulting from makedepend's "-v" option [1][2].

The output would be similar to

fileA: fileB
fileA: fileC
...

if fileA includes (#include "...") fileB and fileC.

Currently closest is the behaviour of "gcc -M" (resp. "gcc -MM"), i.e. the gccmakedep result; however, make file dependencies are not semantically equal to file inclusion.

The feature is helpful for documentation.

Thomas

[1] http://xorg.freedesktop.org/archive/individual/util/makedepend-1.0.5.tar.bz2
[2] http://www.xfree86.org/4.0/makedepend.1.html



More information about the Gcc mailing list