X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fcompiler%2Fearly-c.lisp;h=2c41074f7f51389658a72fb0ee93c52a7aa6378a;hb=6822034325136cde4e14773c83c3769b42721306;hp=a8e47b0a5c3cd99c8def67963e3f0147f4a0a824;hpb=2f8c59edcd41f03c5daebeaf87518b5071a19826;p=sbcl.git diff --git a/src/compiler/early-c.lisp b/src/compiler/early-c.lisp index a8e47b0..2c41074 100644 --- a/src/compiler/early-c.lisp +++ b/src/compiler/early-c.lisp @@ -29,20 +29,6 @@ #!+sb-doc "The exclusive upper bound on the number of multiple VALUES that you can return.") - -(defconstant-eqx sb!xc:lambda-list-keywords - '(&allow-other-keys - &aux - &body - &environment - &key - &more - &optional - &rest - &whole) - #'equal - #!+sb-doc - "symbols which are magical in a lambda list") ;;;; cross-compiler-only versions of CL special variables, so that we ;;;; don't have weird interactions with the host compiler @@ -125,6 +111,13 @@ (defvar *warnings-p*) (defvar *lambda-conversions*) +(defvar *stack-allocate-dynamic-extent* t + "If true (the default), the compiler respects DYNAMIC-EXTENT declarations +and stack allocates otherwise inaccessible parts of the object whenever +possible. Potentially long (over one page in size) vectors are, however, not +stack allocated except in zero SAFETY code, as such a vector could overflow +the stack without triggering overflow protection.") + ;;; This lock is seized in the compiler, and related areas: the ;;; compiler is not presently thread-safe (defvar *big-compiler-lock* @@ -178,9 +171,11 @@ ;; and then we happen to compile bar.lisp before foo.lisp. (when (looks-like-name-of-special-var-p symbol) ;; FIXME: should be COMPILER-STYLE-WARNING? - (style-warn "using the lexical binding of the symbol ~S, not the~@ -dynamic binding, even though the symbol name follows the usual naming~@ -convention (names like *FOO*) for special variables" symbol)) + (style-warn 'sb!kernel:asterisks-around-lexical-variable-name + :format-control + "using the lexical binding of the symbol ~S, not the~@ + dynamic binding" + :format-arguments (list symbol))) (values)) (def!struct (debug-name-marker (:make-load-form-fun dump-debug-name-marker)