This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: issue with floor()


On Wed, 10 Nov 2010, David Brennan wrote:
On Wed, Nov 10, 2010 at 12:08 PM, Sergei Gavrikov
<sergei.gavrikov@gmail.com> wrote:
[...]
The fix was:

 Â# Default value: Â"-fno-strict-aliasing " . Â\
   Â((!CYGPKG_HAL_I386 && !CYGPKG_HAL_SYNTH_I386) ? "" : "-ffloat-store")


To be clear: this was applyed for `limb' package only.


This does correct my compiler warnings for libm.

And what's about the original issue: run of `floor' test on your target?


But as I am now a little gun-shy, do these need similar fixes?

/opt/ecos-old/eCosIRL/OS/ecos/packages/net/common/current/src/bootp_support.c:
In function âinit_netâ:
/opt/ecos-old/eCosIRL/OS/ecos/packages/net/common/current/src/bootp_support.c:527:
warning: dereferencing pointer âaddrpâ does break strict-aliasing
rules

[cut]


First, what does mean 'ecos-old' in your path? Where eCos sources came
from on your disk? What eCos version do you use?

Certainly, the newest GCC compilers (I call that you built 4.4.5) are
more strict (they are very strict). eCos 3.0, eCos from AnonCVS are well
tested with 4.3.2 GNU CC, and eCos-2.0's toolchains were based on GCC
3.2.1. Try to build the same version of cross compiler for your host.

Some hints how to build GNU toolchain(s) for eCos you can find here
http://ecos.sourceware.org/build-toolchain.html and greping (I hope)
this list can help too.

FYI: if I build eCos 3.0/CVS using 'net' template for 'pc' target using
stable companion toolchain from eCosCentric (i386-elf-gcc version 4.3.2
(eCosCentric GNU tools 4.3.2-sw) I have not got such long list of the
warnings. I have no warnings at all on compiling 'net' and 'libm' stuff.

HTH

Sergei
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]