From mint-bounce@lists.fishpool.fi  Tue Jan 22 17:31:01 2008
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Subject: Re: [MiNT] Stack problems with GCC 4
From: Alan Hourihane <alanh@fairlite.demon.co.uk>
To: Andreas Schwab <schwab@suse.de>
Cc: mint <mint@fishpool.com>
In-Reply-To: <jelk7k4e94.fsf@sykes.suse.de>
References: <1198456590.9451.17.camel@localhost>
	 <jesl1s4fm8.fsf@sykes.suse.de> <1198488511.9451.19.camel@localhost>
	 <jelk7k4e94.fsf@sykes.suse.de>
Content-Type: text/plain
Date: Mon, 24 Dec 2007 09:59:42 +0000
Message-Id: <1198490382.9451.35.camel@localhost>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.1 
Content-Transfer-Encoding: 7bit
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: alanh@fairlite.demon.co.uk
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=BAYES_00
X-Spam-Level: 
Status: 
X-Status: 
X-Keywords:                   

On Mon, 2007-12-24 at 10:45 +0100, Andreas Schwab wrote:
> Alan Hourihane <alanh@fairlite.demon.co.uk> writes:
> 
> > On Mon, 2007-12-24 at 10:16 +0100, Andreas Schwab wrote:
> >> What about __attribute__((section(".data")))?
> >
> > Tried that, GCC doesn't support that attribute.
> 
> ???  Works fine here.

Maybe it does with gcc's for other architectures, especially ELF.

See....

gcc -Wall -pipe -O2 -fomit-frame-pointer -nostdinc -I../mintlib -I..
-I../include -I../mintlib -I../stdlib -I$(<../includepath)
-DHAVE_CONFIG_H -D_LIBC -D_REENTRANT -c ../mintlib/stksiz.c -o stksiz.o
./mintlib/stksiz.c:1: error: section attributes are not supported for
this target

> > I think that's why the -f option was added.
> 
> Definitely not.

Fair enough. But sections aren't supported with Atari GCC 2.x or 4.x, so
it's not an option given the wide distribution of the 2.x binaries.

Alan.


