From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA192386F83D; Tue, 28 Jul 2020 14:55:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA192386F83D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595948136; bh=JRqHaxZBMsK8321MGr+PDEsSDW09tBx0dEDlplVPQYI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=e7Bd4lRH9Y/CJdTAct1vVLxZv7rPw5zqIJjd0SOOmA2zhFtfgHAto+6/boDFsvj9g Tn1xbx9a+cNfwt9z4NeuK/l6tDvjNKUpFg6hfjUYInW3Xgdaj6VAbtvrtmL/x5I+i2 LAhJD76hixG7Zq5ntOOZE97nGuxgOEoF53zkj3QE= From: "ibuclaw at gdcproject dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96347] note: non-delegitimized UNSPEC UNSPEC_TP (19) found in variable location Date: Tue, 28 Jul 2020 14:55:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ibuclaw at gdcproject dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2020 14:55:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96347 --- Comment #3 from Iain Buclaw --- Created attachment 48946 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48946&action=3Dedit disallow tpoff+offset from being stored in a temp Patch prevents the forced temp from being used to replace the rhs of the original PLUS expr at memory_address_addr_space (explow.c:434), so the exce= ss errors are gone. Alters the resultant assembly in the following way: --- @@ -35,15 +35,11 @@ _Z5chain6Darray: main: .LFB4: .cfi_startproc - pushq %rbp - .cfi_def_cfa_offset 16 - .cfi_offset 6, -16 - leaq 8+testYearsBC@tpoff, %rbp pushq %rbx - .cfi_def_cfa_offset 24 - .cfi_offset 3, -24 - subq $40, %rsp - .cfi_def_cfa_offset 64 + .cfi_def_cfa_offset 16 + .cfi_offset 3, -16 + subq $32, %rsp + .cfi_def_cfa_offset 48 leaq 17(%rsp), %rbx jmp .L6 .p2align 4,,10 @@ -56,11 +52,11 @@ main: movl $0, (%rbx) movw %ax, 4(%rbx) movb $0, 6(%rbx) - movq %fs:0(%rbp), %rdx movq %fs:testYearsBC@tpoff, %rax + movq %fs:8+testYearsBC@tpoff, %rdx movb $0, 16(%rsp) - movq %rdx, 8(%rsp) movq %rax, (%rsp) + movq %rdx, 8(%rsp) testq %rax, %rax je .L7 jmp .L9 @@ -71,9 +67,8 @@ main: main.cold: .LFSB4: .L7: - .cfi_def_cfa_offset 64 - .cfi_offset 3, -24 - .cfi_offset 6, -16 + .cfi_def_cfa_offset 48 + .cfi_offset 3, -16 call abort@PLT .cfi_endproc .LFE4:=