From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1145 invoked by alias); 21 Apr 2002 21:35:14 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1126 invoked by uid 61); 21 Apr 2002 21:35:13 -0000 Date: Sun, 21 Apr 2002 14:35:00 -0000 Message-ID: <20020421213513.1125.qmail@sources.redhat.com> To: charles@Provis.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: jakub@gcc.gnu.org Reply-To: jakub@gcc.gnu.org, charles@Provis.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: optimization/6377: Optimization (>= -O2) with bitfields yields incorrect result X-SW-Source: 2002-04/txt/msg01086.txt.bz2 List-Id: Synopsis: Optimization (>= -O2) with bitfields yields incorrect result State-Changed-From-To: open->closed State-Changed-By: jakub State-Changed-When: Sun Apr 21 14:35:13 2002 State-Changed-Why: Your testcase is ill-formed, uses illegal type-punning. Please see info gcc on -fstrict-aliasing (which is the default in these gcc releases at -O2 and above). Either compile with -O2 -fno-strict-aliasing or fix the code in question (e.g. to access the objects through unions). http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6377