delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/22/17:35:35

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: -m486 alignment problem
Date: Thu, 22 May 1997 10:44:46 +0200
Organization: TU Chemnitz-Zwickau
Lines: 49
Message-ID: <3384077E.380C39D7@Mathematik.tu-chemnitz.de>
References: <199705201614 DOT AA183124895 AT typhoon DOT rose DOT hp DOT com>
NNTP-Posting-Host: pandora.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019