[Info-vax] [OT?] Should compiler warnings be treated as errors ?
Arne Vajhøj
arne at vajhoej.dk
Mon Sep 13 14:02:10 EDT 2021
On 9/13/2021 1:53 PM, Simon Clubley wrote:
> On 2021-09-13, John Reagan <xyzzy1959 at gmail.com> wrote:
>> On Sunday, September 12, 2021 at 9:04:00 AM UTC-4, Simon Clubley wrote:
>>> OTOH, going the other way, I wonder if the LLVM compilers (with the
>>> normal LLVM frontends instead of hybrid GEM frontend/LLVM backend)
>>> will find things in the VMS source code that DEC C might have missed.
>>
>> Compiler(S) plural?
>>
>
> Yes, although I should have expanded on the explicit reference to DEC C.
> Don't you have Fortran code within the VMS code base ?
>
> I did think of Pascal as well but I don't think there's a production-ready
> Pascal frontend for LLVM, although Free Pascal appears to be doing some
> initial work with LLVM.
Current status:
https://wiki.freepascal.org/LLVM
>> Are you asking could we take OpenVMS C source code and run it through the clang
>> compiler in "C mode"? That probably won't work in general as the code often uses
>> features not in clang (#pragma linkage, /STANDARD=VAXC, etc.). There might
>> be some C code that doesn't rely on such things that could be compiled with
>> "clang-in-C-mode" but I haven't thought that far into the future.
>>
>
> Yes, that's what I was thinking of, and the same for any Fortran code
> as well as any Pascal code _if_ there turned out to be a version of
> Pascal for LLVM after all that supports the VMS Pascal syntax.
VMS Pascal would require VSI to do something.
Apple/Borland/FPC went in a different direction.
Arne
More information about the Info-vax
mailing list