From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105328 invoked by alias); 22 Sep 2017 05:03:55 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 62862 invoked by uid 89); 22 Sep 2017 05:02:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-yw0-f176.google.com Received: from mail-yw0-f176.google.com (HELO mail-yw0-f176.google.com) (209.85.161.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 22 Sep 2017 05:02:47 +0000 Received: by mail-yw0-f176.google.com with SMTP id p10so29686ywh.8; Thu, 21 Sep 2017 22:02:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=gyZCaTsJSGKUWh/h+netB9N9xR7Tph1j3VxEKh/iYuo=; b=WDfni70pGnL14+rEt/XYLkqnhLPpN2LEpd+8ze9PNFcG5Y5jfqxzj78SfuU+oNsU2f 3yJxORB1lb8r/aXA2Mrx7ay9cJvvgON4CdCvckubb9Ht9kZr4RJ7WZEXf/Ac5VAbqaXP UPq/UpHYRBXnz7Q+Pkiun+zaB6FPzEK7+jBMFu8qzZ2ynlq7IpCwLlZie9oa9b/Z9H5J lmrVlx9poMVv0T0wLgS53HZkIiVY3Hyl6n3p/hNwyDjD1yIk0WRManwc2YqAr3MiPxZO cyaJsRMsgRctR97jYjIq48b9ZuGiXrdBviq/rivhT95NyQDaWqW2nH2BC+cC9Ta4Vkqu 5svQ== X-Gm-Message-State: AHPjjUglBYdSaNo5juHyoRmNd/SHHZEJ4TuEBH18ZHeQnDnZlsvZt+oy O91cp+4dhezc97+Ld89uOgqu38/yFcf3yWeTN1vbTQ== X-Google-Smtp-Source: AOwi7QDXA0WYdOuzyJd1I/9HTODDs32823k56Ui4RYwnvHUtRhGlZ6QdvFt6MDf9Jlksn6Y9notYgtKKJHOXiOTurH4= X-Received: by 10.129.178.69 with SMTP id q66mr3039075ywh.290.1506056565764; Thu, 21 Sep 2017 22:02:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.162.148 with HTTP; Thu, 21 Sep 2017 22:02:45 -0700 (PDT) In-Reply-To: <20170921203854.GA13539@troutmask.apl.washington.edu> References: <20170918045045.GA79226@troutmask.apl.washington.edu> <20170918140823.GA83251@troutmask.apl.washington.edu> <20170921203854.GA13539@troutmask.apl.washington.edu> From: Janus Weil Date: Fri, 22 Sep 2017 05:03:00 -0000 Message-ID: Subject: Re: [Patch, Fortran] PR 82143: add a -fdefault-real-16 flag To: Steve Kargl Cc: gfortran , gcc-patches Content-Type: multipart/mixed; boundary="94eb2c1462689d53f90559c01e2d" X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00078.txt.bz2 --94eb2c1462689d53f90559c01e2d Content-Type: text/plain; charset="UTF-8" Content-length: 1787 2017-09-21 22:38 GMT+02:00 Steve Kargl : > On Thu, Sep 21, 2017 at 09:10:42AM +0200, Janus Weil wrote: >> Attached is an updated patch, where I'm adding -fdefault-real-10 >> according to Steve's suggestion. As with -fdefault-real-8 and >> -fdefault-real-16, I'm choosing to set the double kind to 16 in this >> case. Also I'm renaming flag_default_real to flag_default_real_8 (for >> symmetry reasons and to make the code more readable). Finally I'm >> removing the restriction that -fdefault-double-8 must occur together >> with -fdefault-real-8. It may be useful on its own and should be >> combinable with the new flags. >> >> Ok for trunk? >> > > Although I would prefer these options to be deprecated, > I did read the patch and it appears to be correct. So, > I suppose it's ok for trunk. Thanks, Steve. I'm attaching the updated ChangeLog and the two test cases for the two new flags. Since this appears to be a somewhat controversial feature, I'll wait two more days to allow for others to contribute their feedback (positive or negative). I'll commit on Sunday if I hear nothing until then. Cheers, Janus 2017-09-22 Janus Weil PR fortran/82143 * lang.opt: Add the options -fdefault-real-10 and -fdefault-real-16. Rename flag_default_real to flag_default_real_8. * invoke.texi: Add documentation. * module.c (use_iso_fortran_env_module): flag_default_real is renamed. * trans-types.c (gfc_init_kinds): Implement the flags -fdefault-real-10 and -fdefault-real-16. Make -fdefault-double-8 work without -fdefault-real-8. 2017-09-22 Janus Weil PR fortran/82143 * gfortran.dg/promotion_3.f90: New test case. * gfortran.dg/promotion_4.f90: New test case. --94eb2c1462689d53f90559c01e2d Content-Type: text/x-fortran; charset="US-ASCII"; name="promotion_3.f90" Content-Disposition: attachment; filename="promotion_3.f90" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j7vf4qmg0 Content-length: 464 ISB7IGRnLWRvIHJ1biB9CiEgeyBkZy1vcHRpb25zICItZmRlZmF1bHQtcmVh bC0xNiIgfQohCiEgUFIgODIxNDM6IGFkZCBhIC1mZGVmYXVsdC1yZWFsLTE2 IGZsYWcKIQohIENvbnRyaWJ1dGVkIGJ5IEphbnVzIFdlaWwgPGphbnVzQGdj Yy5nbnUub3JnPgoKcmVhbCA6OiByCnJlYWwoa2luZD00KSA6OiByNApyZWFs KGtpbmQ9OCkgOjogcjgKZG91YmxlIHByZWNpc2lvbiA6OiBkCmlmIChraW5k KHI0KSAvPSA0KSBjYWxsIGFib3J0CmlmIChraW5kKHI4KSAvPSA4KSBjYWxs IGFib3J0CmlmIChraW5kKHIpIC89IDE2KSBjYWxsIGFib3J0CmlmIChraW5k KGQpIC89IDE2KSBjYWxsIGFib3J0CmVuZAo= --94eb2c1462689d53f90559c01e2d Content-Type: text/x-fortran; charset="US-ASCII"; name="promotion_4.f90" Content-Disposition: attachment; filename="promotion_4.f90" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j7vf4qmv1 Content-length: 464 ISB7IGRnLWRvIHJ1biB9CiEgeyBkZy1vcHRpb25zICItZmRlZmF1bHQtcmVh bC0xMCIgfQohCiEgUFIgODIxNDM6IGFkZCBhIC1mZGVmYXVsdC1yZWFsLTE2 IGZsYWcKIQohIENvbnRyaWJ1dGVkIGJ5IEphbnVzIFdlaWwgPGphbnVzQGdj Yy5nbnUub3JnPgoKcmVhbCA6OiByCnJlYWwoa2luZD00KSA6OiByNApyZWFs KGtpbmQ9OCkgOjogcjgKZG91YmxlIHByZWNpc2lvbiA6OiBkCmlmIChraW5k KHI0KSAvPSA0KSBjYWxsIGFib3J0CmlmIChraW5kKHI4KSAvPSA4KSBjYWxs IGFib3J0CmlmIChraW5kKHIpIC89IDEwKSBjYWxsIGFib3J0CmlmIChraW5k KGQpIC89IDE2KSBjYWxsIGFib3J0CmVuZAo= --94eb2c1462689d53f90559c01e2d--