This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: eCos GNU tools 4.6.3-20120315 [Was Re: eCos GNU tools 4.6.2-20120125 ready for testing]
- From: Lambrecht Jürgen <J dot Lambrecht at TELEVIC dot com>
- To: Ilija Kocho <ilijak at siva dot com dot mk>
- Cc: Alex Schuilenburg <alexs at ecoscentric dot com>, "ecos-devel at ecos dot sourceware dot org" <ecos-devel at ecos dot sourceware dot org>, John Dallaway <john at dallaway dot org dot uk>, Jonathan Larmour <jifl at jifvik dot org>
- Date: Wed, 4 Apr 2012 14:57:31 +0200
- Subject: Re: eCos GNU tools 4.6.3-20120315 [Was Re: eCos GNU tools 4.6.2-20120125 ready for testing]
- References: <4F106345.4080902@siva.com.mk> <4F11574D.9070002@dallaway.org.uk> <4F11AC54.7000902@siva.com.mk> <4F1CB41C.90900@jifvik.org> <4F1DA9A0.5070702@siva.com.mk> <4F1FF5AD.4010901@ecoscentric.com> <4F39887A.5050905@siva.com.mk> <4F50F700.5080902@ecoscentric.com> <4F521D6A.4010500@siva.com.mk> <4F52B2C8.4010809@schuilenburg.org> <4F53C46B.4090502@dallaway.org.uk> <4F53FF0D.80107@ecoscentric.com> <4F574D4A.2090407@ecoscentric.com> <4F58EC32.9070103@ecoscentric.com> <4F5B8C70.4080208@dallaway.org.uk> <4F5E204B.5040402@ecoscentric.com> <4F5F4BFE.7030100@ecoscentric.com> <4F5F5691.4090009@siva.com.mk> <4F6632F4.9050603@siva.com.mk>
On 03/18/2012 08:09 PM, Ilija Kocho wrote:
>
> Hi Alex
>
> Thank you for testing 4.6.2-20120125.
>
> 4.6.3-20120315 is our new test release until we upgrade GDB with Jifl's
> patch:
> http://ecos.sourceware.org/ml/ecos-discuss/2012-03/msg00064.html
>
> Ilija
>
>
Hi all,
I finished building our "Passenger Information System" application with
gcc 4.6.3 (started with 4.6.2, noticed no difference when switching to
4.6.3).
Before, we used gcc 3.2.1.
I first built ecos v3.0 without any problem.
Then I built our application, and it took me many days to solve all new
warnings (we compile with -Werror):
- unused-but-set-variable -> gave me problems with MISRA rule /16.10/
(If a function returns error information, then that error information
shall be tested.) Our PC-lint checker forces any return argument to be
used, so I had to add __attribute__ ((unused)).
Also, this warning is annoying for HW drivers: then you sometimes need
to read some bit just to trigger some behavior, but you are not
interested in the return value..
- pointer-sign
- packed attribute (chars are byte aligned by default, so they are
"naturally packed
<http://www.mail-archive.com/lwip-users@nongnu.org/msg02757.html>". So
don't try to pack chars)
- '#ifdef ... #elif' cannot be mixed any more ('#ifdef ... #elif
defined' instead)
Finally I gave up (for this test) using -Werror because some customer
code we use is too badly written (I will wait for their update).
But aside from those warnings, it builds fine, and also runs fine on our
AT91 ARM9 processor.
No issues so far. Do you know something to watch out for?
Next step is to build the same code version with the old compiler, and
see with the eCos CPU monitor if there is any difference.
Kind regards,
Jürgen
--
Jürgen Lambrecht
R&D Associate
Tel: +32 (0)51 303045 Fax: +32 (0)51 310670
http://www.televic-rail.com
Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium
Company number 0825.539.581 - RPR Kortrijk