From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10599 invoked by alias); 12 Nov 2003 17:35:30 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 10592 invoked from network); 12 Nov 2003 17:35:29 -0000 Received: from unknown (HELO web13003.mail.yahoo.com) (216.136.174.13) by sources.redhat.com with SMTP; 12 Nov 2003 17:35:29 -0000 Message-ID: <20031112173524.15334.qmail@web13003.mail.yahoo.com> Received: from [206.191.3.227] by web13003.mail.yahoo.com via HTTP; Wed, 12 Nov 2003 09:35:24 PST Date: Wed, 12 Nov 2003 17:35:00 -0000 From: Ottawa Guy Subject: memAlignment problem .. Please help To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-11/txt/msg00171.txt.bz2 Hi, I am compiling gcc2.95.3 for target=sparc-elf from scratch. The installation went fine. When I compile and run my application using gcc2.95.3. I get a memory misalignment errir on one of my structure. After debugging further I found that the sturcture member was a half word address. Since Sparc can only handle full word memory adress. So I get an "memory unaligned exception". Do I have to change any option in gcc2.95.3/gcc/config/sparc.h file to force all the memory alignment of a structure. I tried all the flags in the compiler to force aligment with no result.( "-Wa,--enforce-aligned-data") Following are the command I use to compile "gcc" I am missing something 1. mkdir tmp/build/gcc 2. cd tmp/build/gcc 3. ../../gcc-2.95.3/configure --target=sparc-elf --prefix=/user/gcc --with-gnu-as --with-gnu-ld --with-newlib -v 2>&1 | tee configure.out 4. make -w all-gcc install-gcc LANGUAGES="c c++" 2>&1 | tee make.out Thank you in advance O __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree