diff --git a/etc/config/android-java.amazon.properties b/etc/config/android-java.amazon.properties index 8219ba5ea..395675e83 100644 --- a/etc/config/android-java.amazon.properties +++ b/etc/config/android-java.amazon.properties @@ -101,7 +101,7 @@ compiler.java-r8-8242.exe=/opt/compiler-explorer/r8-8.2.42/r8-8.2.42.jar compiler.java-r8-8233.name=r8 8.2.33 compiler.java-r8-8233.exe=/opt/compiler-explorer/r8-8.2.33/r8-8.2.33.jar -group.dex2oat.compilers=java-dex2oat-latest:java-dex2oat-3310:java-dex2oat-3411:java-dex2oat-3413:java-dex2oat-3414:java-dex2oat-3415:java-dex2oat-3416:java-dex2oat-3417:java-dex2oat-3418:java-dex2oat-3508:java-dex2oat-3509:java-dex2oat-3510:java-dex2oat-3511 +group.dex2oat.compilers=java-dex2oat-latest:java-dex2oat-3310:java-dex2oat-3411:java-dex2oat-3413:java-dex2oat-3414:java-dex2oat-3415:java-dex2oat-3416:java-dex2oat-3417:java-dex2oat-3418:java-dex2oat-3508:java-dex2oat-3509:java-dex2oat-3510:java-dex2oat-3511:java-dex2oat-3513:java-dex2oat-3514:java-dex2oat-3600 group.dex2oat.groupName=ART group.dex2oat.compilerType=dex2oat group.dex2oat.isSemVer=true @@ -115,6 +115,27 @@ compiler.java-dex2oat-latest.d8Id=java-d8-latest compiler.java-dex2oat-latest.isNightly=true compiler.java-dex2oat-latest.profmanPath=/opt/compiler-explorer/dex2oat-latest/x86_64/bin/profman +compiler.java-dex2oat-3600.name=ART dex2oat android16-release (May 2025) +compiler.java-dex2oat-3600.artArtifactDir=/opt/compiler-explorer/dex2oat-36.0 +compiler.java-dex2oat-3600.exe=/opt/compiler-explorer/dex2oat-36.0/x86_64/bin/dex2oat64 +compiler.java-dex2oat-3600.objdumper=/opt/compiler-explorer/dex2oat-36.0/x86_64/bin/oatdump +compiler.java-dex2oat-3600.d8Id=java-d8-8718 +compiler.java-dex2oat-3600.profmanPath=/opt/compiler-explorer/dex2oat-36.0/x86_64/bin/profman + +compiler.java-dex2oat-3514.name=ART dex2oat aml_art_351410020 (Feb 2025) +compiler.java-dex2oat-3514.artArtifactDir=/opt/compiler-explorer/dex2oat-35.14 +compiler.java-dex2oat-3514.exe=/opt/compiler-explorer/dex2oat-35.14/x86_64/bin/dex2oat64 +compiler.java-dex2oat-3514.objdumper=/opt/compiler-explorer/dex2oat-35.14/x86_64/bin/oatdump +compiler.java-dex2oat-3514.d8Id=java-d8-8718 +compiler.java-dex2oat-3514.profmanPath=/opt/compiler-explorer/dex2oat-35.14/x86_64/bin/profman + +compiler.java-dex2oat-3513.name=ART dex2oat aml_art_351310060 (Jan 2025) +compiler.java-dex2oat-3513.artArtifactDir=/opt/compiler-explorer/dex2oat-35.13 +compiler.java-dex2oat-3513.exe=/opt/compiler-explorer/dex2oat-35.13/x86_64/bin/dex2oat64 +compiler.java-dex2oat-3513.objdumper=/opt/compiler-explorer/dex2oat-35.13/x86_64/bin/oatdump +compiler.java-dex2oat-3513.d8Id=java-d8-8718 +compiler.java-dex2oat-3513.profmanPath=/opt/compiler-explorer/dex2oat-35.13/x86_64/bin/profman + compiler.java-dex2oat-3511.name=ART dex2oat aml_art_351110180 (Nov 2024) compiler.java-dex2oat-3511.artArtifactDir=/opt/compiler-explorer/dex2oat-35.11 compiler.java-dex2oat-3511.exe=/opt/compiler-explorer/dex2oat-35.11/x86_64/bin/dex2oat64 diff --git a/etc/config/android-kotlin.amazon.properties b/etc/config/android-kotlin.amazon.properties index 2c6cef342..ce0f74fee 100644 --- a/etc/config/android-kotlin.amazon.properties +++ b/etc/config/android-kotlin.amazon.properties @@ -102,7 +102,7 @@ compiler.kotlin-r8-8242.exe=/opt/compiler-explorer/r8-8.2.42/r8-8.2.42.jar compiler.kotlin-r8-8233.name=r8 8.2.33 compiler.kotlin-r8-8233.exe=/opt/compiler-explorer/r8-8.2.33/r8-8.2.33.jar -group.dex2oat.compilers=kotlin-dex2oat-latest:kotlin-dex2oat-3310:kotlin-dex2oat-3411:kotlin-dex2oat-3413:kotlin-dex2oat-3414:kotlin-dex2oat-3415:kotlin-dex2oat-3416:kotlin-dex2oat-3417:kotlin-dex2oat-3418:kotlin-dex2oat-3508:kotlin-dex2oat-3509:kotlin-dex2oat-3510:kotlin-dex2oat-3511 +group.dex2oat.compilers=kotlin-dex2oat-latest:kotlin-dex2oat-3310:kotlin-dex2oat-3411:kotlin-dex2oat-3413:kotlin-dex2oat-3414:kotlin-dex2oat-3415:kotlin-dex2oat-3416:kotlin-dex2oat-3417:kotlin-dex2oat-3418:kotlin-dex2oat-3508:kotlin-dex2oat-3509:kotlin-dex2oat-3510:kotlin-dex2oat-3511:kotlin-dex2oat-3513:kotlin-dex2oat-3514:kotlin-dex2oat-3600 group.dex2oat.groupName=ART group.dex2oat.compilerType=dex2oat group.dex2oat.isSemVer=true @@ -116,6 +116,27 @@ compiler.kotlin-dex2oat-latest.d8Id=kotlin-d8-latest compiler.kotlin-dex2oat-latest.isNightly=true compiler.kotlin-dex2oat-latest.profmanPath=/opt/compiler-explorer/dex2oat-latest/x86_64/bin/profman +compiler.kotlin-dex2oat-3600.name=ART dex2oat android16-release (May 2025) +compiler.kotlin-dex2oat-3600.artArtifactDir=/opt/compiler-explorer/dex2oat-36.0 +compiler.kotlin-dex2oat-3600.exe=/opt/compiler-explorer/dex2oat-36.0/x86_64/bin/dex2oat64 +compiler.kotlin-dex2oat-3600.objdumper=/opt/compiler-explorer/dex2oat-36.0/x86_64/bin/oatdump +compiler.kotlin-dex2oat-3600.d8Id=kotlin-d8-8718 +compiler.kotlin-dex2oat-3600.profmanPath=/opt/compiler-explorer/dex2oat-36.0/x86_64/bin/profman + +compiler.kotlin-dex2oat-3514.name=ART dex2oat aml_art_351410020 (Feb 2025) +compiler.kotlin-dex2oat-3514.artArtifactDir=/opt/compiler-explorer/dex2oat-35.14 +compiler.kotlin-dex2oat-3514.exe=/opt/compiler-explorer/dex2oat-35.14/x86_64/bin/dex2oat64 +compiler.kotlin-dex2oat-3514.objdumper=/opt/compiler-explorer/dex2oat-35.14/x86_64/bin/oatdump +compiler.kotlin-dex2oat-3514.d8Id=kotlin-d8-8718 +compiler.kotlin-dex2oat-3514.profmanPath=/opt/compiler-explorer/dex2oat-35.14/x86_64/bin/profman + +compiler.kotlin-dex2oat-3513.name=ART dex2oat aml_art_351310060 (Jan 2025) +compiler.kotlin-dex2oat-3513.artArtifactDir=/opt/compiler-explorer/dex2oat-35.13 +compiler.kotlin-dex2oat-3513.exe=/opt/compiler-explorer/dex2oat-35.13/x86_64/bin/dex2oat64 +compiler.kotlin-dex2oat-3513.objdumper=/opt/compiler-explorer/dex2oat-35.13/x86_64/bin/oatdump +compiler.kotlin-dex2oat-3513.d8Id=kotlin-d8-8718 +compiler.kotlin-dex2oat-3513.profmanPath=/opt/compiler-explorer/dex2oat-35.13/x86_64/bin/profman + compiler.kotlin-dex2oat-3511.name=ART dex2oat aml_art_351110180 (Nov 2024) compiler.kotlin-dex2oat-3511.artArtifactDir=/opt/compiler-explorer/dex2oat-35.11 compiler.kotlin-dex2oat-3511.exe=/opt/compiler-explorer/dex2oat-35.11/x86_64/bin/dex2oat64 diff --git a/etc/config/c++.amazon.properties b/etc/config/c++.amazon.properties index 22229c0be..e449500dd 100644 --- a/etc/config/c++.amazon.properties +++ b/etc/config/c++.amazon.properties @@ -4675,7 +4675,7 @@ compiler.z180-clang-1507.options=-target z180 -g0 -nostdinc -fno-threadsafe-stat ################################# ################################# # Installed libs -libs=abseil:array:async_simple:belleviews:beman_any_view:beman_exemplar:beman_execution:beman_iterator_interface:beman_inplace_vector:beman_net:beman_optional:beman_scope:beman_task:benchmark:benri:blaze:boost:bmpi3:bmulti:brigand:bronto:catch2:cccl:cctz:cereal:cmcstl2:cnl:cppcoro:cppitertools:cpptrace:crosscables:ctbignum:cthash:ctre:date:dataframe:dawjson:dlib:doctest:eastl:eigen:enoki:entt:etl:eve:expected_lite:fastor:flux:fmt:gcem:gemmlowp:glaze:glm:gnufs:gnulibbacktrace:gnuexp:googletest:gsl:hdf5:hedley:hfsm:highfive:highway:hotels-template-library:hpx:immer:jsoncons:jsoncpp:kiwaku:kokkos:kumi:kvasir:kyosu:lager:lagom:lexy:libassert:libbpf:libguarded:libsimdpp:libuv:llvm:llvmfs:lua:magic_enum:mfem:mimicpp:mlir:mp-coro:mp-units:namedtype:nanorange:nlohmann_json:nsimd:ofw:openssl:outcome:pegtl:pipes:ppdt:proxy:pugixml:pybind11:python:rangesv3:raberu:rapidjson:re2:reactive_plus_plus:scnlib:seastar:seqan3:simde:simdjson:sol2:spdlog:spy:stdexec:strong_type:taojson:taskflow:tbb:thinkcell:tlexpected:toml11:tomlplusplus:trompeloeil:tts:type_safe:unifex:ureact:vcl:xercesc:xsimd:xtensor:xtl:yomm2:zug:cli11:avr-libstdcpp:curl:copperspice:sqlite:ztdcuneicode:ztdencodingtables:ztdidk:ztdstaticcontainers:ztdtext:ztdplatform:qt:quill:pcre2:widberg-defs:jwt-cpp:xieite:option:mdspan:graaf +libs=abseil:array:async_simple:belleviews:beman_any_view:beman_exemplar:beman_execution:beman_iterator_interface:beman_inplace_vector:beman_net:beman_optional:beman_scope:beman_task:benchmark:benri:blaze:boost:bmpi3:bmulti:brigand:bronto:catch2:cccl:cctz:cereal:cmcstl2:cnl:cppcoro:cppitertools:cpptrace:crosscables:ctbignum:cthash:ctre:date:dataframe:dawjson:dlib:doctest:eastl:eigen:enoki:entt:etl:eve:expected_lite:fastor:flux:fmt:gcem:gemmlowp:glaze:glm:gnufs:gnulibbacktrace:gnuexp:googletest:gsl:hdf5:hedley:hfsm:highfive:highway:hotels-template-library:hpx:immer:jsoncons:jsoncpp:kiwaku:kokkos:kumi:kvasir:kyosu:lager:lagom:lexy:libassert:libbpf:libguarded:libsimdpp:libuv:llvm:llvmfs:lua:magic_enum:mfem:mimicpp:mlir:mp-coro:mp-units:namedtype:nanorange:nlohmann_json:nsimd:ofw:openssl:outcome:pegtl:pipes:ppdt:proxy:pugixml:pybind11:python:rangesv3:raberu:rapidjson:re2:reactive_plus_plus:scnlib:seastar:seqan3:simde:simdjson:sol2:spdlog:spy:stdexec:strong_type:taojson:taskflow:tbb:thinkcell:tlexpected:toml11:tomlplusplus:trompeloeil:tts:type_safe:unifex:ureact:vcl:xercesc:xsimd:xtensor:xtl:yomm2:zug:cli11:avr-libstdcpp:curl:copperspice:sqlite:ztdcuneicode:ztdencodingtables:ztdidk:ztdstaticcontainers:ztdtext:ztdplatform:qt:quill:pcre2:widberg-defs:jwt-cpp:xieite:option:mdspan:graaf:fusedkernellibrary libs.abseil.name=Abseil libs.abseil.versions=202501270 @@ -6711,6 +6711,12 @@ libs.graaf.versions=110 libs.graaf.versions.110.path=/opt/compiler-explorer/libs/graaf/v1.1.0/include libs.graaf.versions.110.version=1.1.0 +libs.fusedkernellibrary.name=fusedkernellibrary +libs.fusedkernellibrary.url=https://github.com/Libraries-Openly-Fused/FusedKernelLibrary +libs.fusedkernellibrary.versions=Beta-019 +libs.fusedkernellibrary.versions.Beta-019.path=/opt/compiler-explorer/libs/fusedkernellibrary/Beta-0.1.9/include +libs.fusedkernellibrary.versions.Beta-019.version=Beta-0.1.9 + ################################# ################################# # Installed tools diff --git a/etc/config/ispc.amazon.properties b/etc/config/ispc.amazon.properties index 0ae282ca9..283faf56e 100644 --- a/etc/config/ispc.amazon.properties +++ b/etc/config/ispc.amazon.properties @@ -1,10 +1,13 @@ compilers=&ispc -defaultCompiler=ispc1270 +defaultCompiler=ispc1280 objdumper=/opt/compiler-explorer/gcc-14.2.0/bin/objdump -group.ispc.compilers=ispc1270:ispc1260:ispc1253:ispc1250:ispc1240:ispc1230:ispc1220:ispc1210:ispc1200:ispc1190:ispc1180:ispc1170:ispc1161:ispc1160:ispc1150:ispc1141:ispc1140:ispc1130:ispc1120:ispc1110:ispc1100:ispc192:ispc191:ispc-trunk +group.ispc.compilers=ispc1280:ispc1270:ispc1260:ispc1253:ispc1250:ispc1240:ispc1230:ispc1220:ispc1210:ispc1200:ispc1190:ispc1180:ispc1170:ispc1161:ispc1160:ispc1150:ispc1141:ispc1140:ispc1130:ispc1120:ispc1110:ispc1100:ispc192:ispc191:ispc-trunk group.ispc.isSemVer=true group.ispc.baseName=ispc +compiler.ispc1280.exe=/opt/compiler-explorer/ispc-1.28.0/bin/ispc +compiler.ispc1280.semver=1.28.0 +compiler.ispc1280.executableLinker=/opt/compiler-explorer/gcc-14.2.0/bin/gcc compiler.ispc1270.exe=/opt/compiler-explorer/ispc-1.27.0/bin/ispc compiler.ispc1270.semver=1.27.0 compiler.ispc1270.executableLinker=/opt/compiler-explorer/gcc-14.2.0/bin/gcc diff --git a/etc/nsjail/compilers-and-tools.cfg b/etc/nsjail/compilers-and-tools.cfg index aa28563ec..77cbb399b 100644 --- a/etc/nsjail/compilers-and-tools.cfg +++ b/etc/nsjail/compilers-and-tools.cfg @@ -231,6 +231,16 @@ mount { is_bind: true } +mount { + src: "/cefs" + dst: "/cefs" + is_bind: true + # needed for cefs to see new mounts. + # needs ce's patched nsjail to work + # http://github.com/compiler-explorer/nsjail + needs_mount_propagation: true +} + # Needed for icc mount { src: "/opt/intel" diff --git a/etc/nsjail/user-execution.cfg b/etc/nsjail/user-execution.cfg index 0d57f725b..7f136735a 100644 --- a/etc/nsjail/user-execution.cfg +++ b/etc/nsjail/user-execution.cfg @@ -209,6 +209,16 @@ mount { is_bind: true } +mount { + src: "/cefs" + dst: "/cefs" + is_bind: true + # needed for cefs to see new mounts. + # needs ce's patched nsjail to work + # http://github.com/compiler-explorer/nsjail + needs_mount_propagation: true +} + # Remove some sensitive stuff from execution mount { dst: "/opt/compiler-explorer/sonar" diff --git a/lib/compilers/clang.ts b/lib/compilers/clang.ts index e41f64330..b7c60d5a3 100644 --- a/lib/compilers/clang.ts +++ b/lib/compilers/clang.ts @@ -144,22 +144,6 @@ export class ClangCompiler extends BaseCompiler { return super.runExecutable(executable, executeParameters, homeDir); } - forceDwarf4UnlessOverridden(options: string[]) { - const hasOverride = _.any(options, (option: string) => { - return option.includes('-gdwarf-') || option.includes('-fdebug-default-version='); - }); - - if (!hasOverride) return ['-gdwarf-4'].concat(options); - - return options; - } - - override optionsForFilter(filters: ParseFiltersAndOutputOptions, outputFilename: string, userOptions?: string[]) { - const options = super.optionsForFilter(filters, outputFilename); - - return this.forceDwarf4UnlessOverridden(options); - } - // Clang cross-compile with -stdlib=libc++ is currently (up to at least 18.1.0) broken: // https://github.com/llvm/llvm-project/issues/57104 // diff --git a/lib/demangler/base.ts b/lib/demangler/base.ts index 20069ead5..6b447645a 100644 --- a/lib/demangler/base.ts +++ b/lib/demangler/base.ts @@ -44,7 +44,7 @@ export class BaseDemangler extends AsmRegex { readonly includeMetadata: boolean; readonly compiler: BaseCompiler; - readonly jumpDef = /(j\w+|b|bl|blx)\s+([$_a-z][\w$@]*|"[$_a-z][\w$@]*")/i; + readonly jumpDef = /(j\w+|b|bl|blx)\s+([$_a-z][\w$.@]*|"[$_a-z][\w$.@]*")/i; readonly callDef = /callq?\s+([$._a-z][\w$.@]*|"[$._a-z][\w$.@]*")/i; readonly callPtrDef1 = /callq?.*ptr\s\[[a-z]*\s\+\s([$._a-z][\w$.@]*|"[$._a-z][\w$.@]*")]/i; readonly callPtrDef2 = /callq?\s+([$*._a-z][\w$.@]*|"[$*._a-z][\w$.@]*")/i; diff --git a/test/base-compiler-tests.ts b/test/base-compiler-tests.ts index 4bc149b8d..9ef330ed4 100644 --- a/test/base-compiler-tests.ts +++ b/test/base-compiler-tests.ts @@ -735,7 +735,7 @@ describe('Target hints', () => { const compiler = new ClangCompiler(noExecuteSupportCompilerInfo, ce); const args = - '-gdwarf-4 -g -o output.s -mllvm --x86-asm-syntax=intel -S --gcc-toolchain=/opt/compiler-explorer/gcc-13.2.0 -fcolor-diagnostics -fno-crash-diagnostics --target=riscv64 example.cpp -isystem/opt/compiler-explorer/libs/abseil'; + '-g -o output.s -mllvm --x86-asm-syntax=intel -S --gcc-toolchain=/opt/compiler-explorer/gcc-13.2.0 -fcolor-diagnostics -fno-crash-diagnostics --target=riscv64 example.cpp -isystem/opt/compiler-explorer/libs/abseil'; const argArray = splitArguments(args); const hint = compiler.getTargetHintFromCompilerArgs(argArray); expect(hint).toBe('riscv64'); diff --git a/test/demangler-tests.ts b/test/demangler-tests.ts index 634e1b886..453ce2b43 100644 --- a/test/demangler-tests.ts +++ b/test/demangler-tests.ts @@ -198,6 +198,29 @@ describe('Basic demangling', () => { ]); }); + it('AArch64 branch with dotted symbol', () => { + const result = { + asm: [ + { + text: 'b _ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$i32$GT$3fmt17h0feee90717706137E', + }, + ], + }; + + const demangler = new DummyCppDemangler(cppfiltpath, new DummyCompiler(), ['-n']); + + return Promise.all([ + demangler + .process(result) + .then(output => { + expect(output.asm[0].text).toEqual( + 'b core::fmt::num::imp::::fmt::h0feee90717706137', + ); + }) + .catch(catchCppfiltNonexistence), + ]); + }); + it('Two destructors', () => { const result = { asm: [ @@ -251,7 +274,14 @@ describe('Basic demangling', () => { }); it('Should also support ARM branch instructions', () => { - const result = {asm: [{text: ' bl _ZN3FooC1Ev'}]}; + const result = { + asm: [ + {text: ' bl _ZN3FooC1Ev'}, + { + text: 'b _ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$i32$GT$3fmt17h0feee90717706137E', + }, + ], + }; const demangler = new DummyCppDemangler(cppfiltpath, new DummyCompiler(), ['-n']); @@ -260,7 +290,12 @@ describe('Basic demangling', () => { demangler.collectLabels(); const output = demangler.othersymbols.listSymbols(); - expect(output).toEqual(['_ZN3FooC1Ev']); + expect(output.sort()).toEqual( + [ + '_ZN3FooC1Ev', + '_ZN4core3fmt3num3imp52_$LT$impl$u20$core..fmt..Display$u20$for$u20$i32$GT$3fmt17h0feee90717706137E', + ].sort(), + ); }); it('Should NOT handle undecorated labels', () => { diff --git a/test/tool-tests.ts b/test/tool-tests.ts index 99e531818..82cbe6a34 100644 --- a/test/tool-tests.ts +++ b/test/tool-tests.ts @@ -189,7 +189,6 @@ describe('CompilerDropInTool', () => { it('More toolchain magic', () => { const options = [ - '-gdwarf-4', '-g', '-o', 'output.s', @@ -213,7 +212,6 @@ describe('CompilerDropInTool', () => { it('Should be able to swap toolchain', () => { const exe = '/opt/compiler-explorer/clang-16.0.0/bin/clang++'; const options = [ - '-gdwarf-4', '-g', '-o', 'output.s', @@ -231,7 +229,6 @@ describe('CompilerDropInTool', () => { const replacedOptions = replaceToolchainArg(options, '/opt/compiler-explorer/gcc-11.1.0'); expect(replacedOptions).toEqual([ - '-gdwarf-4', '-g', '-o', 'output.s',