From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1083 invoked by alias); 9 Mar 2016 10:41:22 -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 1070 invoked by uid 89); 9 Mar 2016 10:41:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=BAYES_00,KAM_COUK,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=proprietary, grateful, motivated, PRINT X-HELO: ducie-dc1.codethink.co.uk Received: from ducie-dc1.codethink.co.uk (HELO ducie-dc1.codethink.co.uk) (185.25.241.215) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 09 Mar 2016 10:41:19 +0000 Received: from localhost (localhost [127.0.0.1]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTP id 8EB234601D8 for ; Wed, 9 Mar 2016 10:41:15 +0000 (GMT) Received: from ducie-dc1.codethink.co.uk ([127.0.0.1]) by localhost (ducie-dc1.codethink.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d-HSQYY5-IRJ for ; Wed, 9 Mar 2016 10:41:12 +0000 (GMT) Received: from [10.24.2.136] (82-70-136-246.dsl.in-addr.zen.co.uk [82.70.136.246]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTPSA id 8FBAF460EEF for ; Wed, 9 Mar 2016 10:41:12 +0000 (GMT) Subject: Re: DEC Extension Support for gcc-4.8.3 To: fortran@gcc.gnu.org References: <56DE1891.60900@earthlink.net> <56DF0FBF.3040605@charter.net> From: Jim MacArthur Message-ID: <56DFFDC7.9010303@codethink.co.uk> Date: Wed, 09 Mar 2016 10:41:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 MIME-Version: 1.0 In-Reply-To: <56DF0FBF.3040605@charter.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00032.txt.bz2 On 08/03/16 17:45, Jerry DeLisle wrote: > On 03/07/2016 04:10 PM, W Spector wrote: >> Allowing $ in variable names was an old, old, ('60s/'70s) IBM mainframe >> extension, and maybe others of the era too. I first encountered it in 1978 or >> so. So definitely pre-VAX. > > IMHO for some of these things on legacy code, judicious use of editors like sed > should be used on the source codes and just bring them out of the dark ages. It > really is not that hard. If the code is that important then just do it. > Hacking compilers out of laziness just does not seem right. > > I am not saying anyone is lazy and do not intend to offend, I fully understand > what it is like to have over bearing workloads, but we should at least do a > reality check. > We've investigated automatic transforms on our source code and couldn't find any way to do it with regexes, with the exception of TYPE being used as PRINT, which we did manage to transform quite easily. Everything else we've found needs more context, and some things (like UNION & MAP) are impossible. (If you were just talking about '$' though, I can't say I've encountered that). Making the source code standards-compliant is the correct solution, no doubt about that. However, we have users who are paying what I imagine is quite a lot for proprietary compilers and so are well motivated to get away from them but don't feel they can fix up all their source to be standard compliant. Hence, we maintain a fork of GCC with our own set of DEC & Sun extensions which overlaps somewhat with these patches Fritz has sent. This is the most practical solution we've got at the moment. We're very happy to send in patches for these if there's a general consensus that legacy features are wanted. In the meantime I'm very grateful to Fritz for producing this set and I will review it while testing it out on our code.