From patchwork Wed Dec 18 15:36:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 1212538 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-516238-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gjlay.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="R8+Xh1Zd"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gjlay.de header.i=@gjlay.de header.b="HHOcePBP"; 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 47dJyC1Kf0z9sSL for ; Thu, 19 Dec 2019 02:36:17 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=VFvBYGorGUahqmDlpRnchIVsxY6v5k+26oZSgXwRWQqeIJ24Jq yXclJSbY88L2RomzwNUK5td+P8p2nfDUsKaso2j1zR2czDGUGRkwEbjx3KNj1cad VcUpmtmERs/0c/BoU9kcu2tOF38clXKX3uRZWXI9YnKATFXixgV7gf+as= 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:cc :from:subject:message-id:date:mime-version:content-type; s= default; bh=Fn4/j24RmkbuxUs2AC5njBdcTXA=; b=R8+Xh1Zd7C1fsK0mNNDS TuwxUpIVKfc+SdjPyx3wwIQaOxQxkBU2crcY4C/6p1y2HY5aDStdbaTf/odhmu45 sVKuBL/raqyZfyOeQO5BSYhVI4mV++ufIqEUOq+QfBxYkQlmA7Ur3VCYslYHw/aC Q3UHHVTeuqzWkOBAn9GibZM= Received: (qmail 50730 invoked by alias); 18 Dec 2019 15:36:10 -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 50719 invoked by uid 89); 18 Dec 2019 15:36:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=injecting, accomplished 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.219) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Dec 2019 15:36:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1576683366; s=strato-dkim-0002; d=gjlay.de; h=Date:Message-ID:Subject:From:Cc:To:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=JH2nNbdsgoCHTxUNq/HHEGSzC2KpVb48zzYz8Fr1cog=; b=HHOcePBPeoYhf7WvrHHIPCOLEysUadJ4iYcUDdxMZgi/27Xhl5QzZ9jD+b9qcK6j4O q1ogW9V4H5/voB0gE7zz5LdX2gNk3IeSX42kUvSP7q0k/09uXFNLLq0N46i7iDg3m8nA 0Xd51Go77kwkvCBh1ODtrFjbL6ijcXPXk285AR/WywR7qSf5fpHM7UiupnHQ8Ggqo/uv MkBbebASNuJDMEulwGnYajSDUtZzHHAam8P0yD/W5F1c5prrgRx8IiO2+J/VjV37DmfZ NWcp1Iq72kManFJ5dn4fSnQjVwLQzT0529NFwE3xwVww1zgJwqsf7ubWzwOG0qbBLBjo eP3g== Received: from [192.168.22.245] by smtp.strato.de (RZmta 46.0.7 AUTH) with ESMTPSA id g012f5vBIFa66D8 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)) (Client did not present a certificate); Wed, 18 Dec 2019 16:36:06 +0100 (CET) To: GCC Patches Cc: Denis Chertykov From: Georg-Johann Lay Subject: [patch][avr] New option -nodevicespecs to omit -specs=... in self specs. Message-ID: Date: Wed, 18 Dec 2019 16:36:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 X-IsSubscribed: yes Hi, currently device support in avr-gcc is accomplished by injecting a specs file my means of -specs=... in dirver self specs. This patch adds a new avr driver option to omit the addition of respective -specs option so give the user more freedom. Ok to apply? Johann * config/avr/avr.opt (-nodevicespecs): New driver option. * config/avr/driver-avr.c (avr_devicespecs_file): Only issue "-specs=device-specs/..." if that option is not set. * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document. Index: config/avr/avr.opt =================================================================== --- config/avr/avr.opt (revision 279522) +++ config/avr/avr.opt (working copy) @@ -118,3 +118,7 @@ Assume that all data in static storage c nodevicelib Driver Target Report RejectNegative Do not link against the device-specific library lib.a. + +nodevicespecs +Driver Target Report RejectNegative +Do not use the device-specific specs file device-specs/specs-. Index: config/avr/driver-avr.c =================================================================== --- config/avr/driver-avr.c (revision 279522) +++ config/avr/driver-avr.c (working copy) @@ -26,8 +26,8 @@ along with GCC; see the file COPYING3. #include "diagnostic.h" #include "tm.h" -// Remove -nodevicelib from the command line if not needed -#define X_NODEVLIB "%