init_priority fix for services/memalloc

Øyvind Harboe oyvind.harboe@zylin.com
Tue Sep 28 08:42:00 GMT 2004


On Mon, 2004-09-27 at 21:36, Andrew Lunn wrote:
> > > I would not shout compiler bug. Rather i would ask what the expected
> > > behavious is. Its a more tactfull approach.
> > 
> > It is not a compiler bug, it is the intended behaviour! :-)
> > 
> > http://gcc.gnu.org/ml/gcc/2002-08/msg00792.html
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14161
> 
> Does you fixed code still work OK with 3.2.1?

Attached is a fixed version of my patch to the tcl scripts that
generates code which compiles with GCC 3.2.1.

However, I wasn't able to run my test app since things are in pieces
currently.

I believe the form above will compile and do the correct thing with both
versions of the compiler.

Otherwise, it gets messy.

Obviously this is not the last we've heard of this issue. It would be
nice to narrow down precisely what the problem is and visit every
CYGBLD_ATTRIB_INIT in eCos to verify that they are OK.

That said, my application boots with GCC 3.4.2 and the attached patch +
GCC 3.2.1 compiles(and probably runs).

>  The bugzilla report
> suggests it might not compiler. If it does not, its going to get messy
> to fix :-)
>
>         Andrew
-- 
Øyvind Harboe
http://www.zylin.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: init_priority_fix.txt
Type: text/x-patch
Size: 2322 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20040928/b8e8208b/attachment.bin>


More information about the Ecos-patches mailing list