Commit Graph
6328 Commits
Author SHA1 Message Date
RabsRincon ec00a10f49 Clear the compiler output on language change gh-1336 2021-12-05 16:26:45 +01:00
Patrick Quist 82c26bb20c Update c++.amazon.properties gh-1328 2021-12-04 14:03:40 +01:00
Ben FrantzDale 286d47af33 Add tbb 2021.4.0 (#3153) gh-1327 2021-12-04 13:14:48 +01:00
Mats Larsen 560d18c410 Temporarily patch Kotlin runtime execution (#3151)
Fixes the problem where any (reasonable) Kotlin JVM execution would fail with a NoClassDefFound error with kotlin.jvm.internal.Intrinsics.

The Kotlin execution is now packed into a jar with the Kotlin Standard Library and executed with java -jar.
gh-1325
2021-12-03 22:59:08 +01:00
github-actions[bot]andCompiler Explorer Bot 5fcef92d38 [bot] Update browsers list (#3144)
Co-authored-by: Compiler Explorer Bot <mattgodbolt@users.noreply.github.com>
gh-1324
2021-12-03 22:57:11 +01:00
Miguel Ojeda dcf428592d Rust 1.57.0 (#3146)
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
gh-1322 gh-1320
2021-12-02 17:28:39 +01:00
tpambor c0a117738d Add xtensa compilers for ESP32, ESP32-S2, ESP32-S3 (#3141) gh-1315 2021-11-30 14:12:36 +01:00
Nico Lehmann 93a020bdc6 Migrate Cfg pane to typescript (#3110)
* Migrate the Cfg pane to typescript
2021-11-30 14:11:50 +01:00
Ivan Egorov 34c41900dc Fix loading a zip project (#3136)
* Fix loading a project

Chrome DevTools suggest that `.map()` does not exist here. I think that the right one is `.forEach()`.

https://stuk.github.io/jszip/documentation/api_jszip/for_each.html

* Remove `Promise.all()`

`zip.forEach()` does not return a value, hence waiting on it does not make sense.
gh-1307
2021-11-24 22:55:44 +01:00
Björn Gustavsson 12d27b59b7 Format the output file for Erlang in a nicer way (#3135)
For Erlang, format the output in the same way as the 'S' option
does. To achieve this, we use the `beam_listing` module, which is
undocumented but has been stable for many many years.
gh-1306
2021-11-24 08:30:34 -06:00
Matt Godbolt 555edcad31 Latest thanks! gh-1305 2021-11-22 22:33:19 -06:00
Joel Falcou 4707d30737 Add kumi to the library setup (#3133) gh-1304 2021-11-22 22:48:17 +01:00
Patrick Quist 029c86af0b set ldpath for clang_reflection gh-1303 2021-11-22 13:53:16 +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>
gh-1302
2021-11-22 00:08:02 +01:00
Patrick Quist cdf295665b More Erlang keywords (#3130) gh-1301 2021-11-22 00:06:24 +01:00
Patrick Quist 2bc71691ef Erlang highlight and add to amazon (#3129) gh-1298 2021-11-21 23:53:43 +01:00
SvenandSven Johannsen 704a87fbd6 remove arch. from fortron names, add .x for gcc.x (#3127)
in the *.defaults.properties files:
- remove x86-64 from gfortan, because use of native and not specific a.
- add .x to major version of gcc compilers,
  because release of multi minor versions for GCC (see c++ config)

Co-authored-by: Sven Johannsen <s.johannsen@bretgeld-engineering.de>
gh-1293
2021-11-21 20:51:29 +01:00
Marc Poulhiès 0efd82d6a4 Fix linter error in erlang.js
Trivial linter error:
```
compiler-explorer/lib/compilers/erlang.js
  65:1  warning  More than 1 blank line not allowed  no-multiple-empty-lines

✖ 1 problem (0 errors, 1 warning)
  0 errors and 1 warning potentially fixable with the `--fix` option.
```
gh-1292
2021-11-21 19:15:27 +01:00
Patrick Quist 75c4b86a68 alias crystal 1.2.0 gh-1291 2021-11-21 15:43:20 +01:00
SvenandSven Johannsen 2168b968e7 update gcc and clang in default properties (#3126)
gcc & g++: 9,10,11
clang & clang++: 11,12
gfortran: 8,9,10,11

Co-authored-by: Sven Johannsen <s.johannsen@bretgeld-engineering.de>
gh-1290
2021-11-21 15:39:31 +01:00
Patrick Quist 38efc5bd2d Update popups.pug gh-1289 2021-11-21 15:11:36 +01:00
Patrick Quist 5becbd8174 update versionflag tendra gh-1288 2021-11-21 14:57:41 +01:00
Quinton Miller d6b1ef7c19 Add Crystal 1.2.2 (#3112) gh-1287 2021-11-21 14:27:42 +01:00
Timothy MooresandPatrick Quist 82772f4bbb add support for erlang to beam bytecode (#3094)
* add support for erlang to beam bytecode

* changed call by 'this' to overridden functions

* Update base-compiler.js

Co-authored-by: Patrick Quist <partouf@gmail.com>
gh-1286
2021-11-21 14:22:04 +01:00
Marc Poulhiès 177fee0739 Enable the GCC dump for the rustc using GCC backend (#3109)
Beware that the way it is working causes several dump files to be empty. The
list of potential files is based on `-fdump-passes` output, but during the
actual compilation, some passes may or may not emit something (eg. a passe may
not be executed at all because it's not applicable). The drop down list will
contain some dump names that will simply display message like:

   Pass 'cselim (tree)' was requested
   but nothing was dumped. Possible causes are:
    - pass is not valid in this (maybe you changed the compiler options);
    - pass is valid but did not emit anything (eg. it was not executed).

This is expected and until someone has a better idea, this will be the case :)

fixes: #2868
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
gh-1285
2021-11-21 14:18:25 +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>
gh-1284
2021-11-21 14:15:30 +01:00
dependabot[bot] 3515c569e8 Bump color-string from 1.5.3 to 1.6.0 (#3120)
Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.3 to 1.6.0.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Qix-/color-string/commits/1.6.0)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
gh-1283
2021-11-21 14:14:30 +01:00
Daniel Below 80e30b74f1 Add kotlin 1.6.0 compiler (#3114) gh-1282 2021-11-21 14:13:13 +01:00
Rubén Rincón Blanco f7d77bd07e Modify the path include guard to fix some false-positives (#3083)
Closes #3045
gh-1281
2021-11-21 13:45:50 +01:00
Rubén Rincón Blanco a92083a3a4 Adds some useful features for some people (#3081)
Closes #2974 and addresses a request made in Discord
gh-1280
2021-11-21 13:45:01 +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>
gh-1278
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>
gh-1277
2021-11-21 13:26:12 +01:00
Matt Godbolt 5ba345ecee Fix up reflection-ts flag. See #3123 gh-1275 2021-11-19 13:29:37 -06:00
Matt Godbolt 8f80044895 Add clang reflection. See #3123 gh-1274 2021-11-19 11:32:32 -06:00
Marc Poulhiès 9a773a75ac Enable diff view to use GNAT (Ada) expanded code (#3119)
This change allows for the selection of the GNAT (Ada) expanded code to
be used in the diff pane.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
gh-1270
2021-11-18 07:38:26 +01:00
Mats Larsen 9ceef5c184 Remove unused wolfy87-eventemitter dependency (#3118) gh-1268 2021-11-18 01:27:42 +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>
gh-1262
2021-11-16 21:09:18 +01:00
Nico Lehmann 19159930b5 Remove trailing whitespaces
Reviewed-by: Marc Poulhiès <dkm@kataplop.net>
gh-1256
2021-11-13 18:29:23 +01:00
amyspark a56810027e Update xsimd library version and paths (#3101)
cc compiler-explorer/infra#628
gh-1255
2021-11-12 14:09:57 +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>
gh-1250
2021-11-08 18:52:30 +01:00
RabsRincon ed0609bb90 Avoid null error if asm line is somehow missing gh-1248 2021-11-08 17:42:35 +01:00
Mats Larsen 5876fd41b6 Actually use the setting style in the format api (#3091)
The formatter-registry will now use the site settings when querying the Format API. For compilers that do not support multiple styles, __DefeaultStyle is passed.
gh-1246
2021-11-07 23:27:26 +01:00
RabsRincon 811ca557f1 Add missing CUDA asm compilers
Closes #3080
gh-1244
2021-11-07 17:20:57 +01:00
Matt Godbolt f71e1b0ef9 Latest batch of sponsors. Thank you! gh-1242 2021-11-06 16:28:26 -05:00
Allison Vacanti a61f014cf0 Add Thrust and CUB 1.13.1, 1.14.0, and 1.15.0. (#3090) gh-1240 2021-11-05 14:31:42 +01:00
Jan cd87ee06db updated OSACA version (#3098) gh-1239 2021-11-05 14:29:34 +01:00
Mats Larsen 27b3c5ec20 Set Java default encoding to UTF-8 (#3096)
The default encoding used for Java is now UTF-8. This did not have to be changed for the Scala or Kotlin compilers as those already default to UTF-8
gh-1238
2021-11-04 17:15:21 +01:00
4a6462fe9f Add nsimd v3.0.1 (#3095)
* Add version 3.0.1 of nsimd

Co-authored-by: Jean-Didier Pailleux <jean-didier.pailleux@agenium.com>
Co-authored-by: Rodolphe Cargnello <rodolphe.cargnello@gmail.com>
gh-1236
2021-11-04 08:25:59 -05:00
Marc Poulhiès 84fa2fe598 Add myself to the AUTHORS.md file gh-1235 2021-11-03 16:50:49 +01:00
Mats Larsen 4e14523aa9 Add myself to the AUTHORS.md file gh-1233 2021-11-03 14:17:52 +01:00