This is the mail archive of the
mailing list for the eCos project.
Re: Will gcc3.3 will work with eCos?.
- From: Fredrik Hederstierna <fredrik at wespot dot com>
- To: radhakrishnan R <radhaamanji at yahoo dot co dot uk>
- Cc: ecos-discuss at sources dot redhat dot com, skg at cradle dot com, gary at mlbassoc dot com
- Date: Fri, 09 Jan 2004 10:16:43 +0100
- Subject: Re: [ECOS] Will gcc3.3 will work with eCos?.
- References: <firstname.lastname@example.org>
We have been using arm-elf-gcc-3.3.1 for some time and it works fine - if
we disable some features like eCos filesystem support.
The problem I think was some StdioStream subclass (stdout) that was used
before it was fully constructed (init priority problem possibly?).
radhakrishnan R wrote:
> Iam presently trying to use the gcc3.3 with eCos.
> Have any one have tried to use gcc3.3 with the latest
> I have also read in the mailing list, that
> "-finit-priority" is not available in gcc3.3. I hope
> this will result global constructor calling sequence
> to go wrong.
> Is there any workaround for this?.
> What is the recommented gnu tools to work for
> eCos1.3.1/eCos2.0 ?.
> After building eCos program i.e any sample with
> gcc3.3, i have observed the following behaviour in the
> eCos startup program.
> i) There is a call to cyg_hal_invoke_constructors
> from Vectors.S.
> ii) This is the Global constructors call. The first
> constructor function called is Cyg_StdioStream()
> available in stdout.cxx.
> iii) This function fails(i.e Trying to find a file
> in mountable, not available...), hence the eCos halts
> on file error.
> Is this constructor "Cyg_StdioStream()" is a
> expected one?.
> It looks like constructors function call in eCos is
> getting changed with new tools. The reason for this is
> due to removal of compiler flag "-finit-priority",
> which is responsible for ordering the constructor
> Radhakrishnan R
> Yahoo! Messenger - Communicate instantly..."Ping"
> your friends today! Download Messenger Now
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss