{"id":809324,"url":"http://patchwork.ozlabs.org/api/patches/809324/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/20170903154719.GA18593@SDF.ORG/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/projects/17/?format=json","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170903154719.GA18593@SDF.ORG>","list_archive_url":null,"date":"2017-09-03T15:47:19","name":"[alpha] Move linux-specific specfile definitions to linux.h","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"33526e69a3670ef601323667bd12d5c00b198f4a","submitter":{"id":69881,"url":"http://patchwork.ozlabs.org/api/people/69881/?format=json","name":"Maya Rashish","email":"coypu@sdf.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/20170903154719.GA18593@SDF.ORG/mbox/","series":[{"id":1250,"url":"http://patchwork.ozlabs.org/api/series/1250/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=1250","date":"2017-09-03T15:47:19","name":"[alpha] Move linux-specific specfile definitions to linux.h","version":1,"mbox":"http://patchwork.ozlabs.org/series/1250/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/809324/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809324/checks/","tags":{},"related":[],"headers":{"Return-Path":"<gcc-patches-return-461362-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461362-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"vEZ4sB5t\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xlcn82RXdz9t33\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon,  4 Sep 2017 01:47:38 +1000 (AEST)","(qmail 46149 invoked by alias); 3 Sep 2017 15:47:29 -0000","(qmail 45959 invoked by uid 89); 3 Sep 2017 15:47:29 -0000","from mx.sdf.org (HELO mx.sdf.org) (205.166.94.20) by\n\tsourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tSun, 03 Sep 2017 15:47:24 +0000","from sdf.org (IDENT:coypu@sdf.lonestar.org [205.166.94.15])\tby\n\tmx.sdf.org (8.15.2/8.14.5) with ESMTPS id\n\tv83FlKo1011657\t(using TLSv1.2 with cipher\n\tDHE-RSA-AES256-GCM-SHA384 (256 bits) verified NO);\n\tSun, 3 Sep 2017 15:47:21 GMT","(from coypu@localhost)\tby sdf.org (8.15.2/8.12.8/Submit) id\n\tv83FlJUo028385; Sun, 3 Sep 2017 15:47:19 GMT"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:from:to:cc:subject:message-id:mime-version:content-type; q=dns;\n\ts=default; b=x+DTHXZ65JcagG9OvHTtQ/TAWuBTAW0aVgUGiImBi7gQXJy5vH\n\tsbRS4W37GeeRVgTrVSdgEmQoy+T9gcpElxk5sIpXI/lDIeuTcZ6nZhKOK5YdWLIw\n\ttXfrGdR+osVbZtDlzg2u0QzujX8VMd/PE/Le2DulvN55WwLTi7VjozNxE=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:from:to:cc:subject:message-id:mime-version:content-type; s=\n\tdefault; bh=7vzHrTfDIBs/+alF+YxYkZrY2Hg=; b=vEZ4sB5tfV+Reg+sPiT8\n\t3eBn9E/7NRJ/ZZmOhGBPCYGxxtz6JyIvGpUYiVEJX2ivirSWmtPbdHSYTQInH2RC\n\tyZIrLnFo53hr7gDtNtXm0bd+x1PK1seC4vVrAl4UJl/wdx8TXoINGynrNvuU1W4e\n\tjNRH0tAJpXb8U8kcwu5iJts=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-24.6 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tKAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE,\n\tRP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=","X-HELO":"mx.sdf.org","Date":"Sun, 3 Sep 2017 15:47:19 +0000","From":"Maya Rashish <coypu@sdf.org>","To":"gcc-patches@gcc.gnu.org","Cc":"coypu@sdf.org, krister.walfridsson@gmail.com, rth@twiddle.net","Subject":"[PATCH, alpha] Move linux-specific specfile definitions to linux.h","Message-ID":"<20170903154719.GA18593@SDF.ORG>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","User-Agent":"Mutt/1.8.3 (2017-05-23)"},"content":"Hi, in my first attempt to fix a build issue I found that the order of\ntm files matters, would prefer to move linux-looking parts of elf.h to\nlinux.h.\n\nother targets that include alpha/elf.h besides linux:\nopenbsd:  provides their own STARTFILE_SPEC and ENDFILE_SPEC in later file:\nhttps://github.com/openbsd/ports/blob/master/lang/gcc/6/patches/patch-gcc_config_alpha_openbsd_h\nfreebsd:  dropped alpha in freebsd 7.0 (2008)\n\nBuilt trunk on netbsd/alpha (until I out of spaced with a working stage3\nafter two days :-)) with some extra modifications.\n\n---\n gcc/config/alpha/elf.h   | 26 --------------------------\n gcc/config/alpha/linux.h | 26 ++++++++++++++++++++++++++\n 2 files changed, 26 insertions(+), 26 deletions(-)","diff":"diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h\nindex c109b07c5..8a435dbc0 100644\n--- a/gcc/config/alpha/elf.h\n+++ b/gcc/config/alpha/elf.h\n@@ -100,32 +100,6 @@ do {\t\t\t\t\t\t\t\t\t\\\n     ASM_OUTPUT_DEF (FILE, alias, name);\t\t\t\t\\\n   } while (0)\n \n-/* Provide a STARTFILE_SPEC appropriate for ELF.  Here we add the\n-   (even more) magical crtbegin.o file which provides part of the\n-   support for getting C++ file-scope static object constructed\n-   before entering `main'.  */\n-\n-#undef\tSTARTFILE_SPEC\n-#ifdef HAVE_LD_PIE\n-#define STARTFILE_SPEC \\\n-  \"%{!shared: %{pg|p:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}}\\\n-   crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}\"\n-#else\n-#define STARTFILE_SPEC \\\n-  \"%{!shared: %{pg|p:gcrt1.o%s;:crt1.o%s}}\\\n-   crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}\"\n-#endif\n-\n-/* Provide a ENDFILE_SPEC appropriate for ELF.  Here we tack on the\n-   magical crtend.o file which provides part of the support for\n-   getting C++ file-scope static object constructed before entering\n-   `main', followed by a normal ELF \"finalizer\" file, `crtn.o'.  */\n-\n-#undef\tENDFILE_SPEC\n-#define ENDFILE_SPEC \\\n-  \"%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \\\n-   %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s\"\n-\n /* This variable should be set to 'true' if the target ABI requires\n    unwinding tables even when exceptions are not used.  */\n #define TARGET_UNWIND_TABLES_DEFAULT true\ndiff --git a/gcc/config/alpha/linux.h b/gcc/config/alpha/linux.h\nindex e15013eb9..cd0099779 100644\n--- a/gcc/config/alpha/linux.h\n+++ b/gcc/config/alpha/linux.h\n@@ -78,6 +78,32 @@ along with GCC; see the file COPYING3.  If not see\n \n #define TARGET_POSIX_IO\n \n+/* Provide a STARTFILE_SPEC appropriate for ELF.  Here we add the\n+   (even more) magical crtbegin.o file which provides part of the\n+   support for getting C++ file-scope static object constructed\n+   before entering `main'.  */\n+\n+#undef\tSTARTFILE_SPEC\n+#ifdef HAVE_LD_PIE\n+#define STARTFILE_SPEC \\\n+  \"%{!shared: %{pg|p:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}}\\\n+   crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}\"\n+#else\n+#define STARTFILE_SPEC \\\n+  \"%{!shared: %{pg|p:gcrt1.o%s;:crt1.o%s}}\\\n+   crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}\"\n+#endif\n+\n+/* Provide a ENDFILE_SPEC appropriate for ELF.  Here we tack on the\n+   magical crtend.o file which provides part of the support for\n+   getting C++ file-scope static object constructed before entering\n+   `main', followed by a normal ELF \"finalizer\" file, `crtn.o'.  */\n+\n+#undef\tENDFILE_SPEC\n+#define ENDFILE_SPEC \\\n+  \"%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \\\n+   %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s\"\n+\n #define LINK_GCC_C_SEQUENCE_SPEC \\\n   \"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}\"\n \n","prefixes":["alpha"]}