Re: [fpc-devel] Wrong debug info when using clang backend

2023-12-13 Thread Adriaan van Os via fpc-devel
Michael Van Canneyt via fpc-devel wrote: Maybe a single {$PRAGMA XYZ} directive can be introduced to control this kind of stuff, with a fixed list of XYZ. Backends can intepret the XYZ pragmas as they see fit. Yes, a {$pragma} directive is fine for me. It seems absurd to ignore code improveme

Re: [fpc-devel] Wrong debug info when using clang backend

2023-12-13 Thread Michael Van Canneyt via fpc-devel
On Wed, 13 Dec 2023, Jonas Maebe via fpc-devel wrote: On 09/12/2023 13:35, Adriaan van Os via fpc-devel wrote: Jonas Maebe via fpc-devel wrote: So if/when we would get FPC equivalents of such directives, I could translate those to LLVM IR as well. Then I suggest the following (and I can p

Re: [fpc-devel] Wrong debug info when using clang backend

2023-12-13 Thread Jonas Maebe via fpc-devel
On 09/12/2023 13:35, Adriaan van Os via fpc-devel wrote: Jonas Maebe via fpc-devel wrote: So if/when we would get FPC equivalents of such directives, I could translate those to LLVM IR as well. Then I suggest the following (and I can prepare a patch to the code and docs if it were to be accep