This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
- From: "jojelino at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 Nov 2011 16:15:43 +0000
- Subject: [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
- Auto-submitted: auto-generated
- References: <bug-50725-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725
gee <jojelino at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #25493|0 |1
is obsolete| |
Attachment #25502|0 |1
is obsolete| |
Attachment #25503|0 |1
is obsolete| |
--- Comment #11 from gee <jojelino at gmail dot com> 2011-11-04 16:15:43 UTC ---
Created attachment 25718
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25718
reduced source code
Reduced.
$ g++ -fverbose-asm -c -O1 -finline-small-functions -fenable-ipa-inline
-ftree-vectorize -finline-functions -mstackrealign -march=core2 r.c
-save-temps -fdump-rtl-expand -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: ./configure --config-cache --prefix=/usr
--disable-win32-registry --enable-threads=win32
--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl
Thread model: win32
gcc version 4.7.0 20111025 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl-expand' '-v' '-shared-libgcc'
/usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe -E -quiet -v -D__CYGWIN32__
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../include/w32api
-idirafter
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../../include/w32api
r.c -mstackrealign -march=core2 -fverbose-asm -finline-small-functions
-fenable-ipa-inline -ftree-vectorize -finline-functions -fdump-rtl-expand -O1
-fpch-preprocess -o r.ii
cc1plus: note: enable pass ipa-inline for functions in the range of [0,
4294967295]
ignoring duplicate directory "/usr/include"
ignoring duplicate directory
"/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0/i686-pc-cygwin
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0/backward
/usr/lib/gcc/i686-pc-cygwin/4.7.0/include
/usr/local/include
/usr/lib/gcc/i686-pc-cygwin/4.7.0/include-fixed
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/include
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../include/w32api
End of search list.
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl-expand' '-v' '-shared-libgcc'
/usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe -fpreprocessed r.ii -quiet
-dumpbase r.c -mstackrealign -march=core2 -auxbase r -O1 -version -fverbose-asm
-finline-small-functions -fenable-ipa-inline -ftree-vectorize
-finline-functions -fdump-rtl-expand -o r.s
cc1plus: note: enable pass ipa-inline for functions in the range of [0,
4294967295]
GNU C++ (GCC) version 4.7.0 20111025 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111020 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.7.0 20111025 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111020 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: cf86ba87ee966d84e06e2ba1fe53e4c2
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl-expand' '-v' '-shared-libgcc'
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/bin/as.exe -o r.o
r.s
COMPILER_PATH=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/:/usr/libexec/gcc/i686-pc-cygwin/4.7.0/:/usr/libexec/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/:/usr/lib/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/bin/
LIBRARY_PATH=/usr/lib/gcc/i686-pc-cygwin/4.7.0/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl-expand' '-v' '-shared-libgcc'
__Z25_pei386_runtime_relocatorP11per_process:
LFB2:
.cfi_startproc
movl (%ecx), %eax # u, u