From patchwork Mon Aug 14 09:58:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 801131 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-460300-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="vj3Kfegw"; dkim-atps=neutral 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 3xWBTN3tFTz9s7v for ; Mon, 14 Aug 2017 20:20:54 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=F31zTqARFMNXrmNa6 Ikm/dhvzbDJnP18xbwngeeumvsyOjP1VJAMP6dH8DFXLdTg77LZBdLNzn5beRBoe JI3MnO6AVH+e3/69zL8825kAnRNU69+fjiFrsx1JR5CTV0eqN8/sflUClyvpqWsu vyphPjWVjWXcsGwMrXBucC/RJo= 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 :subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=h8DeuIwBlo4awnbaOqSEJnx RRHI=; b=vj3KfegwByqOrLGVeB2wSrB59Q7ovntC1blY6CSfK8qd+1W/CKt0b7n RiuSEJGFvVxUVdLJXa5QJADkpXjo4mSLAaoRuRIyP71zqDGHBDZ6CrrbNp5WdcHP vAkhx0pN1dYrItcuDIKRXDXyKJLOO3S9BWGz2sGq4XVWyCz/H7MM= Received: (qmail 105646 invoked by alias); 14 Aug 2017 10:04:42 -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 128245 invoked by uid 89); 14 Aug 2017 09:58:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*r:Client, 7777 X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.163) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 14 Aug 2017 09:58:41 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT3ol15ykJcYwTPLBCxG2NAI0FdGO X-RZG-CLASS-ID: mo00 Received: from [192.168.0.123] (ip5f585828.dynamic.kabel-deutschland.de [95.88.88.40]) by smtp.strato.de (RZmta 41.1 DYNA|AUTH) with ESMTPSA id e06b13t7E9wbyPD (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 14 Aug 2017 11:58:37 +0200 (CEST) Subject: [patch,avr,committed] Fix PR81754 To: gcc-patches Cc: =?UTF-8?Q?Martin_Li=c5=a1ka?= , Denis Chertykov References: <232adf30-6fdf-1a30-eb82-c58cbee485b0@gjlay.de> <9319e4bf-21de-cfaf-0068-efcebc6e6a21@gjlay.de> <2a12a08a-f111-7159-fcdf-29ba4c37c77e@suse.cz> From: Georg-Johann Lay Message-ID: <8fff362e-66c4-c6be-9608-cbf247d752a9@gjlay.de> Date: Mon, 14 Aug 2017 11:58:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <2a12a08a-f111-7159-fcdf-29ba4c37c77e@suse.cz> X-IsSubscribed: yes https://gcc.gnu.org/r251085 Fixed mentioned avr build hiccup that occurs when used with Binutils < 2.29. Johann PR target/81754 PR target/81268 * config/avr/avr.opt (mgas-isr-prologues): New Var avr_gasisr_prologues. * config/avr/avr.md (gasisr, *gasisr): Use it instead of TARGET_GASISR_PROLOGUES. * config/avr/avr.c (avr_option_override): Same. (avr_pass_pre_proep::execute): Same. Index: config/avr/avr.c =================================================================== --- config/avr/avr.c (revision 251082) +++ config/avr/avr.c (working copy) @@ -777,7 +777,7 @@ avr_option_override (void) warning (OPT_fPIE, "-fPIE is not supported"); #if !defined (HAVE_AS_AVR_MGCCISR_OPTION) - TARGET_GASISR_PROLOGUES = 0; + avr_gasisr_prologues = 0; #endif if (!avr_set_core_architecture()) @@ -1459,7 +1459,7 @@ public: virtual unsigned int execute (function *fun) { - if (TARGET_GASISR_PROLOGUES + if (avr_gasisr_prologues // Whether this function is an ISR worth scanning at all. && !fun->machine->is_no_gccisr && (fun->machine->is_interrupt Index: config/avr/avr.md =================================================================== --- config/avr/avr.md (revision 251082) +++ config/avr/avr.md (working copy) @@ -5819,7 +5819,7 @@ (define_expand "gasisr" (set (match_dup 2) (unspec_volatile:BLK [(match_dup 2)] UNSPECV_MEMORY_BARRIER))])] - "TARGET_GASISR_PROLOGUES" + "avr_gasisr_prologues" { operands[2] = gen_rtx_MEM (BLKmode, gen_rtx_SCRATCH (Pmode)); MEM_VOLATILE_P (operands[2]) = 1; @@ -5833,7 +5833,7 @@ (define_insn "*gasisr" (unspec_volatile:HI [(reg:HI REG_SP)] UNSPECV_GASISR)) (set (match_operand:BLK 2) (unspec_volatile:BLK [(match_dup 2)] UNSPECV_MEMORY_BARRIER))] - "TARGET_GASISR_PROLOGUES" + "avr_gasisr_prologues" "__gcc_isr %0" [(set_attr "length" "6,5") (set_attr "cc" "clobber")]) Index: config/avr/avr.opt =================================================================== --- config/avr/avr.opt (revision 251082) +++ config/avr/avr.opt (working copy) @@ -27,7 +27,7 @@ Target RejectNegative Joined Var(avr_mmc -mmcu=MCU Select the target MCU. mgas-isr-prologues -Target Report Mask(GASISR_PROLOGUES) +Target Report Var(avr_gasisr_prologues) UInteger Init(0) Allow usage of __gcc_isr pseudo instructions in ISR prologues and epilogues. mn-flash=