From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17505 invoked by alias); 20 Dec 2012 03:11:03 -0000 Received: (qmail 17451 invoked by uid 48); 20 Dec 2012 03:10:40 -0000 From: "chx319 at mail dot ustc.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55748] New: compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option. Date: Thu, 20 Dec 2012 03:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chx319 at mail dot ustc.edu.cn X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2012-12/txt/msg01929.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55748 Bug #: 55748 Summary: compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option. Classification: Unclassified Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: chx319@mail.ustc.edu.cn I use gcc-4.4.0 to compile qt-everywhere-opensource-src-4.7.2, and a compil= er inner error comes out. the steps of compiling qt: > 1)export CFLAGS=3D"-O3 -pipe -Wall -march=3Dloongson3a -ftree-vectorize > -fprefetch-loop-arrays -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions > --param=3Dssp-buffer-size=3D4" > 2)export CXXFLAGS=3D"-O3 -pipe -Wall -march=3Dloongson3a -ftree-vectorize > -fprefetch-loop-arrays -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions > --param=3Dssp-buffer-size=3D4" > 3)./configure > 4)gmake However when I strike out the -fprefetch-loop-arrays option, the compilation goes right. The -fprefetch-loop-arrays option is only related to the ssa optimization pass(struct gimple_opt_pass pass_ssa_prefetch).=20 I made a test. I rewrite the gate function of pass_ssa_prefetch, and let the function do nothing but return 0. The compilation was OK , using the origin= al options. =E2=80=A2the version of GCC : gcc-4.4.0 =E2=80=A2the system type : mips64-linux =E2=80=A2the options given when GCC was configured/built: ../gcc-4.4.0/configure --prefix=3D/opt/toolchain/ --with-system-zlib \ --enable-threads=3Dposix --enable-shared --enable-long-long \ --enable-disable-libjava-multilib --disable-ssp --disable-libssp \ --with-local-prefix=3D/opt/toolchain --with-abi=3D32 --disable-mult= ilib \ --with-binutils=3D/opt/toolchain \ --enable-languages=3Dc,c++,fortran,objc,obj-c++ \ =E2=80=A2the complete command line that triggers the bug: g++ -O3 -Wall -march=3Dloongson3a -ftree-vectorize -fprefetch-loop-arrays -save-temps -fexceptions -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/inclu= de=20 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -O2 -fvisibility=3Dhidden -fvisibility-inlines-hidd= en -Wall -W -D_REENTRANT -I/usr/include/freetype2 -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/x= org -Iimage -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/qtoolbararealayout.o widgets/qtoolbararealayout.cpp =E2=80=A2the compiler output : widgets/qtoolbararealayout.cpp: In member function =E2=80=98QList QToolBarAreaLayout::currentGapIndex() const=E2=80=99: widgets/qtoolbararealayout.cpp:1058: =E8=AD=A6=E5=91=8A=EF=BC=9A=E6=AD=A4= =E5=87=BD=E6=95=B0=E4=B8=AD=E7=9A=84=E2=80=98k=E2=80=99=E5=9C=A8=E4=BD=BF= =E7=94=A8=E5=89=8D=E6=9C=AA=E5=88=9D=E5=A7=8B=E5=8C=96 widgets/qtoolbararealayout.cpp: In member function =E2=80=98QList QToolBarAreaLayout::gapIndex(const QPoint&) const=E2=80=99: widgets/qtoolbararealayout.cpp:1029: =E7=BC=96=E8=AF=91=E5=99=A8=E5=86=85= =E9=83=A8=E9=94=99=E8=AF=AF=EF=BC=9A=E5=9C=A8 expand_expr_addr_expr_1 =E4= =B8=AD=EF=BC=8C=E4=BA=8E expr.c:6990 =E8=AF=B7=E6=8F=90=E4=BA=A4=E4=B8=80=E4=BB=BD=E5=AE=8C=E6=95=B4=E7=9A=84=E9= =94=99=E8=AF=AF=E6=8A=A5=E5=91=8A=EF=BC=8C =E5=A6=82=E6=9C=89=E5=8F=AF=E8=83=BD=E8=AF=B7=E9=99=84=E4=B8=8A=E7=BB=8F=E9= =A2=84=E5=A4=84=E7=90=86=E5=90=8E=E7=9A=84=E6=BA=90=E6=96=87=E4=BB=B6=E3=80= =82 =E5=85=B7=E4=BD=93=E6=AD=A5=E9=AA=A4=E8=AF=B7=E5=8F=82=E8=A7=81 =E3=80=82 =E2=80=A2the preprocessed file: the file is update as the attachment.