Changeset a420203 in mainline for tools/autotool.py


Ignore:
Timestamp:
2015-03-15T00:24:52Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8848276
Parents:
270bf4f
Message:

use distinct file names for int128 probe
(for easier debugging)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/autotool.py

    r270bf4f ra420203  
    4747PROBE_SOURCE = 'probe.c'
    4848PROBE_OUTPUT = 'probe.s'
     49
     50PROBE_INT128_SOURCE = 'probe_int128.c'
     51PROBE_INT128_OUTPUT = 'probe_int128.s'
    4952
    5053PACKAGE_BINUTILS = "usually part of binutils"
     
    533536        check_common(common, "CC")
    534537       
    535         outf = open(PROBE_SOURCE, 'w')
     538        outf = open(PROBE_INT128_SOURCE, 'w')
    536539        outf.write(PROBE_INT128_HEAD)
    537540        outf.write("\tDECLARE_INTSIZE(\"INT128\", int __attribute((mode(TI))));\n")
     
    541544        args = [common['CC']]
    542545        args.extend(common['CC_ARGS'])
    543         args.extend(["-S", "-o", PROBE_OUTPUT, PROBE_SOURCE])
     546        args.extend(["-S", "-o", PROBE_INT128_OUTPUT, PROBE_INT128_SOURCE])
    544547       
    545548        try:
     
    550553                return False
    551554       
    552         if (not os.path.isfile(PROBE_OUTPUT)):
     555        if (not os.path.isfile(PROBE_INT128_OUTPUT)):
    553556                sys.stderr.write("no\n")
    554557                return False
    555558       
    556         inf = open(PROBE_OUTPUT, 'r')
     559        inf = open(PROBE_INT128_OUTPUT, 'r')
    557560        lines = inf.readlines()
    558561        inf.close()
     
    564567                        if (tokens[0] == "AUTOTOOL_DECLARE"):
    565568                                if (len(tokens) < 7):
    566                                         print_error(["Malformed declaration in \"%s\" on line %s." % (PROBE_OUTPUT, j), COMPILER_FAIL])
     569                                        print_error(["Malformed declaration in \"%s\" on line %s." % (PROBE_INT128_OUTPUT, j), COMPILER_FAIL])
    567570                               
    568571                                category = tokens[1]
     
    578581                                                value_int = decode_value(value)
    579582                                        except:
    580                                                 print_error(["Integer value expected in \"%s\" on line %s." % (PROBE_OUTPUT, j), COMPILER_FAIL])
     583                                                print_error(["Integer value expected in \"%s\" on line %s." % (PROBE_INT128_OUTPUT, j), COMPILER_FAIL])
    581584                                       
    582585                                        if (subcategory == "unsigned"):
     
    589592                                                        return False
    590593                                        else:
    591                                                 print_error(["Unexpected keyword \"%s\" in \"%s\" on line %s." % (subcategory, PROBE_OUTPUT, j), COMPILER_FAIL])
     594                                                print_error(["Unexpected keyword \"%s\" in \"%s\" on line %s." % (subcategory, PROBE_INT128_OUTPUT, j), COMPILER_FAIL])
    592595       
    593596        sys.stderr.write("yes\n")
Note: See TracChangeset for help on using the changeset viewer.