diff --git a/etc/makemake.py b/etc/makemake.py index f8ef0c8..eacc93a 100755 --- a/etc/makemake.py +++ b/etc/makemake.py @@ -249,7 +249,7 @@ def functions_find (gcc, filepath, functiondeps = {}): function = matches[0] functiondeps[function] = [] # print >> sys.stderr, 'DEF', function - matches = re.findall (r'.*gimple_call [<]([\w]*)[,]', line) + matches = re.findall (r'.*gimple_call <([\w]*),', line) if matches: # print >> sys.stderr, 'USE', matches[0] if function: @@ -257,6 +257,18 @@ def functions_find (gcc, filepath, functiondeps = {}): else: print >> sys.stderr, matches[0], 'used outside function in', filepath + # Search for where a function address is taken + function = None + for line in text: + matches = re.findall (r'^;; Function (.*)\s[(]', line) + if matches: + function = matches[0] + # gimple_assign + matches = re.findall (r'.*gimple_assign > sys.stderr, command # os.system (command)