[cmucl-help] [Q] Muffling compiler notes

Didier Verna didier at lrde.epita.fr
Sat Nov 13 15:34:38 CET 2010


  Hello,

is there a way to locally (inside a specific function) shut up compiler
notes like the following one ?

;   (UNIX:UNIX-IOCTL (SYSTEM:FD-STREAM-FD #) UNIX:TIOCGWINSZ WINSIZE)
; --> WINSIZE ALIEN::LOCAL-ALIEN ALIEN::EXTRACT-ALIEN-VALUE ALIEN::NATURALIZE 
; ==>
;   (ALIEN::%SAP-ALIEN ALIEN:ALIEN '#<ALIEN::ALIEN-RECORD-TYPE #>)
; Note: Unable to optimize because:
;     Could not optimize away %SAP-ALIEN: forced to do runtime 
; allocation of alien-value structure.

With SBCL, you can do this:

(declare (sb-ext:muffle-conditions sb-ext:compiler-note))


Thanks !

-- 
Resistance is futile. You will be jazzimilated.

Scientific site:   http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com


More information about the cmucl-help mailing list