Bruce, you have to pass CCFLAGS='-O3 -fstrict-aliasing -Wstrict-aliasing' to package make to see the aliasing warnings, -Wstrict-aliasing is not enabled by default.
Olga 2012/2/28 Bruce Lilly <[email protected]>: > On Tue, 28 Feb 2012 20:32:43 +0100 > ольга крыжановская <[email protected]> wrote: > >> I tested with Suse 12.1, gcc (SUSE Linux) 4.6.2, ast-open.2012-02-14 >> and only got this one warning >> src/lib/libast/vmalloc/vmstat.c: In function 'vmstat': >> src/lib/libast/vmalloc/vmstat.c:100:7: warning: dereferencing >> type-punned pointer will break strict-aliasing rules >> [-Wstrict-aliasing] >> >> Olga > > Running openSUSE 12.1 here with updates I get no such warnings on > linux.i386 or linux.i386-64. > > egrep "aliasi|punn" /opt/ast/arch/*/lib/package/gen/*.out > yields nothing. > > Built as user "nobody" under /opt/ast with: > package update beta source && package read && package make && package test > > update was from the 2012-02-02 beta version. No special flags passed > to package make directly or via environment variables. > > Same under openSUSE 11.4 (also with updates, also gcc 4.6.2). > > Kernel flavor is "desktop" in all cases. -- , _ _ , { \/`o;====- Olga Kryzhanovska -====;o`\/ } .----'-/`-/ [email protected] \-`\-'----. `'-..-| / http://twitter.com/fleyta \ |-..-'` /\/\ Solaris/BSD//C/C++ programmer /\/\ `--` `--` _______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
