Commit Graph
9905 Commits
Author SHA1 Message Date
Mats Jun Larsen d2cdc3b575 Apply fixes to rebase gh-13869 2025-02-03 02:23:24 +09:00
Mats Jun Larsen 00ec9bcf89 Force installation of various rollup platforms
Should cover what most developers either use or what we run in CI/prod
2025-02-03 02:23:08 +09:00
Mats Larsen aa85d1fa51 Apply manual fixes 2025-02-03 02:22:58 +09:00
Mats Larsen b4c949afcd Apply automatic fixes
# Conflicts:
#	static/widgets/history-widget.ts
2025-02-03 02:21:16 +09:00
Mats Larsen c27f06f322 Install biome and remove eslint/prettier 2025-02-03 02:20:56 +09:00
Ofek e2fc92f420 Overhaul 'history' look (#7352)
Single tab, no diffs - single source display, no list bullets, added spacing, added syntax highlighting.
gh-13863
2025-02-01 21:29:29 +02:00
github-actions[bot]andCompiler Explorer Bot 7cecdad70d [bot] Update browsers list (#7350)
Automatic run of `npm run-update-browerslist` which needs to
 be done periodically to keep in-date.
See
[here](https://github.com/browserslist/browserslist#browsers-data-updating)
for more details.

Co-authored-by: Compiler Explorer Bot <mattgodbolt@users.noreply.github.com>
gh-13856
2025-02-01 03:15:23 +00:00
Mats Jun Larsen 96e1db8509 Introduce jsonOnly middleware for requiring JSON content type gh-13855 2025-02-01 02:05:03 +09:00
Marc Poulhiès d6d124307f fix ga68 compiler setup
refs https://github.com/compiler-explorer/compiler-explorer/issues/7258

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
gh-13846
2025-01-31 09:07:00 +01:00
Marc Poulhiès 8df6cafc5d Add GCC cross for Tricore (#7348)
refs https://github.com/compiler-explorer/compiler-explorer/issues/6321

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
gh-13845
2025-01-31 08:41:32 +01:00
Marc Poulhiès ce11ca3808 Add new language: Algol68 and corresponding GCC frontend (#7346)
refs https://github.com/compiler-explorer/compiler-explorer/issues/7258

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
gh-13844
2025-01-31 08:37:48 +01:00
narpfel b3cc0c61e7 Parse Rust error message locations with multiple leading spaces (#7344)
Rust error message locations (` --> <source>:<line>:<col>`) can have
more than one leading space, e. g. when the source code snippet that is
shown has line numbers greater than ten.

In this example (https://godbolt.org/z/9W8xPv36c), the error message is
not be recognised as an error and there are no red squigglies in the
editor pane.
gh-13833
2025-01-30 15:57:50 -06:00
Wyatt Childers 6e7af6785e Add EDG 6.7 release files (#7345) gh-13818 2025-01-30 14:37:09 -06:00
narpfel f060417c34 Strip hyperlink escape sequences from editor pane diagnostics hover widget (#7342)
When passing `-fdiagnostics-urls=always`/`-Z terminal-urls=yes`, the
hyperlink escape sequence was not stripped from the mouse hover widget
in the editor pane.

Link: https://godbolt.org/z/3cP8jj8jc

Hover over the empty braces in the C++ editor or the `i32` in the Rust
editor:

Before:
```
warning: no return statement in function returning non-void []8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-return-type-Wreturn-type]8;;]x86-64 gcc 14.2 #1
error[]8;;https://doc.rust-lang.org/error_codes/E0308.htmlE0308]8;;]: mismatched typesrustc nightly #2
```

Now:
```
warning: no return statement in function returning non-void [-Wreturn-type]x86-64 gcc 14.2 #1
error[E0308]: mismatched typesrustc nightly #2
```
gh-13813
2025-01-30 14:14:22 -06:00
Spencer FrickeandMatt Godbolt e7be83e9db Fix number regex for SPIR-V parser (#7340)
I noticed things like `Int64`, `GLSL450`, and `2D` were multi-colored. This fixes them by treating all Capitalised123 things as tokens.

Co-authored-by: Matt Godbolt <matt@godbolt.org>
gh-13805
2025-01-30 10:19:39 -06:00
Jamie 794977fc87 [gardening]: reorganize & document swift config somewhat (#7339)
add some minor commentary to, and reorganize the swift properties file.
this is just to make things a bit easier to find and more clear where
future additions should go.
gh-13799
2025-01-30 09:21:51 -06:00
Quinton Miller 051860f9b6 Add Crystal 1.15.0 and 1.14.1 (#7326) gh-13798 2025-01-30 09:16:46 -06:00
Matt Godbolt 1680acc222 Re-enable pahole for ada, now it doesn't crash. Closes #1973 (#7336) gh-13794 2025-01-29 15:59:44 -06:00
Matt Godbolt cd29f86d24 Prevent exception if compiler didn't generate (#7334)
Stops sentry errors, gives a slightly less awful error to the user.
Closes #1814

Tested locally.
gh-13793
2025-01-29 15:06:43 -06:00
kevinjeon-g a601403657 Add R8/D8 latest for Android (#7333)
This also updates dex2oat latest to use d8-latest as the intermediate
compilation.
gh-13788
2025-01-29 14:12:55 -06:00
Craig Topper b53c15bae1 Update objdump version to 14.2.0 for RISC-V clang trunk. (#7332) gh-13786 2025-01-30 03:12:39 +09:00
Marc Auberer 2d4a8d59fa Fix function define regex in pass dump parser (#7330)
Function in LLVM IR can also contain `-` characters without being
enquoted.
gh-13784
2025-01-29 11:30:16 -06:00
Darius Neațu 1dd092b0a6 Rename beman.optional26 to beman.optional (#7328)
Rename beman.optional26 to beman.optional as per
https://github.com/bemanproject/beman/issues/85
gh-13783
2025-01-29 11:18:14 -06:00
Mats Jun Larsen bcd6394435 Ensure that content type for formatting requests is JSON (#7327)
Ideally I'd add a middleware or something else that requires JSON, but I
suppose this is fine for now.

cc @dkm
gh-13781
2025-01-29 10:46:56 -06:00
narpfel ccd62cfc61 Parse terminal hyperlinks in command output (#7318)
Some compilers (such as `gcc` and `rustc`) support emitting hyperlinks
to the documentation for error messages and/or warnings. This PR adds a
parser for the respective `OSC 8` ANSI escape sequence (see
https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) and
makes them clickable in the output window.

For example: https://godbolt.org/z/o1v7WzPc6

For GCC, this would make `-Wreturn-type` a clickable link to
https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-return-type.

For Rust, this would make `E0425` a clickable link to
https://doc.rust-lang.org/error_codes/E0425.html.

Note that this also applies to execution output. A malicious program
could (when executed) produce output that contains clickable links to
anything.

Related feature requests:
* #5284 for `rustc` (`-Z terminal-urls=yes`)
* #7310 for `gcc` (`-fdiagnostics-urls=always`)
gh-13780
2025-01-29 10:46:17 -06:00
beached 730e4f9253 Update to add Boost 1.87 support (#7323) gh-13779 2025-01-29 10:42:07 -06:00
Waqar Ahmed 54ea096e1a odin: require main function (#7314)
In optimized build, odin inlines the world and even ends up inlining the
user visible `main` function into the entry point main. The result is
empty asm output which is confusing. Thus, @require main so that the
compiler doesn't inline user visible main function

 #7210
gh-13778
2025-01-29 10:41:03 -06:00
narpfel 8f88aa804d Add cmake 3.30 and 3.31 (#7308)
Resolves #7252.

Infra PR: https://github.com/compiler-explorer/infra/pull/1507
gh-13777
2025-01-29 10:35:58 -06:00
Jamie 5d110f6785 [swift]: add swift development snapshot compiler [6.1] (#7276)
- [x] TODO: merge corresponding infra change
https://github.com/compiler-explorer/infra/pull/1497
gh-13776
2025-01-29 10:35:05 -06:00
Matt Godbolt 9541e1e8d8 Mitigations for CL labels (#7320)
Some syntax highlighting improvement for CL asm lines like:

```as
int * moo DD  01H                       ; moo
```

and

```as
?mooz@@3PAFA DW 01H                                 ; mooz
```

where previously the DD (or DW DQ) wasn't syntax highlighted, making it
harder to spot the case where CL puts the first defined value of an
array on the same line as the label definition.

This isn't perfect, and might be fairly expensive, but helps mitigate
issue #1645, hopefully well enough to close it.

Tested locally with gcc and clang output, and then pasted into
Monarch/Monaco and tested with some CL output.
gh-13775
2025-01-29 10:33:22 -06:00
Steve Schnepp 3593733ac3 Update SDCC to 4.5.0 (#7325) gh-13774 2025-01-29 10:32:00 -06:00
Matt Godbolt ed825b8aa2 Some tidying up of the asm parser code (#7329)
- use `Set` and `Map`
- reflow comments
- remove redundant `!!`
- rephrase iterative "follow the chain of weak symbols" to be recursive,
removing artificial limit.
gh-13773
2025-01-29 10:29:06 -06:00
Waqar Ahmed 650e706c4d Unset context.prevLabel when a label gets filtered (#7315)
Otherwise subsequent unused label's directives end up being included in
the processed asm even though the label itself got filtered
gh-13765
2025-01-29 08:40:07 -06:00
Matt Godbolt f1e930b7fc Decommision the "AWS" magic compiler name (#7321)
Nothing was using it, we're using other methods these days to discover
remote compilers (and have been for years), and it was broken (see
#1790).

Also cleans up some config (moving it from aws to ceProps; though it was
unused, default used only), and also some workarounds for remote
compilers that refer back to the MS compiler era (#1768).

This leaves the ability in `aws.ts` to fetch instances in case we ever
need the functionality, as this is tested and still works.

Closes #1790
gh-13764
2025-01-29 08:36:01 -06:00
kevinjeon-g 44920dd00d Fix .smali class regex in Dex2OatCompiler (#7319) gh-13763 2025-01-29 09:36:11 +00:00
Matt Godbolt 3b507a6db3 Handle ARM's .set usage (#7322)
Treats `.set` as an "alias" for the set of labels referred to, and
doesn't filter alias-creating `.set` in used paths even if directive
filtering is on. Only works for `.set <something>, .` with an optional
`+ 0`.

Also changes a silly loop that was looping N times doing the same thing
if `inFunction && isDataDefinition`, though quite possibly that's broken
in a different way. No tests changed, anyway.

Adds a new test for the new behaviour.

Closes #1799
gh-13757
2025-01-29 10:07:43 +02:00
Matt Godbolt e452db56fc Special casing for msp430 (#7317)
- Make a special msp430 handler that breaks lines on `{` to fix the
weird inlining behaviour unique to msp430 output.

Closes #295
gh-13745
2025-01-28 10:00:04 -06:00
Eczbek 785be3d278 Edit xieite library info (#7305) gh-13742 2025-01-28 08:57:15 -06:00
Odysseas Georgoudis daae9a26ed Add quill v8.1.0 (#7313)
Infra PR: https://github.com/compiler-explorer/infra/pull/1509
gh-13739
2025-01-28 12:26:53 +09:00
Matt Godbolt 40f2c00895 Add types to bug templates gh-13737 2025-01-27 16:12:59 -06:00
Vipul Cariappa 61452ce52d move clad to separate compiler group and add trunk version (#7311)
Nightly Build PR:
https://github.com/compiler-explorer/compiler-workflows/pull/31
gh-13736
2025-01-27 14:02:33 -06:00
Matt Godbolt a5aad3c48c Let user execution stdbuf (#7307)
Currently only maps in the stdbuf and the lib it needs. Tested locally
and paths confirmed to exist on prod boxes.

See #7239
gh-13733
2025-01-26 10:23:26 +02:00
Patrick Quist 7234169c86 Attempt to fix remote library fetching (#7303)
Libraries were being fetched from wrong URL (on startup);
`Fetching remote libraries from
https://godbolt.org:443/api/libraries/c++`

Ended up refactoring a bunch of things to get some unittesting going on

I did not test actual startup and compilation with CE, I might have
broken something. (but @mattgodbolt tested and it looked great)
gh-13728
2025-01-25 09:27:03 -06:00
Matt Godbolt 10bc41a592 Fix up C++ CCCL (#7302)
- Adds 2.7.0
- Unifies the description with the cuda one
- fixes all the paths
gh-13718
2025-01-24 17:53:38 -06:00
jmuddnv 403f0843ef Changes for NVIDIA HPC SDK 25.1 (#7293)
Changes for HPC SDK 25.1
Add nvc 25.1 to etc/config/c.amazon.properties
Add nvc++ 25.1 to etc/config/c++.amazon.properties
Add nvfortran 25.1 to etc/config/fortran.amazon.properties
gh-13715
2025-01-24 16:37:02 -06:00
Cliff Burdick 08b09c8caa Added CCCL 2.7.0 (#7275) gh-13713 2025-01-24 12:57:41 -06:00
Matt Godbolt 19a55c8ccd Add Cobol 1.1; see compiler-explorer/compiler-explorer#5626 (#7301) gh-13711 2025-01-24 12:25:31 -06:00
Spencer Fricke b414f62a54 Update SPIR-V with newest Vulkan SDK (#7300)
Adds new SPIR-V tools from new Vulkan SDK
(https://github.com/compiler-explorer/infra/pull/1498)
gh-13708
2025-01-24 11:39:59 -06:00
Spencer Fricke 52e83f5e7d Add Slang 2025.2.2 (#7299)
Adds new slang from https://github.com/compiler-explorer/infra/pull/1499
gh-13706
2025-01-24 11:25:06 -06:00
kevinjeon-g 255017fd72 Update Android compilers (#7294)
This change adds recent ART mainline releases (version 35) and R8
versions (8.6, 8.7).
gh-13705
2025-01-24 11:24:24 -06:00