From patchwork Wed Jun 22 06:35:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sivanupandi, Pitchumani" X-Patchwork-Id: 638984 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 3rZFGh6PKrz9s9c for ; Wed, 22 Jun 2016 16:35:56 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=Ax5lMlkh; 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:from :subject:to:references:cc:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=w/YFKtgybUV44oTqa OaUOppd3aphVK+P0Wx/23PFdOZTvTU1kdasE3gMj9/M1a2G9/D1VAuogBb8ek9h0 aF11inVG70360rU8HKZE/RDhSlhZaC9mWwC+ZxfVIeaa0J+ocKezAbMfEpUSubng bgG+mPTso2LTmP7xegYNSYaU5k= 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:from :subject:to:references:cc:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=9HNPJn+3FNAHGE0zTjN5moX mr6I=; b=Ax5lMlkhQ7j2gannJPijDns4Ztom+rZsZ7+AXBGXjikSZ/zq1quSZwf Po5faMP6OfBWFbJwl3XeFAnOUFXqjQcnDrQF63Hj3im+JpiNMJnOYsnR1lFpkHvU 75PQCB1BHF8Jud8+q0BSz4EaSzhbc0uKG1fv5LJtZ+mvCZzI6QQY= Received: (qmail 25505 invoked by alias); 22 Jun 2016 06:35:46 -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 25491 invoked by uid 89); 22 Jun 2016 06:35:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_05, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:sk:DVREDG0, HX-HELO:sk:ussmtp0, Hx-spam-relays-external:sk:nasmtp0, H*RU:sk:ussmtp0 X-HELO: ussmtp01.atmel.com Received: from nasmtp01.atmel.com (HELO ussmtp01.atmel.com) (192.199.1.245) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 22 Jun 2016 06:35:34 +0000 Received: from apsmtp01.atmel.com (10.168.254.30) by DVREDG01.corp.atmel.com (10.42.103.30) with Microsoft SMTP Server (TLS) id 14.3.235.1; Wed, 22 Jun 2016 00:35:27 -0600 Received: from PENCHT01.corp.atmel.com (10.168.5.161) by apsmtp01.corp.atmel.com (10.168.254.30) with Microsoft SMTP Server (TLS) id 14.3.235.1; Wed, 22 Jun 2016 14:40:57 +0800 Received: from [10.220.13.106] (10.168.5.13) by cas-ap.atmel.com (10.168.5.161) with Microsoft SMTP Server id 14.3.235.1; Wed, 22 Jun 2016 14:35:29 +0800 From: Pitchumani Sivanupandi Subject: Re: [patch, avr,wwwdocs] PR 58655 To: Georg-Johann Lay References: <1466504822.3012.7.camel@atmel.com> <576966A2.4060102@gjlay.de> CC: GCC Patches , Denis Chertykov Message-ID: <576A3199.3090502@atmel.com> Date: Wed, 22 Jun 2016 12:05:05 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <576966A2.4060102@gjlay.de> On Tuesday 21 June 2016 09:39 PM, Georg-Johann Lay wrote: > Pitchumani Sivanupandi schrieb: >> Attached patches add documentation for -mfract-convert-truncate option >> and add that info to release notes (gcc-4.9 changes). >> >> If OK, could someone commit please? I do not have commit access. >> >> Regards, >> Pitchumani >> >> gcc/ChangeLog >> >> 2016-06-21 Pitchumani Sivanupandi >> >> PR target/58655 >> * doc/invoke.texi (AVR Options): Document -mfract-convert-truncate >> option. >> >> --- a/wwwdocs/htdocs/gcc-4.9/changes.html >> +++ b/wwwdocs/htdocs/gcc-4.9/changes.html >> @@ -579,6 +579,14 @@ auto incr(T x) { return x++; } >> size when compiling for the M-profile processors. >> >> >> +

AVR

>> +
    >> +
  • >> + A new command-line option -mfract-convert-truncate has been added. > > tags around the option. > >> + It allows compiler to use truncation instead of rounding towards >> + 0 for fractional int types. > > "zero" instead of "0", and it's for fixed-point types, not for int types. > >> +
  • >> +
>>

IA-32/x86-64

>>
    >>
  • -mfpmath=sse is now implied by >> -ffast-math ... >> @emph{Blackfin Options} >> @gccoptlist{-mcpu=@var{cpu}@r{[}-@var{sirevision}@r{]} @gol >> @@ -14586,6 +14586,10 @@ sbiw r26, const ; X -= const >> @opindex mtiny-stack >> Only change the lower 8@tie{}bits of the stack pointer. >> >> +@item -mfract-convert-truncate >> +@opindex mfract-convert-truncate >> +Allow to use truncation instead of rounding towards 0 for fractional >> int types. > > Same here: "zero" and "fixed-point". > >> + >> @item -nodevicelib >> @opindex nodevicelib >> Don't link against AVR-LibC's device specific library >> @code{lib.a}. > Thanks Johann. Updated the patches. Regards, Pitchumani gcc/ChangeLog 2016-06-22 Pitchumani Sivanupandi PR target/58655 * config/avr/avr.opt (-mfract-convert-truncate): Update description. * doc/invoke.texi (AVR Options): Document it. --- a/wwwdocs/htdocs/gcc-4.9/changes.html +++ b/wwwdocs/htdocs/gcc-4.9/changes.html @@ -579,6 +579,14 @@ auto incr(T x) { return x++; } size when compiling for the M-profile processors.
+

AVR

+
    +
  • + A new command-line option -mfract-convert-truncate has been + added. It allows compiler to use truncation instead of rounding towards + zero for fractional fixed-point types. +
  • +

IA-32/x86-64

  • -mfpmath=sse is now implied by -ffast-math