From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126053 invoked by alias); 19 Apr 2015 17:39:48 -0000 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 Received: (qmail 125990 invoked by uid 48); 19 Apr 2015 17:39:44 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/65805] [5/6 Regression] Chromium gets miscompiled Date: Sun, 19 Apr 2015 17:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg01560.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65805 --- Comment #3 from Markus Trippelsdorf --- It is clearer to see the issue if one compiles the whole file with -fno-lra-remat: markus@x4 Release % g++ -S -fno-lra-remat -fPIC -fvisibility=hidden -pthread -march=x86-64 -O2 -fno-exceptions -fno-rtti -std=gnu++11 -Wall -c file_util.ii -o out_good markus@x4 Release % g++ -S -fPIC -fvisibility=hidden -pthread -march=x86-64 -O2 -fno-exceptions -fno-rtti -std=gnu++11 -Wall -c file_util.ii -o out_bad markus@x4 Release % diff -u out_good out_bad ... @@ -4616,7 +4616,7 @@ pushq %rbp .cfi_def_cfa_offset 128 movl 20(%rsp), %edx - movq 24(%rsp), %rdi + leaq 64(%rsp), %rdi call _ZN10extensions9Extension6CreateERKN4base8FilePathENS_8Manifest8LocationERKNS1_15DictionaryValueEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPSF_@PLT movq 32(%rsp), %r13 popq %rax When I change "leaq 64(%rsp), %rdi" back to "movq 24(%rsp), %rdi" chromium runs fine.