From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4649 invoked by alias); 27 Jan 2005 01:45:48 -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 4498 invoked by uid 48); 27 Jan 2005 01:45:34 -0000 Date: Thu, 27 Jan 2005 01:45:00 -0000 Message-ID: <20050127014534.4497.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050127010119.19650.dalej@apple.com> References: <20050127010119.19650.dalej@apple.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/19650] [4.0 Regression] miscompilation of correct code X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg03968.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-27 01:45 ------- Note here is the reduced C testcase which shows that this is not PHI-OPT bug as PHI-OPT does nothing: int g(void); void h(int); int a1[2]={0,1}; int main(void) { int a = g(); _Bool i = a==2; h(a1[i]); return 0; } int g(void) { return 2; } extern void abort(void); void h(int a) { if (a!=1) abort (); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19650