From patchwork Sat Apr 1 16:54:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jenner X-Patchwork-Id: 746042 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vwPbq2V28z9s03 for ; Sun, 2 Apr 2017 02:54:27 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="JEFWkmuB"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=w1nX9H3FR8lv8UDG8zrXDKCKo/ogG5AqDEpLKAnlLvao3irzWY TsC8nvX6iEau+PGD9gSVr8qso+mo338vgHk8Xip3WpdqbUUjYB8Vr/3uX51n21sF bzw4r/bN6/Fj6YNIqftOuzRwO3KCYEBGIHOgGx/wWCAEdcNBtW6B4CJIY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=Y9EtjrV3jUWZcU3E9ce0QMl6fP0=; b=JEFWkmuB3T82tCzmiWDu kJot91RUx8ee66bT3US30D/T+eN5VWtwJRwY3kIsxKbHHFzno4tLJZnBXawrPGoM WrDsOo7sVaZMIsOVm98C5BA/EO0uoHKho/wgdMFQ8acduydWQpIFPliNgEWcltoj NFSrLltEe1facH+ZhOqhg78= Received: (qmail 106641 invoked by alias); 1 Apr 2017 16:54:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 106607 invoked by uid 89); 1 Apr 2017 16:54:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 01 Apr 2017 16:54:17 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1cuMI5-0005W5-0S from Andrew_Jenner@mentor.com for gcc-patches@gcc.gnu.org; Sat, 01 Apr 2017 09:54:17 -0700 Received: from [IPv6:::1] (137.202.0.87) by svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sat, 1 Apr 2017 17:54:13 +0100 To: GCC Patches From: Andrew Jenner Subject: [PATCH 9/9] c-family/c-cppbuiltin.c fix Message-ID: Date: Sat, 1 Apr 2017 17:54:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) I needed to apply the attached patch for ia16, so that __LIBGCC_JCR_SECTION_NAME__ does not get defined unless TARGET_USE_JCR_SECTION is. 2017-04-01 Andrew Jenner * c-family/g-cppbuiltin.c (c_cpp_builtins): guard __LIBGCC_JCR_SECTION_NAME__ definition with TARGET_USE_JCR_SECTION. Index: gcc/c-family/c-cppbuiltin.c =================================================================== --- gcc/c-family/c-cppbuiltin.c (revision 475331) +++ gcc/c-family/c-cppbuiltin.c (revision 475455) @@ -1119,10 +1119,12 @@ c_cpp_builtins (cpp_reader *pfile) builtin_define_with_value ("__LIBGCC_EH_FRAME_SECTION_NAME__", EH_FRAME_SECTION_NAME, 1); #endif +#if TARGET_USE_JCR_SECTION #ifdef JCR_SECTION_NAME builtin_define_with_value ("__LIBGCC_JCR_SECTION_NAME__", JCR_SECTION_NAME, 1); #endif +#endif #ifdef CTORS_SECTION_ASM_OP builtin_define_with_value ("__LIBGCC_CTORS_SECTION_ASM_OP__", CTORS_SECTION_ASM_OP, 1);