Changeset 14864 in project for chicken/trunk


Ignore:
Timestamp:
06/03/09 04:52:14 (11 years ago)
Author:
Kon Lovett
Message:

Added -no-argc/bound/procedure-checks & -no-procedure-checks-for-usual-bindings options.

Location:
chicken/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/batch-driver.scm

    r14861 r14864  
    3838  compiler-cleanup-hook disabled-warnings local-definitions inline-output-file
    3939  file-io-only undefine-shadowed-macros profiled-procedures
    40   unit-name insert-timer-checks used-units inline-max-size inline-locally
     40  unit-name insert-timer-checks used-units inline-max-size mark-variable inline-locally
    4141  debugging perform-lambda-lifting! disable-stack-overflow-checking
    4242  foreign-declarations emit-trace-info block-compilation line-number-database-size
     
    7171  do-lambda-lifting compiler-warning emit-global-inline-file load-inline-file
    7272  foreign-argument-conversion foreign-result-conversion
    73   load-identifier-database load-type-database)
     73  load-identifier-database load-type-database
     74  no-bound-checks no-argc-checks no-procedure-checks)
    7475
    7576
     
    305306    (when (memq 'keep-shadowed-macros options)
    306307      (set! undefine-shadowed-macros #f) )
     308    (when (memq 'no-argc-checks options)
     309      (set! no-argc-checks #t) )
     310    (when (memq 'no-bound-checks options)
     311      (set! no-bound-checks #t) )
     312    (when (memq 'no-procedure-checks options)
     313      (set! no-procedure-checks #t) )
     314    (when (memq 'no-procedure-checks-for-usual-bindings options)
     315      (for-each
     316       (lambda (v)
     317         (mark-variable v '##compiler#always-bound-to-procedure)
     318         (mark-variable v '##compiler#always-bound) )
     319       default-standard-bindings)
     320      (for-each
     321       (lambda (v)
     322         (mark-variable v '##compiler#always-bound-to-procedure)
     323         (mark-variable v '##compiler#always-bound) )
     324       default-extended-bindings) )
    307325
    308326    ;; Handle feature options:
  • chicken/trunk/csc.scm

    r14828 r14864  
    129129    -emit-external-prototypes-first -inline -release -scrutinize
    130130    -analyze-only -keep-shadowed-macros -inline-global -ignore-repository
    131     -no-symbol-escape -no-parentheses-synonyms -r5rs-syntax))
     131    -no-symbol-escape -no-parentheses-synonyms -r5rs-syntax
     132    -no-argc-checks -no-bound-checks -no-procedure-checks
     133    -no-procedure-checks-for-usual-bindings))
    132134
    133135(define-constant complex-options
     
    359361    -n -emit-inline-file FILENAME  generate file with globally inlinable
    360362                                    procedures (implies -inline -local)
     363    -no-argc-checks                disable argument count checks
     364    -no-bound-checks               disable bound variable checks
     365    -no-procedure-checks           disable procedure call checks
     366    -no-procedure-checks-for-usual-bindings
     367                                   disable procedure call checks only for usual
     368                                    bindings
    361369
    362370  Configuration options:
  • chicken/trunk/support.scm

    r14828 r14864  
    13021302    -lambda-lift                 enable lambda-lifting
    13031303    -no-usual-integrations       standard procedures may be redefined
    1304     -unsafe                      disable safety checks
     1304    -unsafe                      disable all safety checks
    13051305    -local                       assume globals are only modified in current
    13061306                                  file
     
    13171317    -emit-inline-file FILENAME   generate file with globally inlinable
    13181318                                  procedures (implies -inline -local)
     1319    -no-argc-checks              disable argument count checks
     1320    -no-bound-checks             disable bound variable checks
     1321    -no-procedure-checks         disable procedure call checks
     1322    -no-procedure-checks-for-usual-bindings
     1323                                 disable procedure call checks only for usual
     1324                                  bindings
    13191325
    13201326  Configuration options:
Note: See TracChangeset for help on using the changeset viewer.