From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21696 invoked by alias); 1 Sep 2005 00:54:00 -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 21517 invoked by uid 48); 1 Sep 2005 00:53:51 -0000 Date: Thu, 01 Sep 2005 00:54:00 -0000 From: "kst at mib dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050901005347.23665.kst@mib.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/23665] New: ICE in convert_move with -O3 (ok at -O2) X-Bugzilla-Reason: CC X-SW-Source: 2005-09/txt/msg00003.txt.bz2 List-Id: Note that the following code invokes undefined behavior. I haven't been able to reproduce this bug on platforms other than Cygwin. % cat gcc-bug.c double func(); int main(void) { double d = func(42); return 0; } double func(double arg) { return arg * 2.0; } % uname -a CYGWIN_NT-5.1 sedna 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin % gcc --version gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. % gcc -c -O2 gcc-bug.c % gcc -c -O3 gcc-bug.c gcc-bug.c: In function `main': gcc-bug.c:10: internal compiler error: in convert_move, at expr.c:563 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- Summary: ICE in convert_move with -O3 (ok at -O2) Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kst at mib dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-cygwin GCC host triplet: i686-pc-cygwin GCC target triplet: i686-pc-cygwin http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23665