gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Re: A pretty funny 2.7.0 compiler warning


From: Camm Maguire
Subject: [Gcl-devel] Re: A pretty funny 2.7.0 compiler warning
Date: 14 Apr 2006 10:25:43 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!

OK, this should be resolved now.  We now eliminate branches on which
any variable can be inferred to be of type nil.  Try compiling with 
compiler::*suppress-compiler-notes* set to nil.

Take care,

Robert Boyer <address@hidden> writes:

> Below is a pretty funny 2.7.0 compiler warning.
> 
> Bob
> 
> -------------------------------------------------------------------------------
> 
> % xg
> GCL (GNU Common Lisp)  2.7.0 ANSI    Apr  1 2006 15:10:32
> 
> >(defun duhtest (x)
>   (cond ((or (atom x) (consp x)) nil)
>         (t (error "~a failed duhtest" x))))
> 
> DUHTEST
> 
> >(compile *)
> 
> ;; Compiling /tmp/gazonk_23485_0.lsp.
> ; (DEFUN DUHTEST ...) is being compiled.
> ;; Warning: The type of the form X is not *, but NIL.
> ;; 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 /tmp/gazonk_23485_0.o.
> Loading /tmp/gazonk_23485_0.o
> start address -T 0xab02488 Finished loading /tmp/gazonk_23485_0.o
> #<compiled-function DUHTEST>
> NIL
> NIL
> 
> >
> 
> 
> 

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]