Article View: gnu.gcc.bug
Article #5989gcc alignment problems...
From: Joel MERLIN
Date: Tue, 21 Jan 1997 00:00
Date: Tue, 21 Jan 1997 00:00
32 lines
1749 bytes
1749 bytes
I have installed the gcc 2.7.2 sources on an SCO Open Server 5.0.0 and = I have done the following: ./configure make CC=3Dcc make install where make is provided by the SCO development package. Then, I have installed the RCS 5.7 sources and built with gcc compiler. The first time I invoke the *ci* RCS command, it brings up a "not a = regular file" error though this is a perfect regular file. Browsing the = gcc sources, I found the previous message and suspected a problem with = the fstat function. In fact, after a few tests I get the following = result: My test program with SCO cc compiler gives a 116 bytes stat struct size My test program with gcc compiler gives a 112 bytes stat struct size Obviously, we are running in alignment problems. I take a look to the = SCO sys/stat.h file and computing by hand, I find a 112 bytes structure = size, BUT with a 32 bit alignment the system function fstat is expecting = 116 bytes (due to short types vs long types, two short paddings are = required =3D 4 bytes). Does that mean gcc is defaulting to 8 bit alignment on Intel ? Is there = a workaround or gcc option for this problem ? Any help is welcomed, thanks Joel (SMTP:jmerlin@natsys.fr)
Technical Details
Message-ID:
<01BC07D8.2D11C180@jmerl.lr.natsys>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,7cd0cf5d23c2fb20,start X-Google-Attributes: gid113d02,public From: jmerlin@natsys.fr (Joel MERLIN) Subject: gcc alignment problems... Date: 1997/01/21 Message-ID: <01BC07D8.2D11C180@jmerl.lr.natsys> X-Deja-AN: 211477191 sender: bug-gcc-request@prep.ai.mit.edu content-type: text/plain; charset="us-ascii" x-gateway: relay2.UU.NET from bug-gcc to gnu.gcc.bug; Tue, 21 Jan 1997 14:19:14 EST mime-version: 1.0 newsgroups: gnu.gcc.bug