[pisa-src] Re: r2298 - in trunk: configure.ac libpisa/arp.c libpisa/debug.h libpisa/global.h libpisa/hitlist.c libpisa/nat.c libpisa/sysdep_fw.c libpisa/sysdep_tun.c pairing/libconfig_wrapper.c pairing/packet_han...

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Mon, 17 May 2010 12:39:13 +0200

Diego Biurrun <diego@xxxxxxxxxx> wrote:
> > +if test "$(uname -s)" = "FreeBSD"; then
> > +        AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -fno-strict-aliasing")
> > +fi  
> 
> What's the effect of this flag?  I notice that HIPL has it as well,
> why not add it to the global CFLAGS?

Strict aliasing [1] enables further optimizations (think reordering) from the
compiler and is enabled by default starting from -O2. So the flag above is not
should not be used for global CFALGS. 

[1] accessing a memory location via different names/pointers

-- 
Dipl.-Ing. Mircea Gherzan

Other related posts: