From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32315 invoked by alias); 27 Mar 2012 08:01:09 -0000 Received: (qmail 32303 invoked by uid 22791); 27 Mar 2012 08:01:08 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_LG X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Mar 2012 08:00:51 +0000 From: "kretz at kde dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/52736] [4.7 regression] miscompilation: store to aliased __m128d is 8 Bytes off Date: Tue, 27 Mar 2012 08:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kretz at kde dot org X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" 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-03/txt/msg02300.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52736 --- Comment #2 from Matthias Kretz 2012-03-27 08:00:47 UTC --- Using built-in specs. COLLECT_GCC=/opt/gcc-4.7.0/bin/g++ COLLECT_LTO_WRAPPER=/opt/gcc-4.7.0/libexec/gcc/x86_64-linux-gnu/4.7.0/lto-wrapper Target: x86_64-linux-gnu Configured with: ./configure --prefix=/opt/gcc-4.7.0 --build=x86_64-linux-gnu --host=x86_64-linux-gnu --enable-languages=c,c++,fortran --with-gmp=/opt/gcc-4.7.0 --with-mpfr=/opt/gcc-4.7.0 --with-ppl=/opt/gcc-4.7.0 --with-cloog=/opt/gcc-4.7.0 --with-libelf=/opt/gcc-4.7.0 --with-mpc=/opt/gcc-4.7.0 --enable-lto Thread model: posix gcc version 4.7.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-Wall' '-Wextra' '-msse2' '-O1' '-o' 'gcc-bug' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /opt/gcc-4.7.0/libexec/gcc/x86_64-linux-gnu/4.7.0/cc1plus -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE gcc-bug.cpp -quiet -dumpbase gcc-bug.cpp -msse2 -mtune=generic -march=x86-64 -auxbase gcc-bug -O1 -Wall -Wextra -version -o /tmp/ccfqD6uO.s GNU C++ (GCC) version 4.7.0 (x86_64-linux-gnu) compiled by GNU C version 4.7.0, GMP version 5.0.4, MPFR version 3.1.0, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring nonexistent directory "/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../../../x86_64-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../../../include/c++/4.7.0 /opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../../../include/c++/4.7.0/x86_64-linux-gnu /opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../../../include/c++/4.7.0/backward /opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/include /usr/local/include /opt/gcc-4.7.0/include /opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/include-fixed /usr/include/x86_64-linux-gnu /usr/include End of search list. GNU C++ (GCC) version 4.7.0 (x86_64-linux-gnu) compiled by GNU C version 4.7.0, GMP version 5.0.4, MPFR version 3.1.0, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 1ed577a2a8985e4282c7df02a5129e15 COLLECT_GCC_OPTIONS='-v' '-Wall' '-Wextra' '-msse2' '-O1' '-o' 'gcc-bug' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../../../x86_64-linux-gnu/bin/as --64 -o /tmp/ccJeVBlU.o /tmp/ccfqD6uO.s COMPILER_PATH=/opt/gcc-4.7.0/libexec/gcc/x86_64-linux-gnu/4.7.0/:/opt/gcc-4.7.0/libexec/gcc/x86_64-linux-gnu/4.7.0/:/opt/gcc-4.7.0/libexec/gcc/x86_64-linux-gnu/:/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/:/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/:/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../../../x86_64-linux-gnu/bin/ LIBRARY_PATH=/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/:/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../../../lib64/:/lib/x86_64-linux-gnu/:/lib/../lib64/:/usr/lib/x86_64-linux-gnu/:/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../../../x86_64-linux-gnu/lib/:/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-Wall' '-Wextra' '-msse2' '-O1' '-o' 'gcc-bug' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /opt/gcc-4.7.0/libexec/gcc/x86_64-linux-gnu/4.7.0/collect2 --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o gcc-bug /usr/lib/x86_64-linux-gnu/crt1.o /usr/lib/x86_64-linux-gnu/crti.o /opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/crtbegin.o -L/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0 -L/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../../../lib64 -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../../../x86_64-linux-gnu/lib -L/opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/../../.. /tmp/ccJeVBlU.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /opt/gcc-4.7.0/lib/gcc/x86_64-linux-gnu/4.7.0/crtend.o /usr/lib/x86_64-linux-gnu/crtn.o I will also add the output of -S. Line 16 is the broken one. Instead of "movsd %xmm0, 8(%rsp)" it should be "movsd %xmm0, %(rsp)".