Changeset 09a0bd4a in mainline for tools/checkers/vcc.py


Ignore:
Timestamp:
2010-06-24T13:00:16Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2d03471, 33c4f72
Parents:
e821e49
Message:

initial properties annotation and verification support
(does not do much yet, but also does not stand in the way)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/checkers/vcc.py

    re821e49 r09a0bd4a  
    5959        args = ['gcc', '-E']
    6060        args.extend(options.split())
    61         args.append(srcfname)
     61        args.extend(['-DCONFIG_VERIFY_VCC=1', srcfname])
    6262       
    6363        # Change working directory
     
    6969       
    7070        tmpf = file(tmpfname, "w")
     71       
     72        tmpf.write("__specification(const char * const \\declspec_atomic_inline;)\n\n");
     73       
     74        tmpf.write("#define __spec_attr(key, value) \\\n");
     75        tmpf.write("    __declspec(System.Diagnostics.Contracts.CodeContract.StringVccAttr, \\\n");
     76        tmpf.write("        key, value)\n\n");
    7177       
    7278        for line in preproc.splitlines():
     
    149155                # Run Vcc
    150156                print " -- %s --" % srcfname           
    151                 retval = subprocess.Popen([vcc_path, cygpath(tmpfqname)]).wait()
     157                retval = subprocess.Popen([vcc_path, '/pointersize:32', cygpath(tmpfqname)]).wait()
    152158               
    153159                if (retval != 0):
Note: See TracChangeset for help on using the changeset viewer.