public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/55748] New: compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option.
@ 2012-12-20  3:11 chx319 at mail dot ustc.edu.cn
  2012-12-20  3:29 ` [Bug tree-optimization/55748] " chx319 at mail dot ustc.edu.cn
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: chx319 at mail dot ustc.edu.cn @ 2012-12-20  3:11 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55748

             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 compiler
inner error comes out.
the steps of compiling qt:
> 1)export CFLAGS="-O3 -pipe -Wall -march=loongson3a -ftree-vectorize
> -fprefetch-loop-arrays -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> --param=ssp-buffer-size=4"
> 2)export CXXFLAGS="-O3 -pipe -Wall -march=loongson3a -ftree-vectorize
> -fprefetch-loop-arrays -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> --param=ssp-buffer-size=4"
> 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). 
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 original
options.

•the  version of GCC : gcc-4.4.0
•the system type : mips64-linux
•the options given when GCC was configured/built:
  ../gcc-4.4.0/configure --prefix=/opt/toolchain/ --with-system-zlib \
        --enable-threads=posix --enable-shared --enable-long-long \
        --enable-disable-libjava-multilib --disable-ssp --disable-libssp \
        --with-local-prefix=/opt/toolchain --with-abi=32 --disable-multilib \
        --with-binutils=/opt/toolchain \
        --enable-languages=c,c++,fortran,objc,obj-c++ \
•the complete command line that triggers the bug:
  g++ -O3  -Wall -march=loongson3a -ftree-vectorize -fprefetch-loop-arrays
-save-temps -fexceptions  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-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=hidden -fvisibility-inlines-hidden
-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/xorg
-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
•the compiler output :
  widgets/qtoolbararealayout.cpp: In member function ‘QList<int>
QToolBarAreaLayout::currentGapIndex() const’:
widgets/qtoolbararealayout.cpp:1058: 警告:此函数中的‘k’在使用前未初始化
widgets/qtoolbararealayout.cpp: In member function ‘QList<int>
QToolBarAreaLayout::gapIndex(const QPoint&) const’:
widgets/qtoolbararealayout.cpp:1029: 编译器内部错误:在 expand_expr_addr_expr_1 中,于
expr.c:6990
请提交一份完整的错误报告,
如有可能请附上经预处理后的源文件。
具体步骤请参见 <http://gcc.gnu.org/bugs.html>。
•the preprocessed file: the file is update as the attachment.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/55748] compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option.
  2012-12-20  3:11 [Bug tree-optimization/55748] New: compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option chx319 at mail dot ustc.edu.cn
@ 2012-12-20  3:29 ` chx319 at mail dot ustc.edu.cn
  2012-12-20  4:43 ` chx319 at mail dot ustc.edu.cn
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: chx319 at mail dot ustc.edu.cn @ 2012-12-20  3:29 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55748

warrenbear <chx319 at mail dot ustc.edu.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |mips64-linux
               Host|                            |mips64-linux
              Build|                            |mips64-linux

--- Comment #1 from warrenbear <chx319 at mail dot ustc.edu.cn> 2012-12-20 03:29:09 UTC ---
It is said that the the preprocessed file is too big to be updated.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/55748] compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option.
  2012-12-20  3:11 [Bug tree-optimization/55748] New: compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option chx319 at mail dot ustc.edu.cn
  2012-12-20  3:29 ` [Bug tree-optimization/55748] " chx319 at mail dot ustc.edu.cn
@ 2012-12-20  4:43 ` chx319 at mail dot ustc.edu.cn
  2012-12-20  4:56 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: chx319 at mail dot ustc.edu.cn @ 2012-12-20  4:43 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55748

--- Comment #2 from warrenbear <chx319 at mail dot ustc.edu.cn> 2012-12-20 04:43:31 UTC ---
the compiler output :
> widgets/qtoolbararealayout.cpp:1056: warning: 'k' is used uninitialized in
> this function
> widgets/qtoolbararealayout.cpp: In member function 'QList<int>
> QToolBarAreaLayout::gapIndex(const QPoint&) const':
> widgets/qtoolbararealayout.cpp:1029: internal compiler error: in
> expand_expr_addr_expr_1, at expr.c:6990
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://gcc.gnu.org/bugs.html> for instructions.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/55748] compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option.
  2012-12-20  3:11 [Bug tree-optimization/55748] New: compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option chx319 at mail dot ustc.edu.cn
  2012-12-20  3:29 ` [Bug tree-optimization/55748] " chx319 at mail dot ustc.edu.cn
  2012-12-20  4:43 ` chx319 at mail dot ustc.edu.cn
@ 2012-12-20  4:56 ` pinskia at gcc dot gnu.org
  2012-12-20  6:40 ` chx319 at mail dot ustc.edu.cn
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-12-20  4:56 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55748

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-12-20 04:55:54 UTC ---
Can you try to compress it and attach it?


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/55748] compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option.
  2012-12-20  3:11 [Bug tree-optimization/55748] New: compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option chx319 at mail dot ustc.edu.cn
                   ` (2 preceding siblings ...)
  2012-12-20  4:56 ` pinskia at gcc dot gnu.org
@ 2012-12-20  6:40 ` chx319 at mail dot ustc.edu.cn
  2012-12-20  6:41 ` chx319 at mail dot ustc.edu.cn
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: chx319 at mail dot ustc.edu.cn @ 2012-12-20  6:40 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55748

--- Comment #4 from warrenbear <chx319 at mail dot ustc.edu.cn> 2012-12-20 06:39:48 UTC ---
(In reply to comment #3)
> Can you try to compress it and attach it?
Yes.the original file is 1,860KB. after compress ,the result file is 228KB, and
is bigger then 100KB.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/55748] compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option.
  2012-12-20  3:11 [Bug tree-optimization/55748] New: compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option chx319 at mail dot ustc.edu.cn
                   ` (3 preceding siblings ...)
  2012-12-20  6:40 ` chx319 at mail dot ustc.edu.cn
@ 2012-12-20  6:41 ` chx319 at mail dot ustc.edu.cn
  2012-12-20  6:53 ` chx319 at mail dot ustc.edu.cn
  2012-12-20 12:41 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: chx319 at mail dot ustc.edu.cn @ 2012-12-20  6:41 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55748

--- Comment #5 from warrenbear <chx319 at mail dot ustc.edu.cn> 2012-12-20 06:41:16 UTC ---
Created attachment 29010
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29010
It is the preprocessed file.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/55748] compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option.
  2012-12-20  3:11 [Bug tree-optimization/55748] New: compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option chx319 at mail dot ustc.edu.cn
                   ` (4 preceding siblings ...)
  2012-12-20  6:41 ` chx319 at mail dot ustc.edu.cn
@ 2012-12-20  6:53 ` chx319 at mail dot ustc.edu.cn
  2012-12-20 12:41 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: chx319 at mail dot ustc.edu.cn @ 2012-12-20  6:53 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55748

--- Comment #6 from warrenbear <chx319 at mail dot ustc.edu.cn> 2012-12-20 06:53:16 UTC ---
Sorry!
It's my fault to got the wrong size specification  of the update file.
the preprocessed file has been compressed and attached at Comment 5.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/55748] compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option.
  2012-12-20  3:11 [Bug tree-optimization/55748] New: compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option chx319 at mail dot ustc.edu.cn
                   ` (5 preceding siblings ...)
  2012-12-20  6:53 ` chx319 at mail dot ustc.edu.cn
@ 2012-12-20 12:41 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-12-20 12:41 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55748

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-12-20
     Ever Confirmed|0                           |1

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-20 12:41:27 UTC ---
Note that GCC 4.4.0 is no longer maintained, please update to at least GCC
4.6.3.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-12-20 12:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-20  3:11 [Bug tree-optimization/55748] New: compile eror when -fprefetch-loop-arrays is added , while everything goes well without the option chx319 at mail dot ustc.edu.cn
2012-12-20  3:29 ` [Bug tree-optimization/55748] " chx319 at mail dot ustc.edu.cn
2012-12-20  4:43 ` chx319 at mail dot ustc.edu.cn
2012-12-20  4:56 ` pinskia at gcc dot gnu.org
2012-12-20  6:40 ` chx319 at mail dot ustc.edu.cn
2012-12-20  6:41 ` chx319 at mail dot ustc.edu.cn
2012-12-20  6:53 ` chx319 at mail dot ustc.edu.cn
2012-12-20 12:41 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).