Commit Graph
359 Commits
Author SHA1 Message Date
Patrick Quist 0bc22bb148 when no files are supplied, no need to do anything special for them either (#3371) 2022-02-17 16:50:02 +01:00
Jeremy Rifkin 88bcb4f41c Show preprocessor output even if main compilation fails (#3363) 2022-02-13 16:41:51 +01:00
Jeremy Rifkin 74efcfa754 Preprocessor output panel (#3330) 2022-02-11 15:42:41 +01:00
Rubén Rincón Blanco ed90053a4c Fixes Executor pane for Python (+ possibly more) (#3354)
* Fixes executor pane for Python

It possibly also fixes it for more languages that behave like it.

* Typerrror has .message
2022-02-11 14:57:02 +01:00
Jeremy Rifkin 59ab2e1d03 C/C++ Turn off filtering when -E is provided. Suggestion for upstream issue #1380. (#3320) 2022-02-04 18:38:24 +01:00
Matt Godbolt 8bd3945bbb Upgrade eslint-plugin-unicorn, and fix issues it ponted out 2022-01-18 07:57:57 -06:00
RabsRincon 91e4f3702a Make sure asm-raw behaves on compilation errors
Closes #3198
2021-12-31 13:23:22 +01:00
Marc Poulhiès 86dd8f7814 Ada: new pane for GNAT Debug Tree (#3190)
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>
2021-12-28 15:35:11 +01:00
Marc Poulhiès d00878f2b8 Fix missing gimple and original tree dump in GCC dump
Both gimple and original dumps are missing because CE currently only checks for
dumps coming from a pass advertised in -fdump-passes.
Fix this by faking 2 lines as coming from -fdump-passes.

fixes #3180

This is a fixed version of c8b25ee53b (#3183)

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2021-12-15 22:26:41 +01:00
partouf 0de5dd9943 Revert "Fix missing gimple and original tree dump in GCC dump (#3183)"
This reverts commit c8b25ee53b.
2021-12-15 19:35:31 +00:00
Marc Poulhiès c8b25ee53b Fix missing gimple and original tree dump in GCC dump (#3183)
Both gimple and original dumps are missing because CE currently only checks for
dumps coming from a pass advertised in -fdump-passes.
Fix this by faking 2 lines as coming from -fdump-passes.

fixes #3180

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2021-12-15 19:25:16 +01:00
Marc Poulhiès 04787cef05 Fix source/assembly mapping when GNAT expanded code pane opened (#3177)
* 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
2021-12-15 19:19:35 +01:00
Patrick Quist a00f263bcd Handle filecontent and filename errors (#3170) 2021-12-10 19:52:21 +01:00
Marc Poulhiès 24693766d0 rust: HIR dump and small refactor with macro expansion (#3147)
Small refactoring for handling -Zunpretty calls:

- reuse options from main compiler invocation instead of crafting new ones.
- factor out common part.

Now also handles HIR output in a dedicated pane.
Still a lot of copy/pasting from the macro expansion.

fixes #2567

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2021-12-05 19:04:12 +01:00
Marc Poulhiès 8a6701f3a1 Fix and refactor rustc-cg-gcc GCC dump (#3128)
Conflicting changes in #3109 and #3064 left the GCC dump of rustc broken.

Reapplied the changes and refactored how the -fdump-foo-pass= option is crafted.
Instead of using stdout, use an explicit file. Beware that this won't work with
older GCC version. Regular GCC is still using the 'dump all files' instead of
the targeted option, so it's not impacted by this limitation. Only rustc-cg-gcc
is currently using this mecanism and it's using a recent libgccjit.

Really fixes #2868

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2021-11-22 00:08:02 +01:00
Marc PoulhièsandNico Lehmann 20ebcf7417 Honour rustc flags when emitting MIR and emit both assembly and MIR in the 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>
2021-11-21 14:15:30 +01:00
Rubén Rincón Blanco f7d77bd07e Modify the path include guard to fix some false-positives (#3083)
Closes #3045
2021-11-21 13:45:50 +01:00
Marc Poulhiès bba925ae02 Show GNAT expanded code pane even in case of compiler error (#3121)
Even when the compiler exits with an error, try to display the expanded
code.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2021-11-21 13:26:27 +01:00
Marc Poulhiès 4e96bfb776 Filter fdump-passes output from stderr before displaying (#3115)
The refactor from #3024 left all the output from -fdump-passes in
stderr. Filter it out before displaying it in the output pane.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2021-11-21 13:26:12 +01:00
Marc Poulhiès 88d58f9fe2 Refactor GCC dump and GNAT expanded code creation (#3064)
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>
2021-11-16 21:09:18 +01:00
Nico Lehmann 19159930b5 Remove trailing whitespaces
Reviewed-by: Marc Poulhiès <dkm@kataplop.net>
2021-11-13 18:29:23 +01:00
Marc PoulhièsandRubén Rincón Blanco 6f18695dc0 Refactor GCC dump handling (#3024)
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>
2021-11-08 18:52:30 +01:00
Matt Godbolt cf7d70402e Await for things (#3086)
* Await for things

We had a number of things that aren't await()ing their promises.
That led to non-deterministic compiler settings like Intel support.
I used the IDE to find them all and fix the ones that I thought looked
important.

More generally we should use tslint (once we're all typescript) to
ensure this more generally. I tried the eslint equivalent but it
either overreacted or didn't catch anything.

Closes #3085
2021-10-31 15:31:45 -05:00
Patrick Quist 1ca884c367 Seperate compiler finding process (#3022) 2021-10-15 18:22:33 +02:00
Marc PoulhièsandMats Larsen 9b46d4f1fd Initial support for GNAT specific debug output (#3000)
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>
2021-10-13 19:59:26 +02:00
Austin Morton 810134942d Avoid calling compilerProps after compiler object construction (#3005) 2021-10-04 23:21:32 -05:00
Matt Godbolt f71e3c4997 Unconditionally use the compilation queue (#2978)
* Unconditionally use the compilation queue and re-enable MS compilers

* Always use the compilation queue, which ensures we don't
  execute more native apps thn are configured, especially while
  we're starting up.
* Guard the compilation queue from enqueueing stuff that was
  already executing in a queue context. This is to prevent deadlock
  though it's not always a problem (it's only if the caller awaits
  the job, which is often the case).

Should mitigate the issues we had on Sep 30 2021, where nodes were
having trouble starting up due to the large amount of JVM-based
compilers. See #2977
2021-09-30 22:42:23 -05:00
Mats Larsen 97134a9813 Fix linting errors from #2932 2021-09-27 10:03:22 +02:00
Mats Larsen 278d28b313 Add rustc Macro Expansion view (#2932)
Adds a new pane for producing the macro expansion of Rust code compiled with rustc.
2021-09-27 00:33:09 +02:00
partouf 6919532473 bugfixes cmake inputFilename 2021-09-13 19:56:56 +00:00
Patrick Quist e24f724e47 Options cleanup (#2924)
* getting rid of compiler.libs

* old widget no longer needed

* move supportedLibraries code to base-compiler

* bugfix

* oops

* grmbl

* bugfix remote msvc compilers
2021-09-13 20:22:39 +02:00
bc6757ae94 Pascalchanges (#2881)
* Changes to allow Program (vs Unit) in Object Pascal

* add possibility of dpr

* more flexibility with pascal filenames

* lintfixes

* i have no idea what im doing

* apply changes to pascal-win

* pascal fixes

* pascal projectfile changes

* work in progress

* bugfixes

* bla

* bugfixes

* mostly working

Co-authored-by: paul mcgee <paul.mcgee.8@bigpond.com>
Co-authored-by: Paul McGee <paulmcgee1969@gmail.com>
2021-09-13 20:22:27 +02:00
Patrick Quist d6081f5bda support cmake for fortran (#2930)
* support cmake for fortran

* fortran compiler flags
2021-09-12 02:43:36 +02:00
Mats Larsen cfff740283 Fix execution for Java with multifile ui (#2882)
* Fix execution for Java with multifile ui

* Remove dev comment
2021-08-28 14:39:02 +02:00
Patrick Quist 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
Rubén Rincón Blanco aab1e8cbaa Add chibicc (#2873)
I think this should not be a nightly install but a target for every
commit
2021-08-26 18:13:28 +02:00
ca017bac31 Add support for heterogeneous compute (#2836)
* Extract device code from assembly files.

This commit by itself does not actually add any viewing panes for the
extracted device code, nor does it provide any means to provide
device-specific postprocessing steps.

* Add a rudimentary device view.

This doesn't handle multiple device outputs correctly at the moment, and
it provides no opportunity to view device code differently from
non-device code for now.

* Lint issues

* Some more WIP getting it working.

* Add device extraction code

* More fixes, and keep state

Co-authored-by: Joshua Cranmer <joshua.cranmer@intel.com>
Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-08-14 12:53:22 -05:00
Mats Larsen 9b11050c5c Remove invalid todo comment and fix rustMir button toggling (#2806) 2021-07-24 12:42:27 -05:00
Mats Larsen aa431e1336 Add rustc MIR output view (#2795)
* Add Rustc MIR representation view
* Enable MIR view for rust-cg-gcc
2021-07-24 10:56:06 -05:00
RabsRincon e0c5a73f0b Adds toggle for full compiler version output
Thanks to @JohanEngelen for suggesting it, almost a year ago :/

Closes #2298
2021-07-16 00:18:27 +02:00
Rubén Rincón Blanco 27012bb0ec Initial sketch for how we could parse Rust output (#2761)
* Initial sketch for how we could parse Rust output

It has many issues, which I need to ask about, but ey, it works!

* Fix spacing

* Add tests for the new Rust output parsing
2021-07-06 05:21:31 +02:00
Matt Godbolt a6eef13562 Support an executionWrapper per compiler. CC @jfalcou 2021-06-27 17:09:30 -05:00
Matt Godbolt a031ef9047 Fix up sandbox directory for interpreters 2021-06-26 16:44:19 -05:00
Matt Godbolt 68a687decb Support execution in python
* Introduces "interpreted" language option
* Supports execute if binary or interpreted, and "supportsExecute"
* Misc tidyups

CC @jfalcou
2021-06-26 15:33:58 -05:00
Rubén Rincón BlancoandMatt Godbolt 0fca6c8c0b Adds Zig-args (#2735)
* Adds Zig-args

This is the first Zig library added to the site, so this implementation
might be broken in unexpected ways

See issue #2525

* Update lib/base-compiler.js

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-06-25 15:52:05 +02:00
Matt Godbolt a4edf7ed6b No array for each 2021-05-28 18:08:05 -05:00
Matt Godbolt b5a6b45a98 Fix accidental string.test. Thanks @beachedwhale 2021-05-28 10:00:34 -05:00
Matt Godbolt 4e36d206b4 Prefer regex.test() 2021-05-27 23:19:32 -05:00
Matt Godbolt 42f8a66b45 Prefer includes lint rule 2021-05-27 23:15:47 -05:00
Rubén Rincón Blancoandpartouf a330cd97f9 Add Zig cc as a C compiler (#2434)
* Add Zig cc as a C compiler

This commit is currently untested - I have no way to do it locally
 (Even though installing Zig is awesomely simple!), so it might be
 pretty broken

Releated issue: #2427

* Move cc to options field

This way fstat works

* attempt at fixing zigcc

* force zig > 0.6 to compile to binary as workaround

Co-authored-by: partouf <partouf@gmail.com>
2021-04-30 16:36:54 +02:00