From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25372 invoked by alias); 16 Sep 2008 08:19:14 -0000 Received: (qmail 25121 invoked by uid 48); 16 Sep 2008 08:17:51 -0000 Date: Tue, 16 Sep 2008 08:19:00 -0000 Subject: [Bug c++/37539] New: Hang for -O3 X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dcb314 at hotmail dot com" 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: 2008-09/txt/msg01867.txt.bz2 I just tried to compile the Suse Linux package liboil-0.3.14-17 with the most recent snapshot of gcc version 4.4, dated 20080912. The compiler said gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -D_BSD_SOURCE -D_GNU_SOURCE -I../.. -DOIL_ENABLE_UNSTABLE_API -O3 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -MT libref_la-yuv.lo -MD -MP -MF .deps/libref_la-yuv.Tpo -c yuv.c -fPIC -DPIC -o .libs/libref_la-yuv.o yuv.c:145: warning: missing initializer yuv.c:145: warning: (near initialization for '_oil_function_impl_yuyv2ayuv_ref.profile_ave') yuv.c:161: warning: missing initializer yuv.c:161: warning: (near initialization for '_oil_function_impl_yvyu2ayuv_ref.profile_ave') yuv.c:177: warning: missing initializer yuv.c:177: warning: (near initialization for '_oil_function_impl_uyvy2ayuv_ref.profile_ave') yuv.c:200: warning: missing initializer yuv.c:200: warning: (near initialization for '_oil_function_impl_ayuv2yuyv_ref.profile_ave') yuv.c:221: warning: missing initializer yuv.c:221: warning: (near initialization for '_oil_function_impl_ayuv2yvyu_ref.profile_ave') yuv.c:242: warning: missing initializer yuv.c:242: warning: (near initialization for '_oil_function_impl_ayuv2uyvy_ref.profile_ave') yuv.c:257: warning: missing initializer yuv.c:257: warning: (near initialization for '_oil_function_impl_packyuyv_ref.profile_ave') yuv.c:272: warning: missing initializer yuv.c:272: warning: (near initialization for '_oil_function_impl_unpackyuyv_ref.profile_ave') and proceeded to hang an otherwise idle machine for half an hour. Preprocessed source code attached. Flag -O3 required to cause the hang. Changing the -O3 flag to -O2 caused the file to compile in half a second. -- Summary: Hang for -O3 Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dcb314 at hotmail dot com GCC host triplet: suse-linux-x86_64 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37539