[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Stack problems with GCC 4



Alan Hourihane wrote:
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.





I have a question. I have gcc 3.3 on linux and if I declare a file pointer then initialize it

 (FILE *)  ptr = (FILE *) malloc(....

i get lvalue assignments are deprecated.

    if I delete either (FILE *)  I get  converting pointer to an int.

this appears to be a bug.

is it? or is this  just a misunderstanding of malloc


do you see this kind of behavior in 4.

josephus

--
I go sailing in the Summer and look at STARS in the Winter.
"Everybody is igernant, only on differt subjects"
Will Rogers "it aint what you know that gets you in trouble
it is what you know that aint so"
   Josh Billings.