From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: 8 bytes alignment Date: Tue, 07 Mar 2000 19:07:38 +0200 Organization: NetVision Israel Lines: 20 Message-ID: <38C5375A.8B4B1EA1@is.elta.co.il> References: <38C4AA6F DOT 6EFAA0A6 AT ssl DOT stu DOT neva DOT ru> NNTP-Posting-Host: ras1-p56.rvt.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.netvision.net.il 952448933 14102 62.0.172.58 (7 Mar 2000 17:08:53 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 7 Mar 2000 17:08:53 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,ru,hebrew To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Pavel Semjanov wrote: > > I'm trying to write MMX-code and need to use 8-bytes aligned data. > I didn't find any suitable gcc option Hmm? Doesn't -malign-double and -mpreferred-stack-boundary work for you? > and when I'm using > __attribute__ ((aligned (8)) gcc gives me the warning: > "aaa.c:64: warning: alignment of `pwarray' is greater than maximum > object file alignment. Using 4." > > Sure I'm using latest DJGPP, gcc and binutils. Only Binutils 2.9.5.1, the latest port uploaded a couple of days ago, supports alignment of sections that is greater than 4 bytes. All the previous DJGPP ports of Binutils used a 4-byte section and subsection alignment. Are you sure you have Binutils 2.9.5.1? What does "as --version" print?