2784 Commits
Author SHA1 Message Date
Johan Engelen 52b56caebb Add LDC 1.36.0 and make it the default (#6111)
Also update llvm-symbolizer to LLVM 17 (I hope the clang 17 package
contains llvm-symbolizer like before ;-)
2024-02-12 21:46:38 -06:00
Marc Poulhiès f8d9e703e9 Add ppc64(le) nightly compilers (#6068)
Add ppc64 and ppc64le nightly compilers.

fixes https://github.com/compiler-explorer/compiler-explorer/issues/5881

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2024-02-12 21:29:58 +01:00
Michael Woerister e097590700 Enable the llvm-dwarfdump tool for Rust. (#6127)
This PR enables the llvm-dwarfdump tool for Rust (inspired by
https://github.com/compiler-explorer/compiler-explorer/pull/5726). The
default backend for the Rust compiler is LLVM and being able to inspect
the debuginfo it generates would be really useful.
2024-02-12 14:58:09 +01:00
Patrick Quist 4605ebfb4b Add Fortran library support (#5533) 2024-02-09 23:31:05 +01:00
Patrick Quist 2949181b34 revert demangler 2024-02-09 18:59:48 +01:00
Ofek b59e7a91c4 Implement #4929: replace c++filt with clang-trunk llvm-cxxfilt (#6080)
`c++filt` was taken sometimes from gcc-13.1.0 and sometimes from
gcc-snapshot, I took `llvm-cxxfilt` from just clang-trunk.

This PR is _just for clang C/C++ compilers_. Maybe it's better for some
other (non C/C++) llvm based compilers? Suggestions are welcome.
2024-02-09 18:32:18 +01:00
Marc Poulhiès 6a5e5ba448 fix: clang trunk should use gcc trunk (#6108)
clang trunk for C was using gcc-9, which caused mismatch between
compiler and actual binutils supports:


/opt/compiler-explorer/gcc-9.2.0/lib/gcc/x86_64-linux-gnu/9.2.0/../../../../x86_64-linux-gnu/bin/ld:
 warning: /lib/x86_64-linux-gnu/libc.so.6: unsupported
 GNU_PROPERTY_TYPE (5) type: 0xc0008002

This is not the case in the C++ config where we correctly use nightly
gcc.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2024-02-09 18:29:48 +01:00
Miguel Ojeda beda606734 Rust 1.76.0 (#6109)
Infra: https://github.com/compiler-explorer/infra/pull/1230.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2024-02-08 15:40:08 +01:00
Andrea Tomasi 1cacc9ce79 Add Elixir language support (#6081)
Hi, I am adding support for the Elixir language
(https://github.com/compiler-explorer/compiler-explorer/issues/3947)
I have done this so far. It is not perfect but at least is something I
can work with.
 
In Elixir you can write several modules in the same file, so I show the
different compile utins as a list.

It works locally but I don't know how to add the Elixir language to
[infra](https://github.com/compiler-explorer/infra/)

Some notes:
- I think Elixir's macro system may be a potential security issue
because I can run code during compilation.
- The decompiled code contains a reference to the file path on the
system machine.


![elixir_compiler](https://github.com/compiler-explorer/compiler-explorer/assets/11353602/59e46c98-646d-4275-9c03-e4097a4977ef)
2024-02-05 20:54:01 -06:00
David Spickett 80e3236243 fortran: Enable running binaries with flang-new (#6047)
Flang used to require that libpgmath be installed

(https://github.com/flang-compiler/flang/blob/master/docs/libpgmath.rst).

This is no longer the case (https://reviews.llvm.org/D140236), so we
should be able to build executable binaries without it.
2024-02-05 20:38:58 -06:00
David Spickett 821e3f2289 Fortran: Add LLVM Flang to default compiler config (#6039)
And enable exectution for flang-new.

This assumes that LLVM flang is installed from `ninja install` rather
than a package manager, since I'm not sure any have it yet. So
it's `/usr/local/bin` instead of `/usr/bin`.

gfortran I've assumed is in `/usr/bin` to match the existing
settings in the file.

I removed the `ldPath` settings that the `amazon` config has because:
* Most of them refer to /opt/compiler-explorer.
* Removing the rest didn't prevent me from linking/running binaries.

flang-new used to require a seperate libpgmath library to produce
exectuables but this requirement has been removed so I've enabled
execution.
2024-02-05 20:38:05 -06:00
jmuddnv 0a928f4b04 Changes for NVIDIA HPC SDK 24.1 #2 (#6075)
Fixed issues in first PR
Add HPC SDK 24.1 to  etc/config/c++.amazon.properties
2024-02-05 20:35:07 -06:00
Fábio de Souza Villaça Medeiros 56911da919 Move Hook to hook-lang organization (#6066) 2024-01-30 23:18:40 +01:00
Matt Godbolt ba215bdc37 Support a new sponsor layout (#6063) 2024-01-29 22:16:14 -06:00
Patrick Quist 85b897e873 mark dex2oat latest as nightly 2024-01-24 14:08:03 +01:00
Patrick Quist 3ea8205fb6 mark dex2oat latest as nightly 2024-01-24 14:07:30 +01:00
Marc Poulhiès 6fb86f16f9 icc: workaround bug in libstdc++ (#5984) (cont) (#6032)
Forgot some config in f3277b8aed.

fixes #5943

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2024-01-21 19:48:56 +01:00
Jeremy ad50638850 Forgot to set compilerType for wyrm 2024-01-21 12:06:36 -06:00
Jeremy Rifkin 8c1c3eab2a Add Wyrm transpiler (#6028)
https://github.com/compiler-explorer/compiler-workflows/pull/22
https://github.com/compiler-explorer/infra/pull/1218
https://github.com/compiler-explorer/misc-builder/pull/76

Depends on #6027
2024-01-21 10:43:20 -06:00
David Spickett 4edb4a35fb Update LLVM Flang file names (#6010) 2024-01-20 18:56:39 +01:00
narpfel 61a79207c1 Add gcem library (#6012) 2024-01-20 18:32:33 +01:00
wc7086 d6ca3afd80 Add SDCC 4.2.0 and SDCC 4.3.0 (#6018) 2024-01-20 18:30:53 +01:00
Julian 99559780bf Add UPMEM's DPU clang (#5950) 2024-01-20 18:05:14 +01:00
Mosè Giordano 8ee8be2bcf [julia_wrapper] Slightly improve performance (#6024) 2024-01-20 17:22:57 +01:00
Mauro Baladés 597344cb51 Hello again. Fixed snowball (#6021) 2024-01-20 17:15:35 +01:00
Marc Poulhiès 0be4fbf9c5 add some cross gcc mips (#6023)
Add missing 4.9.4, 5.5.0 and 9.5.0 for some mips variant.

goes with
https://github.com/compiler-explorer/compiler-explorer/pull/5723

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2024-01-18 21:38:27 +01:00
kevinjeon-g 6c31805a94 Add artArtifactDir to Android config files (#6011)
This was present in the default properties files for android-java and
android-kotlin but missing for the amazon properties files.
2024-01-16 22:12:35 -06:00
Jeremy a3799c3d57 Add opt17 to llvm default properties and set instructionSet 2024-01-16 20:08:23 -06:00
Mauro Baladés b4ca920fa5 Updated examples and changed to snowball 0.1.0 (#5969) 2024-01-15 15:18:59 -06:00
Henrich Lauko 7cab57f6a3 Add vast-trunk compiler (#5973)
More context in https://github.com/compiler-explorer/infra/pull/1209
2024-01-15 15:18:29 -06:00
narpfelandMatt Godbolt 9fb4309ef9 Add Python 3.12 and make it the default (#5968)
Python 3.12 has been released a while ago, but it seems that it’s not
yet been added to Compiler Explorer.

This PR also changes the license link to link to the actual CPython
license.

Corresponding infra PR:
https://github.com/compiler-explorer/infra/pull/1207

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2024-01-15 15:17:52 -06:00
Stephen Berry 6738662d94 Fixing paths for Glaze and adding latest version (#5966)
This adds the latest version of Glaze, as well as adding `/include` to
the paths per a request from #5901. Thanks!
2024-01-15 15:15:55 -06:00
kevinjeon-g 2f6a7328b2 Add support for dex2oat (latest) (#5916)
Adds Dex2OatCompiler, which applies to the Android Java and Android
Kotlin languages. Dex2OatCompiler runs on .dex files output by
D8Compiler, which in turn runs on .class files output by JavaCompiler or
KotlinCompiler. A parser has been added for dex2oat optimization passes.
2024-01-15 15:15:05 -06:00
Boris Verkhovskiy dddaed4d13 Add Zig 0.11.0 (#5986)
Fixes #5351

I just copied the changes in #4358 and checked that it works locally
with

```sh
make debug EXTRA_ARGS='--language zig'
```

although I had to make the following changes to get it to work locally:

```diff
diff --git a/etc/config/zig.defaults.properties b/etc/config/zig.defaults.properties
index 008aa215..f4db084c 100644
--- a/etc/config/zig.defaults.properties
+++ b/etc/config/zig.defaults.properties
@@ -1,4 +1,4 @@
-compilers=/usr/bin/zig
+compilers=/opt/homebrew/bin/zig
 supportsBinary=true
 compilerType=zig
 objdumper=objdump
diff --git a/lib/compilers/zig.ts b/lib/compilers/zig.ts
index b0d55432..8e33767f 100644
--- a/lib/compilers/zig.ts
+++ b/lib/compilers/zig.ts
@@ -44,6 +44,7 @@ export class ZigCompiler extends BaseCompiler {
         super(info, env);
         this.compiler.supportsIntel = true;
         this.compiler.supportsIrView = true;
+        this.compiler.semver = '0.11.0';
 
         this.self_hosted_cli =
             this.compiler.semver === 'trunk' ||
```
2024-01-15 15:13:50 -06:00
David Spickett 2147ea44b0 Add latest GNU assembler for Arm64 (#5997)
The previous highest version was 2.35.1 and between then and 2.38,
support for many new extensions has been added.

This includes the Scalable Vector Extension (SVE), it's own extension
SVE2, memcopy acceleration (MOPS) and many more.

I checked the version number by installing locally:
```
/opt/compiler-explorer/arm64/gcc-13.2.0/aarch64-unknown-linux-gnu/bin$ ./aarch64-unknown-linux-gnu-as --version
GNU assembler (GNU Binutils) 2.38
```

So that we can handle the new encodings, the objdumper for this category
is also updated to the same version.
2024-01-15 15:08:28 -06:00
Tristan Brindle dcffe73eef Add Flux library (#6000)
This PR (hopefully?) adds support for
[Flux](https://github.com/tcbrindle/flux), a header-only C++20
functional programming library

Infra PR: https://github.com/compiler-explorer/infra/pull/1213
2024-01-15 15:07:38 -06:00
narpfel 57b3ac133a Add PyPy 3.9 and 3.10 (#5992)
Resolves #5761.

I originally also wanted to include PyPy2.7 (which is still supported
and would be the only Python2 on Compiler Explorer), but it doesn’t
support `-I` which CE uses:
https://github.com/compiler-explorer/compiler-explorer/blob/37f68bfa4ac97f1ae0dd710744c76532748e7315/lib/compilers/python.ts#L79

infra PR: https://github.com/compiler-explorer/infra/pull/1212
2024-01-15 15:02:49 -06:00
Quinton Miller d43e02d4f5 Add Crystal 1.11.1 (#5974) 2024-01-15 14:57:09 -06:00
Mosè Giordano 7e899b008d [julia_wrapper] Fix compatibility with Julia v1.10 (#5963)
Fix error reported at
https://github.com/compiler-explorer/compiler-explorer/pull/5927#issuecomment-1882396045.
2024-01-15 14:56:34 -06:00
Ofek 1818280d7f Fix #5832: cuda 11.3.1 is incompatible with gcc 10+ (#5978)
According to the [CUDA 11.3 installation
guide](https://docs.nvidia.com/cuda/archive/11.3.0/cuda-installation-guide-linux/index.html)
only `gcc 9.*` are supported for it:


![image](https://github.com/compiler-explorer/compiler-explorer/assets/73080/f5c77f25-7595-40b4-a3d9-d8d23f8a12e1)

This PR pins the gcc used to 9.3.
I have no way to test locally but I think it is safe - these
compilations currently don't work anyway, and I can't see any way this
would mess up any other compilations.
2024-01-13 22:37:15 +02:00
narpfel 37f68bfa4a rust: display unwise option warning for -C target-cpu=native (#5990)
Resolves #5983.

This is not 100% accurate as it matches `target-cpu=native` without a
preceding `-C`, but there isn’t an obvious case where this would occur
in an otherwise valid compiler invocation, so it’s probably good enough?
2024-01-13 14:11:48 -06:00
Matt Godbolt c5e6b0fb48 New thanksyous! 2024-01-13 11:46:25 -06:00
Marc Poulhiès f3277b8aed icc: workaround bug in libstdc++ (#5984)
Use gcc-12.3 until gcc-13.3 is released (includes a fix for a bug in
current 13.2).

Should be switch back to gcc-13.3 when it is released.

fixes #5943

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2024-01-13 09:34:46 +01:00
partouf 6e7b244ff3 fix mp-units v2 for circle and objc++ 2024-01-12 15:11:33 +01:00
Patrick Quist ab5d6030cc Fix paths for mp-units v2 (#5976) 2024-01-12 14:54:34 +01:00
Denis Mikhailov 124e9db250 Add Boost 1.84.0 (#5915) 2024-01-08 21:25:28 -06:00
Matt Godbolt 6537a6a50a Remove unnecessary aliases 2024-01-08 20:41:33 -06:00
Mosè Giordano 9e276ba241 Add Julia v1.10.0 (#5927)
Companion PR to https://github.com/compiler-explorer/infra/pull/1201.
2024-01-08 20:40:34 -06:00
Boris Staletic 42b918a89c Add pybind11 library (#5935)
First, thanks for maintaining compiler explorer. It is a wonderful tool.

I have been playing with EDG/reflections on godbolt.org and decided to
make a proof of concept library for python bindings that relies on
reflections. To make my life easier, I wanted to depend on pybind11,
instead of re-learning CPython API.
That brings me to this pull request. I would appreciate having pybind11
available in godbolt.

I am not sure if I am missing anything regarding this. Pybind11 is
header-only and the path specified is the one that should be passed to
`-isystem`.
Also, the issue template mentions tests, but I am not sure how or even
if tests are needed for this change.

I will also understand if you would rather not add more libraries to the
compiler explorer image for the sake of its size.
2024-01-08 20:39:33 -06:00
Björn FahllerandBjörn Fahller 31ff6ac742 Added Trompeloeil v47 (#5952)
Co-authored-by: Björn Fahller <bjorn.fahller@netinsight.net>
2024-01-08 20:36:27 -06:00