gcl-devel
[Top][All Lists]
Advanced

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

[Gcl-devel] Chasing down a compiler bug


From: Camm Maguire
Subject: [Gcl-devel] Chasing down a compiler bug
Date: 24 Feb 2004 17:14:04 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!  There is what in all likelihood appears to be a gcc
optimization bug on hppa which is erratically causing the acl2 full
test to fail when any optimization at all is enabled.  Some runs of
the book certifier pass, others fail, but when they fail, it is in
precisely the same point:

(defun remove-after-last-directory-separator (p)
  (let* ((p-rev (reverse p))
         (posn (position *directory-separator* p-rev)))
    (if posn
        (subseq p 0 (1- (- (length p) posn)))
      (er hard 'remove-after-last-directory-separator
          "Implementation error!  Unable to handle a directory string."))))

Evidently posn is nil at times when it shouldn't be.

I want to make sure this is not gcl's fault, preferably before
release. 

In any case, acl2 is so well isolated from the underlying lisp that I
am hard pressed to simply set a gdb break point at this failure.  I
can't use format, error, anything I can trap.  Do you have any advice? 

Take care,
-- 
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]