From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id D451E3858C52; Thu, 2 Feb 2023 18:49:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D451E3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675363766; bh=FNMRhM9GVeSvM3+d9IjyM8t9IZKikWATPN3KCoJ8jCI=; h=From:To:Subject:Date:From; b=K85EO99BsBbD7VUTe74GVqH7DIB6i5ovtQn1SyAFFbQnaQcA+R8oErranxo6+hnQ6 2fuRoOc1wFg2sbcUoQmywAxSCq2pYVm2e967HnaO1nzpt/9NmJ5SNRZAt/u7CkX6WX BN6kY+BkO4x5xEvuBn1Jpy7po0s3Ei6LkAp2sktw= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] Remove sysdeps/mach/i386/machine-sp.h X-Act-Checkin: glibc X-Git-Author: Flavio Cruz X-Git-Refname: refs/heads/master X-Git-Oldrev: 2337e04e21ba6040926ec871e403533f77043c40 X-Git-Newrev: 5130cd77b0aee79bfb6976b62a00832c2be96e0d Message-Id: <20230202184926.D451E3858C52@sourceware.org> Date: Thu, 2 Feb 2023 18:49:26 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5130cd77b0aee79bfb6976b62a00832c2be96e0d commit 5130cd77b0aee79bfb6976b62a00832c2be96e0d Author: Flavio Cruz Date: Thu Feb 2 02:42:18 2023 -0500 Remove sysdeps/mach/i386/machine-sp.h This file is not used today since we end up using sysdeps/i386/htl/machine-sp.h. Getting the stack pointer does not need to be hurd specific and can go into sysdeps/. Message-Id: Diff: --- sysdeps/mach/i386/machine-sp.h | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/sysdeps/mach/i386/machine-sp.h b/sysdeps/mach/i386/machine-sp.h deleted file mode 100644 index 6e3f2ebb48..0000000000 --- a/sysdeps/mach/i386/machine-sp.h +++ /dev/null @@ -1,30 +0,0 @@ -/* Machine-specific function to return the stack pointer. i386 version. - Copyright (C) 1994-2023 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _MACHINE_SP_H -#define _MACHINE_SP_H - -/* Return the current stack pointer. */ - -#define __thread_stack_pointer() ({ \ - uintptr_t __sp__; \ - __asm__ ("movl %%esp, %0" : "=r" (__sp__)); \ - __sp__; \ -}) - -#endif /* machine-sp.h */