bugGNU Common Lisp - Bugs: bug #12836, Implement Recursive Compilation

 
 

bug #12836: Implement Recursive Compilation

Submitter:  None
Submitted:  Wed 27 Apr 2005 08:50:24 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Wed 27 Apr 2005 08:50:24 PM UTC, original submission:  

Given these three files, loading precompile.lisp does not work successfully:

;;---------------
;;precompile.lisp
;;---------------
(eval-when (:compile-toplevel :load-toplevel :execute)
  (compile-file "compile.lisp"))

;;------------
;;compile.lisp
;;------------
(eval-when (:compile-toplevel :load-toplevel :execute)
  (compile-file "broken.lisp"))

;;-----------
;;broken.lisp
;;-----------
(eval-when (:compile-toplevel :load-toplevel :execute)
  (print "***** Bootstrapping ***"))


>(load "precompile.lisp")


Loading precompile.lisp
Compiling compile.lisp.
The compiler was called recursively.
Cannot compile broken.lisp.
The compiler was called recursively.
Cannot compile broken.lisp.
End of Pass 1.
End of Pass 2.
OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3, (Debug quality ignored)
Finished compiling compile.lisp.
Finished loading precompile.lisp
T

I first checked if this was ANSI defined code on comp.lang.lisp and Barry Margolin responded that "There's nothing in the language spec that mentions any restrictions on the expressions used within an EVAL-WHEN :COMPILE-TOPLEVEL. So COMPILE and COMPILE-FILE should be usable."

Reference: <http://groups.goo ... consulting.net.nz>

Regards,
Adam Warner

Anonymous

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

History

No changes have been made to this item

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code