Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jan 2005 04:49:35 -0700
From:      Scott Long <scottl@samsco.org>
To:        Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc:        current@freebsd.org
Subject:   Re: recent current kernel compile failure
Message-ID:  <41F8D54F.9090802@samsco.org>
In-Reply-To: <20050127113906.GA98285@stud.fit.vutbr.cz>
References:  <20050127113906.GA98285@stud.fit.vutbr.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41F8D54F.9090802>