Changeset a420203 in mainline
- Timestamp:
- 2015-03-15T00:24:52Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8848276
- Parents:
- 270bf4f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/autotool.py
r270bf4f ra420203 47 47 PROBE_SOURCE = 'probe.c' 48 48 PROBE_OUTPUT = 'probe.s' 49 50 PROBE_INT128_SOURCE = 'probe_int128.c' 51 PROBE_INT128_OUTPUT = 'probe_int128.s' 49 52 50 53 PACKAGE_BINUTILS = "usually part of binutils" … … 533 536 check_common(common, "CC") 534 537 535 outf = open(PROBE_ SOURCE, 'w')538 outf = open(PROBE_INT128_SOURCE, 'w') 536 539 outf.write(PROBE_INT128_HEAD) 537 540 outf.write("\tDECLARE_INTSIZE(\"INT128\", int __attribute((mode(TI))));\n") … … 541 544 args = [common['CC']] 542 545 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]) 544 547 545 548 try: … … 550 553 return False 551 554 552 if (not os.path.isfile(PROBE_ OUTPUT)):555 if (not os.path.isfile(PROBE_INT128_OUTPUT)): 553 556 sys.stderr.write("no\n") 554 557 return False 555 558 556 inf = open(PROBE_ OUTPUT, 'r')559 inf = open(PROBE_INT128_OUTPUT, 'r') 557 560 lines = inf.readlines() 558 561 inf.close() … … 564 567 if (tokens[0] == "AUTOTOOL_DECLARE"): 565 568 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]) 567 570 568 571 category = tokens[1] … … 578 581 value_int = decode_value(value) 579 582 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]) 581 584 582 585 if (subcategory == "unsigned"): … … 589 592 return False 590 593 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]) 592 595 593 596 sys.stderr.write("yes\n")
Note:
See TracChangeset
for help on using the changeset viewer.