From mint-bounce@lists.fishpool.fi  Tue Jan 22 17:31:13 2008
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
  s=dk20050327; d=earthlink.net;
  b=O61E+1dap1GIlm3D6wZ4MR9kRqqnXrgIJ/yb/SFcstGLST1NwdPCLAboMuTOII3Q;
  h=Received:Message-ID:Date:From:Reply-To:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP;
Message-ID: <476FFEFE.1010600@earthlink.net>
Date: Mon, 24 Dec 2007 12:48:30 -0600
From: josephus <dogbird@earthlink.net>
Reply-To: dogbird@earthlink.net
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7
MIME-Version: 1.0
To: Alan Hourihane <alanh@fairlite.demon.co.uk>
Cc: Andreas Schwab <schwab@suse.de>, mint <mint@fishpool.com>
Subject: Re: [MiNT] Stack problems with GCC 4
References: <1198456590.9451.17.camel@localhost>	 <jesl1s4fm8.fsf@sykes.suse.de> <1198488511.9451.19.camel@localhost>	 <jelk7k4e94.fsf@sykes.suse.de> <1198490382.9451.35.camel@localhost>
In-Reply-To: <1198490382.9451.35.camel@localhost>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-ELNK-Trace: 435374b7a01b22fcd780f4a490ca69563f9fea00a6dd62bcea5590d27facb6bbb355dc407a914555350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 70.245.25.34
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: dogbird@earthlink.net
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:                   

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.


