[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Stack problems with GCC 4
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.