From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19678 invoked by alias); 28 Jul 2005 23:19:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 19660 invoked by uid 48); 28 Jul 2005 23:19:02 -0000 Date: Thu, 28 Jul 2005 23:31:00 -0000 Message-ID: <20050728231902.19659.qmail@sourceware.org> From: "wilson at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050727233319.23106.fn_x@hotmail.com> References: <20050727233319.23106.fn_x@hotmail.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/23106] -Wstrict-aliasing=2 doesn't warn for all aliasing problems X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg03801.txt.bz2 List-Id: ------- Additional Comments From wilson at gcc dot gnu dot org 2005-07-28 23:18 ------- -Wstrict-aliasing warns for all aliasing problems that we can detect, and which are obviously incorrect. -Wstrict-aliasing=2 warns for all aliasing problems that we can detect, and which are not obviously correct. Thus -Wstrict-aliasing=2 catches more problems than -Wstrict-aliasing, i.e. the ambiguous ones, but will also sometimes warn for cases that are technically OK. -Wstrict-aliasing=2 will report all aliasing prolems that we can detect, but obviously, neither one can warn about aliasing problems that we can't detect, and hence neither one can catch all possible cases. So I see that the "all" in the docs is misleading. I will rewrite. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |wilson at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2005-07-28 16:40:42 |2005-07-28 23:18:58 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23106