From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15826 invoked by alias); 3 Apr 2011 18:04:30 -0000 Received: (qmail 15818 invoked by uid 22791); 3 Apr 2011 18:04:30 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 03 Apr 2011 18:04:25 +0000 From: "inform at tiker dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/48426] New: [patch] Quad precision promotion X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: inform at tiker dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 03 Apr 2011 18:04:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg00217.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48426 Summary: [patch] Quad precision promotion Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: inform@tiker.net The attached patch implements the options -finteger4-integer-8 -freal-4-real-8 -freal-4-real-10 -freal-4-real-16 -freal-8-real-4 -freal-8-real-10 -freal-8-real-16 to implement a variety of automatic type promotions. (This is particularly helpful if one wants to quickly check whether a certain code has a bug limiting its precision away from full machine accuracy.) A similar promotion feature is available in Fujitsu compilers, see here: http://www.lahey.com/docs/fujitsu%20compiler%20option%20list.pdf (e.g. -CcR8R16) I submitted this patch before, but it seems to have gotten lost in Bugzilla. The implementation work on this was done by Zydrunas Gimbutas, not by me. Zydrunas has authorized me to submit this for inclusion in gcc.