Handle inlining
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ appcallgraphs: $(APPCALLGRAPHS)
|
||||
./graphdeps.py $< --out $@ --showops
|
||||
|
||||
../%/callgraph.pdf: ../%/callgraph.d
|
||||
(cd $(dir $@); ../../etc/graphdeps.py --calls $(notdir $<) --out $(notdir $@))
|
||||
(cd $(dir $@); ../../etc/graphdeps.py --calls --modules $(notdir $<) --out $(notdir $@))
|
||||
|
||||
../%/files.d: ../%/Makefile
|
||||
(cd $(dir $@); ../../etc/makemake.py --relpath --files . . ../../drivers ../../drivers/avr ../../utils --exclude system.h > files.d)
|
||||
|
||||
+5
-8
@@ -226,7 +226,7 @@ def maincfilename_find (dirname):
|
||||
|
||||
def functions_find (gcc, filepath, functiondeps = {}, functions = {}):
|
||||
|
||||
command = gcc + ' -c ' + filepath + ' -fdump-tree-cfg-raw > /dev/null'
|
||||
command = gcc + ' -c ' + filepath + ' -fdump-tree-cfg-raw -fno-inline > /dev/null'
|
||||
#print >> sys.stderr, command
|
||||
os.system (command)
|
||||
|
||||
@@ -275,7 +275,7 @@ def functions_find (gcc, filepath, functiondeps = {}, functions = {}):
|
||||
# os.system (command)
|
||||
|
||||
|
||||
def files_find (gcc, filepath, search_path, filedeps, moduledeps, indent, debug):
|
||||
def files_find (filepath, search_path, filedeps, moduledeps, indent, debug):
|
||||
|
||||
# filedeps is a cache of all known included files
|
||||
|
||||
@@ -313,11 +313,11 @@ def files_find (gcc, filepath, search_path, filedeps, moduledeps, indent, debug)
|
||||
|
||||
# Search recursively each new included file
|
||||
for file in includes2:
|
||||
files_find (gcc, file, search_path, filedeps, moduledeps, indent + ' ', debug)
|
||||
files_find (file, search_path, filedeps, moduledeps, indent + ' ', debug)
|
||||
|
||||
# Search the modules
|
||||
for file in modules:
|
||||
files_find (gcc, file, search_path, filedeps, moduledeps, indent + ' ', debug)
|
||||
files_find (file, search_path, filedeps, moduledeps, indent + ' ', debug)
|
||||
|
||||
|
||||
def alldeps_print (depsdir, options):
|
||||
@@ -511,7 +511,7 @@ def main(argv = None):
|
||||
|
||||
filedeps = {}
|
||||
moduledeps = {}
|
||||
files_find (gcc, maincfilename, search_path, filedeps, moduledeps, '', options.debug)
|
||||
files_find (maincfilename, search_path, filedeps, moduledeps, '', options.debug)
|
||||
|
||||
cfilelist = cfiles_get (filedeps)
|
||||
ofilelist = [cfile[:-2] + options.objext for cfile in cfilelist]
|
||||
@@ -522,9 +522,6 @@ def main(argv = None):
|
||||
deps.append (ofile[:-2] + '.c')
|
||||
filedeps[ofile] = deps
|
||||
|
||||
# print >> sys.stderr, moduledeps
|
||||
# print >> sys.stderr, filedeps
|
||||
|
||||
if options.calls:
|
||||
functiondeps = {}
|
||||
functions = {}
|
||||
|
||||
Reference in New Issue
Block a user