This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with egcs and sparc linux



Hello,

I have a problem with egcs running on redhat6.0 on sparc.

[vin@beethoven ~]$ egcs -v
Reading specs from /usr/lib/gcc-lib/sparc-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)


[vin@beethoven ~]$ g77 -v
g77 version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (from FSF-g77 version 0.5.24-19981002)


Its a sparc ultra1, and I am trying to rebuild the public domain version of R
R-base-0.64.1-6.src.rpm  The compile goes Ok and I get a working binary but 
the problem comes when it tries to do the tests which are in fortran.

gdb output :-
> The line that crashes it:- 
> eigen(cbind(-1,c(1:2,0),0:2)) # complex values
> 
> held by the break and gets changed at:-
> 1830             DO 40 J = K, N
> 1: nm = (PTR TO -> ( integer )) 0x1
>
... 
> (gdb) 
> 1823          IERR = 0
> 1: nm = (PTR TO -> ( integer )) 0x70d99fd0
> (gdb) 
> 1828          DO 50 I = 1, N
> 1: nm = (PTR TO -> ( integer )) 0x70d99fd0
> (gdb) 
> 1830             DO 40 J = K, N
> 1: nm = (PTR TO -> ( integer )) 0x1
> (gdb) 
> 1831       40    NORM = NORM + DABS(H(I,J))
> 1: nm = (PTR TO -> ( integer )) 0x1
> (gdb) 
> 1834             IF (I .GE. LOW .AND. I .LE. IGH) GO TO 50
> 1: nm = (PTR TO -> ( integer )) 0x1

> Ouch. This looks very much like a compiler bug. Generally, this sort
> of thing happens because the compiler *thinks* it is through using a
> location or register and starts using it for other purposes. Then when
> it needs it later on, ...



Cheers Vin

-------------------------------------------------------------------
Vin Everett                   email:  vin.everett@mrc-bsu.cam.ac.uk
Medical Research Council      voice:  +44 (0) 1223 330381 
Biostatistics Unit            fax:    +44 (0) 1223 330383 
Cambridge                     mobile: +44 (0) 468 828238 
Key fingerprint =  69 CE C7 59 9B 7C AB 57  B0 B5 47 2A 1E 99 49 30
-------------------------------------------------------------------



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]