about summary refs log tree commit diff
path: root/tests/assembly/stack-protector
AgeCommit message (Collapse)AuthorLines
2025-07-22Rename `tests/assembly` into `tests/assembly-llvm`Guillaume Gomez-1351/+0
2025-06-13Unimplement unsized_localsmejrs-73/+5
2025-03-07Rollup merge of #137957 - Noratrieb:no, r=wesleywiserJacob Pratt-5/+1
Remove i586-pc-windows-msvc See [MCP 840](https://github.com/rust-lang/compiler-team/issues/840). I left a specialized error message that should help users that hit this in the wild (for example, because they use it in their CI). ``` error: Error loading target specification: the `i586-pc-windows-msvc` target has been removed. Use the `i686-pc-windows-msvc` target instead. Windows 10 (the minimum required OS version) requires a CPU baseline of at least i686 so you can safely switch. Run `rustc --print target-list` for a list of built-in targets ``` ``@workingjubilee`` ``@calebzulawski`` fyi portable-simd uses this target in CI, if you wanna remove it already before this happens
2025-03-03Remove i586-pc-windows-msvcNoratrieb-5/+1
See MCP 840. I left a specialized error message that should help users that hit this in the wild (for example, because they use it in their CI).
2025-03-03Rollup merge of #136938 - mustartt:fix-stack-protector-filecheck, ↵Matthias Krüger-16/+16
r=Mark-Simulacrum Remove `:` from `stack-protector-heuristics-effect.rs` Filecheck Pattern With function sections, the assembly label does not necessarily end in `:`. Remove trailing `:` to be more consistent with the rest of the existing Filecheck patterns. ``` // CHECK-LABEL: local_string_addr_taken #[no_mangle] pub fn local_string_addr_taken(f: fn(&String)) { let x = String::new(); f(&x); ```
2025-02-24tests: use minicore moreDavid Wood-4/+3
minicore makes it much easier to add new language items to all of the existing `no_core` tests.
2025-02-20fix label suffixHenry Jiang-16/+16
2025-02-20remove : from stack-protector-heuristics-effect.rs filecheckHenry Jiang-4/+4
2024-09-18Update the minimum external LLVM to 18Josh Stone-1/+0
2024-05-30Run rustfmt on `tests/assembly/`.Nicholas Nethercote-26/+3
2024-05-28Make more of the test suite run on Mac CatalystMads Marquart-4/+1
This adds the `only-apple`/`ignore-apple` compiletest directive, and uses that basically everywhere instead of `only-macos`/`ignore-macos`. Some of the updates in `run-make` are a bit redundant, as they use `ignore-cross-compile` and won't run on iOS - but using Apple in these is still more correct, so I've made that change anyhow.
2024-04-22also update windows slack-protector testsErik Desjardins-44/+16
2024-04-11adjust stack-protector test (which inappropriately depends on IR types)Erik Desjardins-40/+15
2024-03-11Rename `wasm32-wasi-preview1-threads` to `wasm32-wasip1-threads`Alex Crichton-2/+1
This commit renames the current `wasm32-wasi-preview1-threads` target to `wasm32-wasip1-threads`. The need for this rename is a bit unfortunate as the previous name was chosen in an attempt to be future-compatible with other WASI targets. Originally this target was proposed to be `wasm32-wasi-threads`, and that's what was originally implemented in wasi-sdk as well. After discussion though and with the plans for the upcoming component-model target (now named `wasm32-wasip2`) the "preview1" naming was chosen for the threads-based target. The WASI subgroup later decided that it was time to drop the "preview" terminology and recommends "pX" instead, hence previous PRs to add `wasm32-wasip2` and rename `wasm32-wasi` to `wasm32-wasip1`. So, with all that history, the "proper name" for this target is different than its current name, so one way or another a rename is required. This PR proposes renaming this target cold-turkey, unlike `wasm32-wasi` which is having a long transition period to change its name. The threads-based target is predicted to see only a fraction of the traffic of `wasm32-wasi` due to the unstable nature of the WASI threads proposal itself. While I was here I updated the in-tree documentation in the target spec file itself as most of the documentation was copied from the original WASI target and wasn't as applicable to this target. Also, as an aside, I can at least try to apologize for all the naming confusion here, but this is hopefully the last WASI-related rename.
2024-03-02Add a new `wasm32-wasip1` target to rustcAlex Crichton-1/+1
This commit adds a new target called `wasm32-wasip1` to rustc. This new target is explained in these two MCPs: * https://github.com/rust-lang/compiler-team/issues/607 * https://github.com/rust-lang/compiler-team/issues/695 In short, the previous `wasm32-wasi` target is going to be renamed to `wasm32-wasip1` to better live alongside the [new `wasm32-wasip2` target](https://github.com/rust-lang/rust/pull/119616). This new target is added alongside the `wasm32-wasi` target and has the exact same definition as the previous target. This PR is effectively a rename of `wasm32-wasi` to `wasm32-wasip1`. Note, however, that as explained in rust-lang/compiler-team#695 the previous `wasm32-wasi` target is not being removed at this time. This change will reach stable Rust before even a warning about the rename will be printed. At this time this change is just the start where a new target is introduced and users can start migrating if they support only Nightly for example.
2024-02-22[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives许杰友 Jieyou Xu (Joe)-207/+207
2024-02-22Fix tests/assembly/stack-protector/stack-protector-target-support.rs许杰友 Jieyou Xu (Joe)-1/+2
Previously the test seems to not actually test redox.
2023-11-20Remove now deprecated target x86_64-sun-solaris.Petr Sumbera-1/+1
2023-10-28Remove asmjs from testsJubilee Young-3/+2
2023-10-19Auto merge of #116037 - wesleywiser:stack_protector_test_windows, r=cuviperbors-1/+821
Add `-Zstack-protector` test for Windows targets Add variants of the `stack-protector-heuristics-effect.rs` test for 32-bit and 64-bit MSVC Windows and update the original test to run on GNU Windows targets. I added two tests instead of trying to modify the original because: - MSVC uses a different function name (`__security_check_cookie` to perform the test rather than doing the test inline and calling `__stack_chk_fail`). - LLVM's stack protection pass doesn't currently support generating checks for [frames with funclet based EH personality](https://github.com/llvm/llvm-project/blob/37fd3c96b917096d8a550038f6e61cdf0fc4174f/llvm/lib/CodeGen/StackProtector.cpp#L103C1-L109C4). - 32-bit Windows uses classic EH while 64-bit Windows uses table-based EH which results in slightly different codegen. [CI run with test passing on {i686,x86_64}-{msvc,mingw}](https://github.com/rust-lang/rust/actions/runs/6275450644/job/17042958375?pr=116037)
2023-10-02Limit to LLVM 17.0.2 to work around WinEH codegen bugNikita Popov-0/+1
2023-10-02Update stack protector testNikita Popov-1/+1
We no longer generate a protector for the strong case in this test, which is actually the expected behavior per the test comment.
2023-09-21Add stack-protector test for WindowsWesley Wiser-1/+821
2023-07-29Add wasm32-wasi-threads target + WASI threadsGeorgii Rylov-12/+14
2023-07-02test-various: run codegen and assembly testsJan-Mirko Otter-0/+1
2023-06-16remove box_free and replace with drop implDrMeepster-1/+1
2023-01-11Move /src/test to /testsAlbert Larsan-0/+681