This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/37539] New: Hang for -O3


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]