From patchwork Thu Nov 30 19:04:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 24641 Received: (qmail 72495 invoked by alias); 30 Nov 2017 19:04:56 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 72486 invoked by uid 89); 30 Nov 2017 19:04:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KB_WAM_FROM_NAME_SINGLEWORD, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=Hx-languages-length:2341 X-HELO: relay1.mentorg.com Date: Thu, 30 Nov 2017 19:04:47 +0000 From: Joseph Myers To: Subject: Use declare_mgen_alias in m68k templates [committed] Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Some m68k libm functions have their own templates replacing the generic math/ ones but using the type-generic template machinery. These currently define function aliases directly using weak_alias. In preparation for additional _FloatN / _FloatNx function aliases, this patch changes them to use declare_mgen_alias for creating aliases instead. Tested with build-many-glibcs.py that installed stripped shared libraries for m68k-linux-gnu are unchanged by the patch. Committed. 2017-11-30 Joseph Myers * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use declare_mgen_alias instead of weak_alias. * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise. * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise. * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise. diff --git a/sysdeps/m68k/m680x0/fpu/s_ccosh_template.c b/sysdeps/m68k/m680x0/fpu/s_ccosh_template.c index 26d11fc..502679b 100644 --- a/sysdeps/m68k/m680x0/fpu/s_ccosh_template.c +++ b/sysdeps/m68k/m680x0/fpu/s_ccosh_template.c @@ -65,4 +65,4 @@ s(__ccosh) (CFLOAT x) return retval; } -weak_alias (s(__ccosh), s(ccosh)) +declare_mgen_alias (__ccosh, ccosh) diff --git a/sysdeps/m68k/m680x0/fpu/s_cexp_template.c b/sysdeps/m68k/m680x0/fpu/s_cexp_template.c index 17cf145..755e724 100644 --- a/sysdeps/m68k/m680x0/fpu/s_cexp_template.c +++ b/sysdeps/m68k/m680x0/fpu/s_cexp_template.c @@ -126,4 +126,4 @@ s(__cexp) (CFLOAT x) return retval; } -weak_alias (s(__cexp), s(cexp)) +declare_mgen_alias (__cexp, cexp) diff --git a/sysdeps/m68k/m680x0/fpu/s_csin_template.c b/sysdeps/m68k/m680x0/fpu/s_csin_template.c index be72208..bfcba12 100644 --- a/sysdeps/m68k/m680x0/fpu/s_csin_template.c +++ b/sysdeps/m68k/m680x0/fpu/s_csin_template.c @@ -56,4 +56,4 @@ s(__csin) (CFLOAT x) return retval; } -weak_alias (s(__csin), s(csin)) +declare_mgen_alias (__csin, csin) diff --git a/sysdeps/m68k/m680x0/fpu/s_csinh_template.c b/sysdeps/m68k/m680x0/fpu/s_csinh_template.c index f518045..c4915cb 100644 --- a/sysdeps/m68k/m680x0/fpu/s_csinh_template.c +++ b/sysdeps/m68k/m680x0/fpu/s_csinh_template.c @@ -59,4 +59,4 @@ s(__csinh) (CFLOAT x) return retval; } -weak_alias (s(__csinh), s(csinh)) +declare_mgen_alias (__csinh, csinh)