Mail Archives: pgcc/1999/05/11/08:05:15
Dear pgcc developers,
I found run-time anomalies compiling a FORTRAN code with PGCC 1.1.3 that
does not happen if EGCS 1.1.2 is used.
The addressed subroutine source code, that belong to a larger code (about
80kB) that could be supplied if required, performs a double nibble (4-bits)
extraction from a byte stream using the MVBITS statement. If the
optimization '-O6' flag is applied the subroutine does not perform the
nibble sxtraction and gives back 0x00000000 into the fourth argument of
mvbits() parameters. The FORTRAN code lines are:
subroutine data8bit(frame,n,data_i,data_q)
character*1 frame(*)
integer*4 reg32, n
character*1 seq(4)
integer*4 data_i(*), data_q(*)
equivalence (reg32,seq)
do i=1,n
seq(4)=frame(i)
data_i(i)=0
data_q(i)=0
call mvbits(reg32,28,4,data_i(i),0)
call mvbits(reg32,24,4,data_q(i),0)
end do
return
end
Thank for attention
Fabrizio Impagnatiello
System Engineering
Alenia Aerospazio
via Saccomuro, 24
00131 - Rome
ITALY
- Raw text -