From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4382 invoked by alias); 23 Jul 2007 14:17:40 -0000 Received: (qmail 4335 invoked by uid 48); 23 Jul 2007 14:17:28 -0000 Date: Mon, 23 Jul 2007 14:17:00 -0000 Message-ID: <20070723141728.4334.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/32856] Invalid optimization in the face of aliasing In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "falk at debian dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg02330.txt.bz2 ------- Comment #7 from falk at debian dot org 2007-07-23 14:17 ------- (In reply to comment #6) > This program demonstrates the problem, it creates different output depending on > if compiled with or without optimisation. This does not demonstrate the problem, since your code has undefined behavior (already c = ... is undefined). You really need something like the union mentioned earlier. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32856