Commit Graph
3221 Commits
Author SHA1 Message Date
Jeremy Rifkin c13b4f0d2c Add cpptrace 0.8.2 2025-03-20 23:03:07 -06:00
Marc Poulhiès d33522ff05 cobol: add the snapshot from GCC trunk
Now that COBOL has been merge in GCC, it's also available in our
gcc trunk snapshots.

Also fixes #7351 (adjust copyright year)

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2025-03-18 22:20:25 +01:00
Partouf 61715be49a fix rust clippy tool 2025-03-14 16:59:27 +01:00
narpfel 95979128ac Add clippy for Rust (#7477) 2025-03-12 22:45:15 +01:00
Dana Jansens a95d35c64b Put the carbon toolchain in the carbon.defaults properties (#7495)
This allows using the carbon toolchain as the default Carbon compiler
when working in a local development environment.
2025-03-12 16:09:15 +01:00
Matt Godbolt e3c8a86551 My scripts had missed @pfusik: sorry!! 2025-03-11 09:47:44 -05:00
Joshua BattyandMatt Godbolt 8c6ce602d1 Add support for pre-installed Sway std library (#7456)
This PR updates the Sway compiler to use pre-installed std libraries
rather than fetching from GitHub. It:

Dynamically adds the std library path to `Forc.toml` when using
versioned compilers
Sets the `--offline` flag at the group level to prevent network access
Works with the std library package added in compiler-explorer/infra#1539

This resolves the issue where Sway was attempting to fetch libraries
from the internet, which is blocked in the Compiler Explorer
environment. see [this
comment](https://github.com/compiler-explorer/compiler-explorer/pull/7409#issuecomment-2679284531)

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-03-10 12:58:07 -05:00
Mingxin Wang 1d509fb9a3 Add examples for Proxy (#7487)
Added 4 example to demonstrate the basic usage.
2025-03-10 10:50:17 -05:00
T e23537c44f Add zig 0.14.0 and make it the default zig compiler (#7479)
zig `0.14.0` released on 2025-03-05.

Corresponding infra PR:
https://github.com/compiler-explorer/infra/pull/1544
2025-03-10 10:49:30 -05:00
Filippo Barbari 0cea8d4cd2 Added new versions of Intel OneAPI C++ compiler (#7474)
Added new versions (and one old one) of the Intel OneAPI C++ compiler:
- 2024.2.1
- 2025.0.1
- 2025.0.3
- 2025.0.4

Refers to [this
PR](https://github.com/compiler-explorer/infra/pull/1541).
2025-03-10 10:47:35 -05:00
Matt Godbolt 2926cd152a Sponsor update 2025-03-10 10:11:27 -05:00
Matt Godbolt 76814a3f32 Sponsor update 2025-03-10 09:51:39 -05:00
Mingxin Wang b0d9b81e0c Fix include path for Proxy (#7470)
Fix include path for library Proxy
(https://github.com/compiler-explorer/compiler-explorer/pull/7423). The
Proxy library has only one header file placed in the root directory.
2025-03-09 18:59:52 +01:00
Cliff Burdick d20b52b31b Added CCCL version 2.8.0 (#7466) 2025-03-09 18:58:54 +01:00
Mats Jun Larsen b8f7ec1229 Install Clang/LLVM 20 (#7476) 2025-03-09 18:58:21 +01:00
OfekandOfek Shilon 5f8c801b7f Disable unbufferStdoutExe config, due to clash with asan (#7482)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->

Co-authored-by: Ofek Shilon <oshilon@speedata.io>
2025-03-08 17:57:19 +02:00
Partouf decafecadd alias 2025-02-28 15:05:20 +01:00
Patrick Quist f507faedeb Remove Abseil Trunk and replace with fixed version (#7441) 2025-02-28 14:52:41 +01:00
Mingxin Wang 52d1d218c6 Add C++ library Proxy (#7423)
Add library Proxy since version 3.0.0.

https://github.com/compiler-explorer/infra/pull/1534
2025-02-25 08:36:31 -06:00
Jamie 286a9c8ed3 [swift]: add 6.0.3 compiler configuration that will cross-compile to aarch64 (#7434)
- add a new compiler group for swift aarch64 cross-compilation
- add a new entry for the 6.0.3 swift compiler to this new group that
uses the existing x86 toolchain
- add additional compilation options to the new compiler which will
cross compile to arm via the static musl SDK added in
https://github.com/compiler-explorer/infra/pull/1524
- [tangential cleanup]: fixes a typo in the swift 5.10 alias

note: this is my first attempt to add a new compiler group, so i'd
appreciate any feedback as to whether i've overlooked or mis-configured
any of the fields.
2025-02-25 08:03:10 -06:00
8557b59055 added initial support for the Coccinelle code transformation system, closes #6999 (#7001)
This fork provides a rudimentary way of using Coccinelle within Compiler
Explorer.
In the left window one can edit either C or C++ code, and within
preprocessor ifdefs, one can write a semantic patch for Coccinelle.
The right window will display the transformed code.

A coccinelle on infra is not yet done.
Any distribution-based coccinelle would do, for the moment.

If you like it, this close #6999 .

---------

Signed-off-by: Michele Martone <michelemartone@users.sourceforge.net>
Co-authored-by: Patrick Quist <partouf@gmail.com>
Co-authored-by: Mats Jun Larsen <mats@jun.codes>
Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-02-24 10:10:35 -06:00
Rupert Tombs afccba613e Quash some warnings in tests (#7415)
- Prevent some warnings in the `test-and-deploy` action; see, for
example, `Run checks` at
https://github.com/compiler-explorer/compiler-explorer/actions/runs/13421609790/job/37495341332:
  - Await a result to avoid:
```text
Promise returned by `expect(actual).toMatchFileSnapshot(expected)` was not awaited. Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. Please remember to await the assertion.
    at it.timeout(/home/runner/work/compiler-explorer/compiler-explorer/test/filter-tests.ts:91:50)
```
- Remove duplicated `AVRrc` entries in
`lib/asm-docs/generated/asm-docs-avr.ts`. `AVRrc` is a [reduced core
AVR](https://ww1.microchip.com/downloads/en/DeviceDoc/AVR-InstructionSet-Manual-DS40002198.pdf#page=18),
not an opcode. This avoids a warning beginning `[vite] warning: This
case clause will never be evaluated because it duplicates an earlier
case clause`.
    - Update generator script to also filter `AVRe`.
- Deduplicate `RLDICL` in `lib/asm-docs/generated/asm-docs-power.ts`.
IBM document this instruction both
[here](https://www.ibm.com/docs/en/aix/7.3?topic=is-rldicl-rotate-left-double-word-immediate-then-clear-left-instruction)
and
[here](https://www.ibm.com/docs/en/aix/7.3?topic=is-rldicl-rotate-left-double-word-immediate-then-clear-left-instruction-1).
I choose the neater-looking one, which is also more similar to their
[`RLDICR`](https://www.ibm.com/docs/en/aix/7.3?topic=is-rldicr-rotate-left-double-word-immediate-then-clear-right-instruction)
documentation. This avoids warnings beginning `[vite] warning: This case
clause will never be evaluated because it duplicates an earlier case
clause`.
2025-02-24 10:05:31 -06:00
Rupert Tombs 5eeded45c4 Test the numba wrapper in test-and-deploy (#7413)
- Resolve comments from #5592:
- Replace a silly indirect import
https://github.com/compiler-explorer/compiler-explorer/pull/5592#discussion_r1962004963
- Run `test_numba_wrapper` in `.github/workflows/test-and-deploy.yml`.
https://github.com/compiler-explorer/compiler-explorer/pull/5592#discussion_r1962004131
- Patch minor errors in `etc/scripts/util/propschecktest.py` and also
test it.
2025-02-24 09:58:31 -06:00
Patrick Quist 897364f04e No 'needsmulti' for swift (#7421)
Fixes #7419
2025-02-24 09:56:27 -06:00
Joshua BattyandMatt Godbolt b272efdb53 Add sway compiler (#7409)
Should be pretty self explanatory. I've added a corresponding PR to the
infra repo [here](https://github.com/compiler-explorer/infra/pull/1532)

Please let me know if there is anything I've done incorrectly here!
Thanks

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-02-24 09:38:13 -06:00
Odysseas Georgoudis 49e1fabaa7 Add quill v8.2.0 (#7424) 2025-02-24 09:35:20 -06:00
Marc Auberer 326a86ee82 [Spice] Add version 0.22.0 (#7426)
Infra PR: https://github.com/compiler-explorer/infra/pull/1536
2025-02-24 08:50:19 -06:00
narpfel ea67b773ba Add libPath for Rust 1.85 (#7422) 2025-02-24 08:45:12 -06:00
Marc Poulhiès 5fe74b86ea Rust 1.85.0 (#7420)
Add newly released rustc 1.85.0

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2025-02-21 11:32:51 +01:00
Rupert TombsandMats Jun Larsen ca1ecbb2e3 Add Numba (#5592)
- Add initial support for Numba compilation: asm, demangling, execution

Numba wraps Python functions in `Dispatcher` objects. Each dispatcher
contains zero or more compiled argument-type-indexed overloads of its
function. We import the user's code as a module, and emit the code from
all overloads of all dispatchers that the module publicly exposes.

Name mangling is odd in Numba. It uses a similar mangling syntax to C++,
but also encodes non-symbol (`r"[^a-z0-9_]"`) characters as `_%02x`.
This encoding yields valid identifier names, so it is not strictly
invertible. Here, I have hard-coded some replacements to decode some
common cases at the cost of possible clashes with ugly user-defined
names.

Screenshot captured via `make dev EXTRA_ARGS="--debug --language numba"`

![generator
example](https://github.com/user-attachments/assets/77b8e53a-3589-4e0d-9589-10c36a026b6f)


## To do

- [x] Answer questions of #5591.
- [x] Acquire a python environment.
- [ ] Automatically run the python test?

Locally, I have installed a virtual environment with python 3.12.3 with

```shell
path/to/python -m venv venv_numba
path/to/venv_numba/bin/python -m pip install numba==0.61.0 scipy>=0.16
```

and configured its use with

```properties
# compiler-explorer/etc/config/numba.local.properties
compilers=&numba
defaultCompiler=numba_0_61_0

group.numba.compilers=numba_0_61_0
group.numba.baseName=Numba

compiler.numba_0_61_0.exe=/path/to/python3.13
compiler.numba_0_61_0.semver=0.61.0
```

I run this python-side test file with

```python
path/to/venv_numba/bin/python -m unittest etc/scripts/test_numba_wrapper.py
```

---------

Co-authored-by: Mats Jun Larsen <mats@jun.codes>
2025-02-19 10:41:42 -06:00
Vipul Cariappa 481ec4c264 update clad to v1.9 with clang v19.1.0 (#7394) 2025-02-19 09:31:39 -06:00
Matt Godbolt 7d4f77d84a Misc fixes for unbuffering (#7404)
- Wrap the executable in `stdbuf` higher up than in `executeDirect`
which means we run `stdbuf` _inside_ the jail instead of outside it when
running. This fixes jail/stdbuf interactions.
- Install `which` types to avoid a `no-ts`
- Ensure `stdbuf` et al is mapped in compilers-and-tools
- As a fly-by also unify the configuration of NVidia devices between
execution and compilation.
2025-02-18 15:17:15 -06:00
narpfel aacc4bc626 Add PyPy 3.11 (#7392)
Infra PR: https://github.com/compiler-explorer/infra/pull/1526
2025-02-18 12:44:36 -06:00
Matt GodboltandMats Jun Larsen 3aeed42066 Upgrade to node 20 minimum, target node 22 (#7343)
Co-authored-by: Mats Jun Larsen <mats@jun.codes>
2025-02-18 12:43:21 -06:00
narpfel 9c301340dd Enable execution and compilation to binary for rustc-cg-gcc (#7399)
The binary options’ output will (like for `rustc`) contain the complete
standard library (see #2708, #7337), but this can be worked around with
`-C prefer-dynamic`.

Execution should (according to my local tests) just work™.
2025-02-18 12:31:32 -06:00
aneshlya b9d65a9ad2 Add ISPC v1.26.0 (#7396)
ISPC v1.26.0 has been released.
Related PR: https://github.com/compiler-explorer/infra/pull/1528
2025-02-18 10:40:31 -06:00
Steve 9e2f9ec589 New dotnet versions (#7391)
Depends on https://github.com/compiler-explorer/infra/pull/1525
2025-02-18 10:36:38 -06:00
Stephen HeumannandMatt Godbolt 5a72fa0659 Add support for ORCA/C (#7368)
[ORCA/C](https://github.com/byteworksinc/ORCA-C) is a C compiler that
natively runs on and targets the Apple IIGS. ORCA/C and the programs it
generates can be run on modern Linux systems by using an emulation tool
called [Golden Gate](https://goldengate.gitlab.io).

This adds support for ORCA/C (run via Golden Gate) in Compiler Explorer.
It uses its own assembly format and objdumper (provided by Golden Gate),
so support for those is added. An extra configuration option was also
added to support execution via an emulator, bypassing the usual check
that executables can run natively. Asm docs for the WDC 65C816 processor
were also added.

ORCA/C and Golden Gate are not Free Software, but their rights holders
have given permission for them to be used on Compiler Explorer. Tarballs
for them can be supplied privately. See infra PR:
compiler-explorer/infra#1521

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-02-18 10:28:10 -06:00
Matt Godbolt fcb41818c5 Thanks to new patreons 2025-02-18 10:14:03 -06:00
Ofek a457221f7a Fix #7239: Prefix exeutions with stdbuf -o0 (#7378)
Please note this adds the anti-stdout-buffering machinery to all
executions - *including of the compilers themselves*. I think this is a
good thing.

I (hope I) excluded execution on windows. Are there other needed
exceptions?
2025-02-17 00:55:53 +02:00
Matt Godbolt 9f3d43b271 Add carbon native compiler (#7389)
- Renames existing carbon stuff to carbon-explorer. Will need a quick
infra install and will temporarily (like, for 2m) break things during
deploy.
- Adds carbon binary support
- Supports binary, execute, and binary objects
- Updates the default carbon file as best I can
 
Closes #5402
2025-02-12 13:41:08 -06:00
kevinjeon-g 8a0a6e93da Use Java 22 for latest Android compilers (#7388)
This change updates the Java version used for R8/D8/dex2oat latest to
the most recent Java version available to help investigate newer Java
features.
2025-02-12 13:19:13 -06:00
Quinton Miller a7eb6ef31c Add Crystal 1.15.1 (#7386) 2025-02-12 08:50:59 -06:00
Ofek 4f2d4b60fc Fix #7359: use llvm-cxxfilt by default for all compilers (#7377)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->

I tested `gcc-snapshot`s `c++filt` and it still doesn't handle `require`
well. llvm does.
2025-02-10 18:55:39 +02:00
Waqar Ahmed 877aa5551c Zig improvements (#7355)
- Make it easy/possible to run compiler-explorer-zig locally (see first
commit)
- Dont strip debug info, add explicit flag for this (second commit)
- Allow filtering library functions. (it doesn't work super great atm,
but at least some of the hundreds of thousands of lines get filtered
out).
2025-02-08 05:34:19 +00:00
Marc Auberer 5d7f261712 [Spice] Add version 0.21.1 (#7364) 2025-02-06 19:52:50 +01:00
narpfel 8388101b14 Fix execution for Rust 1.83+ with dynamically linked standard library (#7367) 2025-02-06 19:47:25 +01:00
Matt Godbolt 894c5cb790 New sponsors - thank you! 2025-02-05 18:46:05 -06:00
Marc Poulhiès ea12356b82 Adjust config for ga68 and gm2
Compiler type was missing in some config files.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2025-02-05 17:19:32 +01:00
Matt Godbolt 3bb3000921 Hide @dascandy's contracts compiler, per request 2025-02-03 12:40:31 -06:00