Mercurial > ecos
changeset 3096:73ce0d6424ec
Add -fno-strict-aliasing to CFLAGS to fix warnings from newer gcc (4.6)
about dereferencing type-punned pointers. [Hopfully a future update from
upstream will obviate the need for this.]
| author | grante |
|---|---|
| date | Mon, 05 Mar 2012 20:30:21 +0000 |
| parents | 0603e0509bfb |
| children | a75d37e86790 |
| files | packages/net/bsd_tcpip/current/ChangeLog packages/net/bsd_tcpip/current/cdl/freebsd_net.cdl |
| diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/net/bsd_tcpip/current/ChangeLog +++ b/packages/net/bsd_tcpip/current/ChangeLog @@ -1,3 +1,8 @@ +2012-02-29 Grant Edwards <grant.b.edwards@gmail.com> + + * cdl/freebsd_net.cdl: Add -fno-strict-aliasing compiler flag to fix + compiler warnings from newer versions (4.6) of gcc. [ bugzilla 1001501 ] + 2011-05-12 John Dallaway <john@dallaway.org.uk> * include/sys/param.h: Fix cyg_arc4random() extern. Issue reported by
--- a/packages/net/bsd_tcpip/current/cdl/freebsd_net.cdl +++ b/packages/net/bsd_tcpip/current/cdl/freebsd_net.cdl @@ -466,7 +466,7 @@ cdl_package CYGPKG_NET_FREEBSD_STACK { display "Additional compiler flags" flavor data no_define - default_value { "-D_KERNEL" } + default_value { "-D_KERNEL -fno-strict-aliasing" } description " This option modifies the set of compiler flags for building the networking package.
