aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/ada.js
Commit message (Collapse)AuthorAge
* ada: move to typescript (#4178)gh-4595Marc Poulhiès2022-10-22
| | | | | | | | Convert the ada compiler code to typescript. Signed-off-by: Marc Poulhiès <dkm@kataplop.net> Signed-off-by: Marc Poulhiès <dkm@kataplop.net> Co-authored-by: Matt Godbolt <matt@godbolt.org>
* fix ada; set apphome to allow subdir customcwdgh-3094partouf2022-05-25
|
* formatfixgh-3093partouf2022-05-25
|
* bugfix ada intel asm optionsPatrick Quist2022-05-25
|
* Ada: fix compile to binary/execute within jail (#3716)gh-3090Marc Poulhiès2022-05-25
| | | | | | Need to jump in the dedicated directory, but then GNAT may write some files that may conflict with ours: create a dedicated temp subdir to run GNAT. Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Ada: Fix inputFileName at incorrect loc for binary and execution (#3712)gh-3079Marc Poulhiès2022-05-25
| | | | | | | | | | | | | | | | When compiling to binary or running the executable, extra options are inserted, breaking some weak asumption in Ada/GNAT on where in the list is the inputFilename. Override prepareArguments() for GNAT and (more) cleanly handle the options (split between gnatmake, compiler, binder and linker). Also use 'gnatmake' as main compiler executable instead of 'gnat'. Refresh Copyright. Fixes #3709 Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Set comma-dangle to always in server code and es5 in client codegh-2532RabsRincon2022-04-26
|
* Unify comma configuration; and apply format to some files. (#3559)gh-2517Matt Godbolt2022-04-25
|
* Ada: Fix intel filter active even for cross compilers (#3318)gh-1826Marc Poulhiès2022-02-03
| | | | | | | | | | The property was incorrectly hardcoded in the AdaCompiler class. As GNAT does not have an argument-parser, we can't rely on autodetecting the -masm support. The easiest way is to simply define the intelAsm property for GNAT compilers known to support it. Fixes #3310 Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Add GNAT cross compiler from Alire project (#3294)gh-1774Marc Poulhiès2022-01-30
| | | | | | | | | Add new adarts compiler properties used to set the RTS (if needed) to be used by GNAT. This is needed as the cross compilers come with several RTS and you must provide one. Use Alire (https://alire.ada.dev/) cross compilers for ARM32 and RISC-V 64. Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Add comment for GNAT handling of command line options and enable strings (#3252)gh-1702Marc Poulhiès2022-01-25
| | | | | | | | | Add some comments around the command line options handling of GNAT. Add strings tool for Ada. Also enable binary and execution in the default config. Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Ada: new pane for GNAT Debug Tree (#3190)gh-1473Marc Poulhiès2021-12-28
| | | | | | Support for the GNAT Tree emitted by `-gnatdt` on stdout. The pane is also available in the diff tool. Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Fix source/assembly mapping when GNAT expanded code pane opened (#3177)gh-1386Marc Poulhiès2021-12-15
| | | | | | | | | | | | | | | | | | * Fix source/assembly mapping when GNAT expanded code pane opened Using -gnatDGL to get the expanded code also asks GNAT to emit debug informations pointing to the .dg file containing the expanded code, breaking CE that is using these info to map assembly and source lines. Using -gnatGL instead avoids the breaking of asm/source mapping but emits the expanded code in stdout instead of a plain file. This change replaces -gnatDGL by -gnatGL and extracts the expanded code from stdout. fixes #3171 Signed-off-by: Marc Poulhiès <dkm@kataplop.net> * fixup! Fix source/assembly mapping when GNAT expanded code pane opened
* Honour rustc flags when emitting MIR and emit both assembly and MIR in the ↵gh-1284Marc Poulhiès2021-11-21
| | | | | | | | | | | | | | | | | | | | same execution (#3116) * Honor compiler flags in rustc MIR output view * Refactor rustc/MIR execution handling Apply the same receipe as for GNAT and GCC for minimizing the number of executions for getting extra outputs (here MIR). After discussions in #3107, the way the output files are created is also changed to use the syntax `--emit KIND=PATH` (see https://doc.bccnsoft.com/docs/rust-1.36.0-docs-html/rustc/command-line-arguments.html) Signed-off-by: Marc Poulhiès <dkm@kataplop.net> * fixup! Refactor rustc/MIR execution handling Co-authored-by: Nico Lehmann <nico.lehmannm@gmail.com>
* Refactor GCC dump and GNAT expanded code creation (#3064)gh-1262Marc Poulhiès2021-11-16
| | | | | | | | | | | | | | | | Instead of having a dedicated invocation of the compilers, inject needed options in the main compilation command and do everything in one run. This should fix GNAT race condition on ALI file, save some CPU time and make the latency a bit better. This can work as long as everything can really be done in one run (eg. no incompatible options, no clash on stdout/stderr). Add optionsForBackend in base compiler class that is meant to be overloaded by compilers for injecting options based on current backend options. Use it for GCC dumps (BaseCompiler) and GNAT expanded code. Fixes #3041 References #3029 Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Refactor GCC dump handling (#3024)gh-1250Marc Poulhiès2021-11-08
| | | | | | | | | | | | | | | | | | | | | | | This change allows for only dumping a single pass (the one selected). In order to populate the list of available dumps, it now queries GCC for the enabled passes. It can still be misleading to users as a pass can be enabled but for some reason does not dump anything. In order to avoid this, the only solution seems to be to still dump all files and filter the list... This defeats the initial goal and only adds complexity for the current compilers. But this makes #2868 easier to implement (see #2985 that was a aborted first attempt) and if someday another libgccjit-based compiler is added, it could be easily hooked to this. It also changes the naming in the drop down menu. For example, instead of : '009t.omplower' it now uses 'omplower (tree)' (ie. '<pass-name> (tree|ipa|rtl)'). Fixes #3014 Signed-off-by: Marc Poulhiès <dkm@kataplop.net> Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
* Initial support for GNAT specific debug output (#3000)Marc Poulhiès2021-10-13
| | | | | | This change only gets the GNAT Debug expanded generated code (-gnatD). Signed-off-by: Marc Poulhiès <dkm@kataplop.net> Co-authored-by: Mats Larsen <me@supergrecko.com>
* Enable GCC dump for the GNAT Ada compiler (#2989)gh-1084Marc Poulhiès2021-10-04
| | | | | | | | * Enable GCC dump for the GNAT Ada compiler GNAT is part of GCC and can handle the regular GCC options for dump files. Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Use ES6 Modules (#2132)Austin Morton2020-09-26
|
* Eliminate all dynamic require statements (#2230)Austin Morton2020-09-25
|
* Add new eslint rules (#2121)Rubén Rincón Blanco2020-08-04
| | | | | | | | | | | | | | | | The largest changes here are: - enforcing single quotes for strings - enforcing trailing commas where possible In addition to those we have enabled several eslint plugins: - plugin:requirejs/recommended, to enforce some conventions in require statements - plugin:node/recommended, to enforce correct usage of various node.js APIs - plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules This PR attempts to not change code behavior when possible. In cases where fixing existing code would change semantics, a linting exclusion has been placed in the code base to silence the error. You can find these by searching for `eslint-disable-next-line`. Co-authored-by: Austin Morton <austinpmorton@gmail.com>
* enables binary+execution for ADA (#1971)Patrick Quist2020-05-20
| | | | | | | | | | | | | | | * enables binary+execution for ADA * generic bandaid for missing executables * -eS commands are not errors * support error annotations * restore original default but add exec example * re-enable rpath * add tools
* asyncMatt Godbolt2020-01-14
|
* More ada fixesMatt Godbolt2019-01-21
|
* Changes to source to conform with: make checkMitch Kennedy2018-11-23
|
* ada.amazon.properties follows fortran.amazon.propertiesMitch Kennedy2018-11-23
|
* Ada language support working locallyMitch Kennedy2018-11-23
|
* Initial Ada language support.Mitch Kennedy2018-11-17