wanted: compile-file verbosity which emits information about optimization settings

Bug #485722 reported by Tobias C. Rittweiler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Won't Fix
Wishlist
Unassigned

Bug Description

The .verbose parameter to COMPILE-FILE is a generalized boolean, so I think it's
allowed for implementation to discriminate on different verbosity levels.

I'd like to have a value I can set *COMPILE-VERBOSE* to, and SBCL would emit
information about

  a) the initial optimization settings it's going to compile a file with

  b) report file-global change of optimization settings.

Revision history for this message
Nikodemus Siivola (nikodemus) wrote :

Why not do these always when :VERBOSE is true? I don't think the extra noise would be that bad.

That said, we already distinguish between :PRINT :TOP-LEVEL-FORMS (reporting each semantically toplevel form) and :PRINT #<Anything non-NIL> (the default, reporting each syntactic toplevel form) -- so adding meaning to :VERBOSE would not be a radical change.

Not opposed, I just think that it would be nice to have the additional policy information on by default.

Changed in sbcl:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Douglas Katzman (dougk) wrote :

There is very closely approximated by:

(eval-when (:compile-toplevel)
  (format t "~&Using toplevel policy ~S~%" sb-c::*policy)
  (shadow 'declaim))
(eval-when (:compile-toplevel)
  (defmacro declaim (&rest stuff)
    (format t "~&Declaiming ~S~%" stuff)
    `(cl:declaim ,@stuff)))

Don't need it in the compiler. (And in a build system that can compile 4000 files with ease as the press of a button, are you really going to want the compiler to print all that?)

Changed in sbcl:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.