recent current kernel compile failure

Scott Long scottl at samsco.org
Thu Jan 27 03:49:35 PST 2005


Divacky Roman wrote:

> hi
> 
> recent current with CFLAGS=-O2:
> 
> ../dev/amr/amr_pci.c
> /usr/src/sys/modules/amr/../../dev/amr/amr_pci.c: In function `amr_setup_mbox':
> /usr/src/sys/modules/amr/../../dev/amr/amr_pci.c:605: warning: dereferencing
> type-punned pointer will break strict-aliasing rules
> 
> would be nice to have this repaired
> 
> roman

We don't support compiling with -fstrict-aliasing.  The correct solution 
is likely to change the type of 'p' and add a bunch of casts.  Not very 
pretty, but I guess no worse than the horribly non-informative gcc 
message that is generated here.

Scott



More information about the freebsd-current mailing list