From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27825 invoked by alias); 30 Jul 2015 08:54:30 -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 27261 invoked by uid 55); 30 Jul 2015 08:54:25 -0000 From: "uros at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/58066] __tls_get_addr is called with misaligned stack on x86-64 Date: Thu, 30 Jul 2015 08:54: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-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: uros at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 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-07/txt/msg02625.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066 --- Comment #20 from uros at gcc dot gnu.org --- Author: uros Date: Thu Jul 30 08:53:48 2015 New Revision: 226389 URL: https://gcc.gnu.org/viewcvs?rev=226389&root=gcc&view=rev Log: Backport from mainline: 2015-07-17 Uros Bizjak PR rtl-optimization/66891 * calls.c (expand_call): Wrap precompute_register_parameters with NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops. 2015-07-15 Uros Bizjak PR target/58066 * config/i386/i386.md (*tls_global_dynamic_64_): Depend on SP_REG. (*tls_local_dynamic_base_64_): Ditto. (*tls_local_dynamic_base_64_largepic): Ditto. (tls_global_dynamic_64_): Update expander pattern. (tls_local_dynamic_base_64_): Ditto. 2015-07-15 Uros Bizjak PR rtl-optimization/58066 * calls.c (expand_call): Precompute register parameters before stack alignment is performed. 2014-05-08 Wei Mi PR target/58066 * config/i386/i386.c (ix86_compute_frame_layout): Update preferred_stack_boundary for call, expanded from tls descriptor. * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX to depend on SP register. (*tls_local_dynamic_base_32_gnu): Ditto. (*tls_local_dynamic_32_once): Ditto. (tls_global_dynamic_64_): Set ix86_tls_descriptor_calls_expanded_in_cfun. (tls_local_dynamic_base_64_): Ditto. (tls_global_dynamic_32): Set ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX to depend on SP register. (tls_local_dynamic_base_32): Ditto. testsuite/ChangeLog: Backport from mainline: 2015-07-17 Uros Bizjak PR target/66891 * gcc.target/i386/pr66891.c: New test. 2014-05-18 Wei Mi PR target/58066 * gcc.target/i386/pr58066.c: Replace pattern matching of .cfi directive with rtl insns. Add effective-target fpic and tls_native. 2014-05-08 Wei Mi PR target/58066 * gcc.target/i386/pr58066.c: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr58066.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr66891.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/config/i386/i386.c branches/gcc-4_9-branch/gcc/config/i386/i386.md branches/gcc-4_9-branch/gcc/testsuite/ChangeLog