From patchwork Mon Jun 20 10:54:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 637934 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 3rY7724q9hz9sdb for ; Mon, 20 Jun 2016 20:55:26 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=naoE7VI7; 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:cc :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=xkNc8c/XaUCw5HDW VQ2Xw5OpLpo9dmcbs3dSx9hUlVbvWqRis+zJJwLdY8DE/Uqe6z0ZoI7pok0UReE7 7agvm482qGTtKy2/yBhvn5rtTc9KpxwekuM+MAA9TajYbdq4h4ltDf9BGy2xy+gZ nk8MTSd7sw4dZHCPN+dXwpF7ISg= 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 :content-transfer-encoding; s=default; bh=gDlIEU9Jwnih0pemy+6agi WgAog=; b=naoE7VI7Cm32DLdhDGW+opIOTlJ6IwOCGZ3siimGqXobxTGtzgFJnK 7b6n3Ym53jQ0F0c/j0sbyq6jfGfiNxr0VqPqo5En6s0a0kBaupBrC9xvFvCe7AmF GxIl7MCaNinpaGUM/N14Yj9y+Nu7WcrpR8/dzC+MVaxoFJ7DFt9yY= Received: (qmail 26720 invoked by alias); 20 Jun 2016 10:55: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 26706 invoked by uid 89); 20 Jun 2016 10:55:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=H*r:ip*192.168.0.123, GET_CODE, get_code, REGNO 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.160) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 20 Jun 2016 10:55:09 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT3ol15ykJcYwTPLBCxG2PQt7BpaBF2I= X-RZG-CLASS-ID: mo00 Received: from [192.168.0.123] (ip5f5871e3.dynamic.kabel-deutschland.de [95.88.113.227]) by smtp.strato.de (RZmta 38.6 DYNA|AUTH) with ESMTPSA id D057a9s5KAt2WNQ (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 20 Jun 2016 12:55:02 +0200 (CEST) To: GCC Patches Cc: Denis Chertykov From: Georg-Johann Lay Subject: [avr,trunk,committed]: Fix obvious build warning. Message-ID: Date: Mon, 20 Jun 2016 12:54:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 X-IsSubscribed: yes http://gcc.gnu.org/r237588 Installed the following obvious patch to fix "format not a string literal and no format arguments [-Wformat-security]" build warning. Johann * config/avr/avr.c (avr_print_operand): Fix "format not a string literal" build warnings. (avr_print_operand_address): Dito. Index: config/avr/avr.c =================================================================== --- config/avr/avr.c (revision 237587) +++ config/avr/avr.c (working copy) @@ -2170,7 +2170,7 @@ avr_print_operand_address (FILE *file, m switch (GET_CODE (addr)) { case REG: - fprintf (file, ptrreg_to_str (REGNO (addr))); + fprintf (file, "%s", ptrreg_to_str (REGNO (addr))); break; case PRE_DEC: @@ -2284,12 +2284,12 @@ avr_print_operand (FILE *file, rtx x, in else if (code == 'E' || code == 'F') { rtx op = XEXP(x, 0); - fprintf (file, reg_names[REGNO (op) + ef]); + fprintf (file, "%s", reg_names[REGNO (op) + ef]); } else if (code == 'I' || code == 'J') { rtx op = XEXP(XEXP(x, 0), 0); - fprintf (file, reg_names[REGNO (op) + ij]); + fprintf (file, "%s", reg_names[REGNO (op) + ij]); } else if (REG_P (x)) { @@ -2298,7 +2298,7 @@ avr_print_operand (FILE *file, rtx x, in else if (code == 'r' && REGNO (x) < 32) fprintf (file, "%d", (int) REGNO (x)); else - fprintf (file, reg_names[REGNO (x) + abcd]); + fprintf (file, "%s", reg_names[REGNO (x) + abcd]); } else if (CONST_INT_P (x)) {