From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10770 invoked by alias); 22 Jul 2007 11:43:44 -0000 Received: (qmail 10725 invoked by uid 48); 22 Jul 2007 11:43:35 -0000 Date: Sun, 22 Jul 2007 11:43:00 -0000 Message-ID: <20070722114335.10724.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/32575] GCC 4.2.0 with -ftree-vrp miscompiles a single line of code in SQLite In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "drh at sqlite 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/msg02243.txt.bz2 ------- Comment #3 from drh at sqlite dot org 2007-07-22 11:43 ------- Follow-up comments to the original bug report in SQLite (see the link shown above) report that the same problem exists in GCC 4.2.1. A work-around for SQLite was devised, which was to change a single line of code: - aRoot[j] = pTos[-j].u.i; + aRoot[j] = (pTos-j)->u.i; There are many other places in the SQLite code that have similar constructs, but this one instance seems to be the only one that gives GCC trouble. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32575