Mail Archives: djgpp/1997/05/22/17:35:35
Andrew Crabtree wrote:
>
> I tried compiling the following code bit with gcc and pgcc to see what
> alignment they would use (they are different).
Then they are different configured.
> Since old versions of
> gas used power of 2 aligning, and new versions use byte aligning
> (so I've been told),
Who told this to you?
OK, since I ported binutils 2.7 and now working on binutils 2.8
here some remarks:
- In the first beta stage when porting binutils 2.7 I had
the problem, how gas should handle the '.align' directives
produced by gcc. I asked DJ and he told me, that we are
using on DJGPP the meaning as the alignment of the power
of 2 (that means, '.align 2' is treated as an alignment
on a 4-byte boundary).
- Since there is nowhere an exact specification (or does
it exist and I don't know where?) I made the above mentioned
behaviour of gas and I will do it also for gas 2.8
- If the output gcc and pgcc (I haven't it) are different, then only
because they are different configured. I don't who made the
changes in pgcc but this people should be responsible for that
behaviour and not I when making the binutils for DJGPP.
And a last note: Think a little bit about the following fact.
Until this time nobody has complained something about a
misinterpreting of the alignment, which means until now
everything was OK. Only with the new pgcc there are problems.
From this (I think) follows directly, that the error is
in pgcc and nothing else.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -