From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56316 invoked by alias); 22 Jul 2015 13:55:23 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 56130 invoked by uid 89); 22 Jul 2015 13:55:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: gate.crashing.org Received: from gate.crashing.org (HELO gate.crashing.org) (63.228.1.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 22 Jul 2015 13:55:21 +0000 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id t6MDtHxJ027146; Wed, 22 Jul 2015 08:55:17 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id t6MDtGsG027145; Wed, 22 Jul 2015 08:55:16 -0500 Date: Wed, 22 Jul 2015 13:59:00 -0000 From: Segher Boessenkool To: "H.J. Lu" Cc: GCC Patches , Uros Bizjak Subject: Re: RFC: [PATCH] Add __builtin_ia32_stack_top Message-ID: <20150722135516.GF11682@gate.crashing.org> References: <20150721214539.GA19891@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg01844.txt.bz2 On Wed, Jul 22, 2015 at 05:10:04AM -0700, H.J. Lu wrote: > I got a feedback, suggesting __builtin_stack_top, instead of > __builtin_ia32_stack_top. But I don't know if > > + /* After the prologue, stack top is at -WORD(AP) in the current > + frame. */ > + emit_insn (gen_rtx_SET (target, > + plus_constant (Pmode, arg_pointer_rtx, > + -UNITS_PER_WORD))); > > is true for all backends. If it works on all backends, I can move > it to builtins.c. It doesn't afaik. But can't you define INITIAL_FRAME_ADDRESS_RTX? Segher