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