diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-gcc/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu-gcc/Dockerfile new file mode 100644 index 0000000000000..0fd14ae232d73 --- /dev/null +++ b/src/ci/docker/host-x86_64/x86_64-gnu-gcc/Dockerfile @@ -0,0 +1,54 @@ +FROM ubuntu:22.04 + +ARG DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y --no-install-recommends \ + bzip2 \ + g++ \ + make \ + ninja-build \ + file \ + curl \ + ca-certificates \ + python3 \ + git \ + cmake \ + sudo \ + gdb \ + libssl-dev \ + pkg-config \ + xz-utils \ + mingw-w64 \ + zlib1g-dev \ + libzstd-dev \ + # libgccjit dependencies + flex \ + libmpfr-dev \ + libgmp-dev \ + libmpc3 \ + libmpc-dev \ + && rm -rf /var/lib/apt/lists/* + +COPY scripts/sccache.sh /scripts/ +RUN sh /scripts/sccache.sh + +ENV NO_DEBUG_ASSERTIONS 1 +ENV RUST_CONFIGURE_ARGS \ + --build=x86_64-unknown-linux-gnu \ + --enable-sanitizers \ + --enable-profiler \ + --enable-compiler-docs \ + --set llvm.libzstd=true \ + --set 'rust.codegen-backends=[\"llvm\",\"gcc\"]' +ENV SCRIPT python3 ../x.py \ + --stage 2 \ + test tests \ + --test-codegen-backend gcc \ + --skip tests/coverage \ + --skip tests/coverage-run-rustdoc \ + --skip tests/rustdoc \ + --skip tests/rustdoc-gui \ + --skip tests/rustdoc-js \ + --skip tests/rustdoc-js-std \ + --skip tests/rustdoc-json \ + --skip tests/rustdoc-ui \ + --set 'rust.codegen-backends=[\"llvm\",\"gcc\"]' diff --git a/src/ci/github-actions/jobs.yml b/src/ci/github-actions/jobs.yml index 4384ec7676975..eeef94483fda0 100644 --- a/src/ci/github-actions/jobs.yml +++ b/src/ci/github-actions/jobs.yml @@ -141,6 +141,9 @@ pr: <<: *job-linux-4c - name: x86_64-gnu-miri <<: *job-linux-4c + - name: x86_64-gnu-gcc + doc_url: https://rustc-dev-guide.rust-lang.org/tests/codegen-backend-tests/cg_gcc.html + <<: *job-linux-4c # Jobs that run when you perform a try build (@bors try) # These jobs automatically inherit envs.try, to avoid repeating @@ -348,6 +351,10 @@ auto: - name: x86_64-gnu <<: *job-linux-4c + - name: x86_64-gnu-gcc + doc_url: https://rustc-dev-guide.rust-lang.org/tests/codegen-backend-tests/cg_gcc.html + <<: *job-linux-4c + # This job ensures commits landing on nightly still pass the full # test suite on the stable channel. There are some UI tests that # depend on the channel being built (for example if they include the diff --git a/tests/crashes/118244.rs b/tests/crashes/118244.rs index bfa1f5b7dd489..0330d0d838ab2 100644 --- a/tests/crashes/118244.rs +++ b/tests/crashes/118244.rs @@ -1,5 +1,6 @@ //@ known-bug: #118244 //@ compile-flags: -Cdebuginfo=2 +//@ ignore-backends: gcc #![allow(incomplete_features)] #![feature(generic_const_exprs)] diff --git a/tests/crashes/134479.rs b/tests/crashes/134479.rs index 0e4ddb2bfd56d..02047050cec40 100644 --- a/tests/crashes/134479.rs +++ b/tests/crashes/134479.rs @@ -1,5 +1,6 @@ //@ known-bug: #134479 //@ compile-flags: -Csymbol-mangling-version=v0 -Cdebuginfo=1 +//@ ignore-backends: gcc #![feature(generic_const_exprs)] diff --git a/tests/crashes/139462.rs b/tests/crashes/139462.rs index 05bb246d7be0e..d3be14b2be2a3 100644 --- a/tests/crashes/139462.rs +++ b/tests/crashes/139462.rs @@ -1,5 +1,6 @@ //@ known-bug: #139462 //@ compile-flags: -Cdebuginfo=2 +//@ ignore-backends: gcc #![feature(unsafe_binders)] use std::unsafe_binder::wrap_binder; fn main() { diff --git a/tests/crashes/34127.rs b/tests/crashes/34127.rs index 26ebe722475f3..58725bff4c084 100644 --- a/tests/crashes/34127.rs +++ b/tests/crashes/34127.rs @@ -1,6 +1,7 @@ //@ compile-flags: -g -Copt-level=0 -Z verify-llvm-ir //@ known-bug: #34127 //@ only-64bit +//@ ignore-backends: gcc pub fn main() { let _a = [(); 1 << 63]; diff --git a/tests/debuginfo/associated-types.rs b/tests/debuginfo/associated-types.rs index 7c2a793c8cd39..e74a592662d2a 100644 --- a/tests/debuginfo/associated-types.rs +++ b/tests/debuginfo/associated-types.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== // gdb-command:run diff --git a/tests/debuginfo/basic-stepping.rs b/tests/debuginfo/basic-stepping.rs index f6399814a43a8..aa9f29259d05a 100644 --- a/tests/debuginfo/basic-stepping.rs +++ b/tests/debuginfo/basic-stepping.rs @@ -6,6 +6,7 @@ //@ ignore-loongarch64: Doesn't work yet. //@ ignore-riscv64: Doesn't work yet. //@ compile-flags: -g +//@ ignore-backends: gcc // gdb-command: run // FIXME(#97083): Should we be able to break on initialization of zero-sized types? diff --git a/tests/debuginfo/basic-types-globals-metadata.rs b/tests/debuginfo/basic-types-globals-metadata.rs index fc8f6dc173fcc..cc32b338da728 100644 --- a/tests/debuginfo/basic-types-globals-metadata.rs +++ b/tests/debuginfo/basic-types-globals-metadata.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // gdb-command:run // gdb-command:whatis basic_types_globals_metadata::B diff --git a/tests/debuginfo/basic-types-globals.rs b/tests/debuginfo/basic-types-globals.rs index 9d28820ce685c..cf8f9984c2a0c 100644 --- a/tests/debuginfo/basic-types-globals.rs +++ b/tests/debuginfo/basic-types-globals.rs @@ -5,6 +5,7 @@ //@ [lto] compile-flags:-C lto //@ [lto] no-prefer-dynamic +//@ ignore-backends: gcc // gdb-command:run // gdb-command:print B diff --git a/tests/debuginfo/basic-types-metadata.rs b/tests/debuginfo/basic-types-metadata.rs index 941db81a4decc..495ef81a16c6b 100644 --- a/tests/debuginfo/basic-types-metadata.rs +++ b/tests/debuginfo/basic-types-metadata.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // gdb-command:run // gdb-command:whatis unit diff --git a/tests/debuginfo/basic-types-mut-globals.rs b/tests/debuginfo/basic-types-mut-globals.rs index e979d82b55c62..6617f91c3df53 100644 --- a/tests/debuginfo/basic-types-mut-globals.rs +++ b/tests/debuginfo/basic-types-mut-globals.rs @@ -6,6 +6,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // gdb-command:run diff --git a/tests/debuginfo/basic-types.rs b/tests/debuginfo/basic-types.rs index 7862f45b3c4e6..9b1452fab4135 100644 --- a/tests/debuginfo/basic-types.rs +++ b/tests/debuginfo/basic-types.rs @@ -6,6 +6,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/borrowed-basic.rs b/tests/debuginfo/borrowed-basic.rs index 334eae38318e6..86c4df12866ef 100644 --- a/tests/debuginfo/borrowed-basic.rs +++ b/tests/debuginfo/borrowed-basic.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/borrowed-c-style-enum.rs b/tests/debuginfo/borrowed-c-style-enum.rs index d382a389fe412..b331775743b4c 100644 --- a/tests/debuginfo/borrowed-c-style-enum.rs +++ b/tests/debuginfo/borrowed-c-style-enum.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/borrowed-enum.rs b/tests/debuginfo/borrowed-enum.rs index 893dd777bcde6..48dce139a2f31 100644 --- a/tests/debuginfo/borrowed-enum.rs +++ b/tests/debuginfo/borrowed-enum.rs @@ -2,6 +2,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/borrowed-struct.rs b/tests/debuginfo/borrowed-struct.rs index 5d64ba3cbefbd..876ec30b14019 100644 --- a/tests/debuginfo/borrowed-struct.rs +++ b/tests/debuginfo/borrowed-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/borrowed-tuple.rs b/tests/debuginfo/borrowed-tuple.rs index fd4e22feb0691..42964c79485a3 100644 --- a/tests/debuginfo/borrowed-tuple.rs +++ b/tests/debuginfo/borrowed-tuple.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/borrowed-unique-basic.rs b/tests/debuginfo/borrowed-unique-basic.rs index 54d7f27bb0c80..c230ceae1c758 100644 --- a/tests/debuginfo/borrowed-unique-basic.rs +++ b/tests/debuginfo/borrowed-unique-basic.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/box.rs b/tests/debuginfo/box.rs index d4612f98a5f17..c5034410f49f4 100644 --- a/tests/debuginfo/box.rs +++ b/tests/debuginfo/box.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/boxed-struct.rs b/tests/debuginfo/boxed-struct.rs index ca072693cdcd0..fc676e8ce618a 100644 --- a/tests/debuginfo/boxed-struct.rs +++ b/tests/debuginfo/boxed-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/by-value-self-argument-in-trait-impl.rs b/tests/debuginfo/by-value-self-argument-in-trait-impl.rs index a49a375569b12..409cfc533c879 100644 --- a/tests/debuginfo/by-value-self-argument-in-trait-impl.rs +++ b/tests/debuginfo/by-value-self-argument-in-trait-impl.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/c-style-enum-in-composite.rs b/tests/debuginfo/c-style-enum-in-composite.rs index 47b4b980f9ccd..dd5e4f8b65d71 100644 --- a/tests/debuginfo/c-style-enum-in-composite.rs +++ b/tests/debuginfo/c-style-enum-in-composite.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/c-style-enum.rs b/tests/debuginfo/c-style-enum.rs index d5455be0cb56b..79438e3f2d439 100644 --- a/tests/debuginfo/c-style-enum.rs +++ b/tests/debuginfo/c-style-enum.rs @@ -2,6 +2,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/captured-fields-1.rs b/tests/debuginfo/captured-fields-1.rs index 69ca3ecd812dd..53f77d3146855 100644 --- a/tests/debuginfo/captured-fields-1.rs +++ b/tests/debuginfo/captured-fields-1.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ edition:2021 +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== // gdb-command:run diff --git a/tests/debuginfo/captured-fields-2.rs b/tests/debuginfo/captured-fields-2.rs index 24bff1d3f35d7..cdebeaf3a9753 100644 --- a/tests/debuginfo/captured-fields-2.rs +++ b/tests/debuginfo/captured-fields-2.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ edition:2021 +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== // gdb-command:run diff --git a/tests/debuginfo/closure-in-generic-function.rs b/tests/debuginfo/closure-in-generic-function.rs index 0bb72209cc822..88769399f0895 100644 --- a/tests/debuginfo/closure-in-generic-function.rs +++ b/tests/debuginfo/closure-in-generic-function.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/collapse-debuginfo-in-non-collapse-macro.rs b/tests/debuginfo/collapse-debuginfo-in-non-collapse-macro.rs index 1aafcffa30472..bafa5408b1978 100644 --- a/tests/debuginfo/collapse-debuginfo-in-non-collapse-macro.rs +++ b/tests/debuginfo/collapse-debuginfo-in-non-collapse-macro.rs @@ -6,6 +6,7 @@ // without collapse_debuginfo attribute. //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/collapse-debuginfo-static-external.rs b/tests/debuginfo/collapse-debuginfo-static-external.rs index 2209bb9bd9481..6389bb734ddf3 100644 --- a/tests/debuginfo/collapse-debuginfo-static-external.rs +++ b/tests/debuginfo/collapse-debuginfo-static-external.rs @@ -3,11 +3,12 @@ // Test that static debug info is not collapsed with #[collapse_debuginfo(external)] //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== // gdb-command:info line collapse_debuginfo_static_external::FOO -// gdb-check:[...]Line 15[...] +// gdb-check:[...]Line 16[...] #[collapse_debuginfo(external)] macro_rules! decl_foo { diff --git a/tests/debuginfo/collapse-debuginfo-static.rs b/tests/debuginfo/collapse-debuginfo-static.rs index e6469da4785e7..a5542a44091a2 100644 --- a/tests/debuginfo/collapse-debuginfo-static.rs +++ b/tests/debuginfo/collapse-debuginfo-static.rs @@ -3,11 +3,12 @@ // Test that static debug info is collapsed with #[collapse_debuginfo(yes)] //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== // gdb-command:info line collapse_debuginfo_static::FOO -// gdb-check:[...]Line 19[...] +// gdb-check:[...]Line 20[...] #[collapse_debuginfo(yes)] macro_rules! decl_foo { diff --git a/tests/debuginfo/constant-ordering-prologue.rs b/tests/debuginfo/constant-ordering-prologue.rs index 3136aff238a2d..1d4674b1d32b0 100644 --- a/tests/debuginfo/constant-ordering-prologue.rs +++ b/tests/debuginfo/constant-ordering-prologue.rs @@ -1,6 +1,7 @@ //@ min-lldb-version: 310 //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/coroutine-locals.rs b/tests/debuginfo/coroutine-locals.rs index c2b8aef8a6738..d63ea4bde3675 100644 --- a/tests/debuginfo/coroutine-locals.rs +++ b/tests/debuginfo/coroutine-locals.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/coroutine-objects.rs b/tests/debuginfo/coroutine-objects.rs index 7ead154cbdb1f..f1165de4bfaaf 100644 --- a/tests/debuginfo/coroutine-objects.rs +++ b/tests/debuginfo/coroutine-objects.rs @@ -6,6 +6,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/cross-crate-spans.rs b/tests/debuginfo/cross-crate-spans.rs index 38176e46909c5..6ef17061070e8 100644 --- a/tests/debuginfo/cross-crate-spans.rs +++ b/tests/debuginfo/cross-crate-spans.rs @@ -3,6 +3,7 @@ extern crate cross_crate_spans; //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/cross-crate-type-uniquing.rs b/tests/debuginfo/cross-crate-type-uniquing.rs index 28ebc34388467..c29757ae7793f 100644 --- a/tests/debuginfo/cross-crate-type-uniquing.rs +++ b/tests/debuginfo/cross-crate-type-uniquing.rs @@ -3,6 +3,7 @@ extern crate cross_crate_debuginfo_type_uniquing; //@ no-prefer-dynamic //@ compile-flags:-g -C lto +//@ ignore-backends: gcc pub struct C; pub fn p() -> C { diff --git a/tests/debuginfo/destructured-fn-argument.rs b/tests/debuginfo/destructured-fn-argument.rs index fe8f91588e06a..27910ed46882e 100644 --- a/tests/debuginfo/destructured-fn-argument.rs +++ b/tests/debuginfo/destructured-fn-argument.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/destructured-for-loop-variable.rs b/tests/debuginfo/destructured-for-loop-variable.rs index 01c524083daee..12a9ff4172583 100644 --- a/tests/debuginfo/destructured-for-loop-variable.rs +++ b/tests/debuginfo/destructured-for-loop-variable.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/destructured-local.rs b/tests/debuginfo/destructured-local.rs index ff24c924aada3..ef595468b473f 100644 --- a/tests/debuginfo/destructured-local.rs +++ b/tests/debuginfo/destructured-local.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/dummy_span.rs b/tests/debuginfo/dummy_span.rs index d02eead470fa1..23822222006c2 100644 --- a/tests/debuginfo/dummy_span.rs +++ b/tests/debuginfo/dummy_span.rs @@ -1,6 +1,7 @@ //@ min-lldb-version: 310 //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/embedded-visualizer.rs b/tests/debuginfo/embedded-visualizer.rs index cbd8691394d54..3652036ae8b64 100644 --- a/tests/debuginfo/embedded-visualizer.rs +++ b/tests/debuginfo/embedded-visualizer.rs @@ -63,6 +63,7 @@ #![debugger_visualizer(gdb_script_file = "embedded-visualizer.py")] //@ aux-build: dependency-with-embedded-visualizers.rs +//@ ignore-backends: gcc extern crate dependency_with_embedded_visualizers; use dependency_with_embedded_visualizers::Person; diff --git a/tests/debuginfo/empty-string.rs b/tests/debuginfo/empty-string.rs index 6cf61e177714d..d9368001b6312 100644 --- a/tests/debuginfo/empty-string.rs +++ b/tests/debuginfo/empty-string.rs @@ -1,6 +1,7 @@ //@ ignore-windows-gnu: #128981 //@ ignore-android: FIXME(#10381) //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/enum-thinlto.rs b/tests/debuginfo/enum-thinlto.rs index 6eb33b2ef46a7..789755438a6b9 100644 --- a/tests/debuginfo/enum-thinlto.rs +++ b/tests/debuginfo/enum-thinlto.rs @@ -1,6 +1,7 @@ //@ min-lldb-version: 1800 //@ compile-flags:-g -Z thinlto //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/evec-in-struct.rs b/tests/debuginfo/evec-in-struct.rs index f08c436bbe3ae..1c0c0a36bace8 100644 --- a/tests/debuginfo/evec-in-struct.rs +++ b/tests/debuginfo/evec-in-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/extern-c-fn.rs b/tests/debuginfo/extern-c-fn.rs index 7130658f2d82b..3a8a110afa2cb 100644 --- a/tests/debuginfo/extern-c-fn.rs +++ b/tests/debuginfo/extern-c-fn.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== // gdb-command:run diff --git a/tests/debuginfo/function-arg-initialization.rs b/tests/debuginfo/function-arg-initialization.rs index 03fb1e2d062f5..1a681c7721163 100644 --- a/tests/debuginfo/function-arg-initialization.rs +++ b/tests/debuginfo/function-arg-initialization.rs @@ -9,6 +9,7 @@ //@ compile-flags:-g -Zmir-enable-passes=-SingleUseConsts // SingleUseConsts shouldn't need to be disabled, see #128945 //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/function-arguments.rs b/tests/debuginfo/function-arguments.rs index 64d026a705bfb..47c6ebe115547 100644 --- a/tests/debuginfo/function-arguments.rs +++ b/tests/debuginfo/function-arguments.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/function-call.rs b/tests/debuginfo/function-call.rs index 3d8d798928d7f..c0b23dc551ead 100644 --- a/tests/debuginfo/function-call.rs +++ b/tests/debuginfo/function-call.rs @@ -2,6 +2,7 @@ //@ min-gdb-version: 10.1 //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/function-names.rs b/tests/debuginfo/function-names.rs index b5aec5c595e73..75fc14129761b 100644 --- a/tests/debuginfo/function-names.rs +++ b/tests/debuginfo/function-names.rs @@ -3,6 +3,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/gdb-char.rs b/tests/debuginfo/gdb-char.rs index d296e675fa3e6..5f44fa5c4233d 100644 --- a/tests/debuginfo/gdb-char.rs +++ b/tests/debuginfo/gdb-char.rs @@ -4,6 +4,7 @@ //@ min-gdb-version: 11.2 //@ compile-flags: -g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/gdb-pretty-struct-and-enums.rs b/tests/debuginfo/gdb-pretty-struct-and-enums.rs index 08e01333a376e..ab6aea6b6316e 100644 --- a/tests/debuginfo/gdb-pretty-struct-and-enums.rs +++ b/tests/debuginfo/gdb-pretty-struct-and-enums.rs @@ -2,6 +2,7 @@ //@ ignore-android: FIXME(#10381) //@ compile-flags:-g +//@ ignore-backends: gcc // gdb-command: run diff --git a/tests/debuginfo/generic-enum-with-different-disr-sizes.rs b/tests/debuginfo/generic-enum-with-different-disr-sizes.rs index 5c5f05d9c4b1c..07a92619e211e 100644 --- a/tests/debuginfo/generic-enum-with-different-disr-sizes.rs +++ b/tests/debuginfo/generic-enum-with-different-disr-sizes.rs @@ -2,6 +2,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== // gdb-command:run diff --git a/tests/debuginfo/generic-function.rs b/tests/debuginfo/generic-function.rs index ab3cb6953ace4..9ca9eb32a2e10 100644 --- a/tests/debuginfo/generic-function.rs +++ b/tests/debuginfo/generic-function.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/generic-functions-nested.rs b/tests/debuginfo/generic-functions-nested.rs index 8ac2b8b9d7a1d..1a87827c7759d 100644 --- a/tests/debuginfo/generic-functions-nested.rs +++ b/tests/debuginfo/generic-functions-nested.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/generic-method-on-generic-struct.rs b/tests/debuginfo/generic-method-on-generic-struct.rs index 36a94f2999d7d..c549a14153659 100644 --- a/tests/debuginfo/generic-method-on-generic-struct.rs +++ b/tests/debuginfo/generic-method-on-generic-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/generic-static-method-on-struct-and-enum.rs b/tests/debuginfo/generic-static-method-on-struct-and-enum.rs index 09b515d69e495..be9f394f133d3 100644 --- a/tests/debuginfo/generic-static-method-on-struct-and-enum.rs +++ b/tests/debuginfo/generic-static-method-on-struct-and-enum.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // gdb-command:run diff --git a/tests/debuginfo/generic-struct-style-enum.rs b/tests/debuginfo/generic-struct-style-enum.rs index 4f580f8c515d2..7b7a36effd575 100644 --- a/tests/debuginfo/generic-struct-style-enum.rs +++ b/tests/debuginfo/generic-struct-style-enum.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // gdb-command:set print union on // gdb-command:run diff --git a/tests/debuginfo/generic-struct.rs b/tests/debuginfo/generic-struct.rs index 0196ca435447b..daf6554fab0a4 100644 --- a/tests/debuginfo/generic-struct.rs +++ b/tests/debuginfo/generic-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/generic-tuple-style-enum.rs b/tests/debuginfo/generic-tuple-style-enum.rs index 719b5c6161f00..de8681bc53618 100644 --- a/tests/debuginfo/generic-tuple-style-enum.rs +++ b/tests/debuginfo/generic-tuple-style-enum.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/include_string.rs b/tests/debuginfo/include_string.rs index 4ec23b68262a2..565bd09f89e98 100644 --- a/tests/debuginfo/include_string.rs +++ b/tests/debuginfo/include_string.rs @@ -3,6 +3,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // gdb-command:run // gdb-command:print string1.length // gdb-check:$1 = 48 diff --git a/tests/debuginfo/issue-57822.rs b/tests/debuginfo/issue-57822.rs index ba4e01196a4cb..59c0759737dd0 100644 --- a/tests/debuginfo/issue-57822.rs +++ b/tests/debuginfo/issue-57822.rs @@ -4,6 +4,7 @@ //@ min-lldb-version: 1800 //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/lexical-scope-in-for-loop.rs b/tests/debuginfo/lexical-scope-in-for-loop.rs index f591f48ad59d9..c2e97ad469ef2 100644 --- a/tests/debuginfo/lexical-scope-in-for-loop.rs +++ b/tests/debuginfo/lexical-scope-in-for-loop.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/lexical-scope-in-if-let.rs b/tests/debuginfo/lexical-scope-in-if-let.rs index b2c7790eab23a..3bc0c231b4d39 100644 --- a/tests/debuginfo/lexical-scope-in-if-let.rs +++ b/tests/debuginfo/lexical-scope-in-if-let.rs @@ -1,4 +1,5 @@ //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS ================================================================================== diff --git a/tests/debuginfo/lexical-scope-in-if.rs b/tests/debuginfo/lexical-scope-in-if.rs index 2b3a4ee5fc4a4..622188269307a 100644 --- a/tests/debuginfo/lexical-scope-in-if.rs +++ b/tests/debuginfo/lexical-scope-in-if.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/lexical-scope-in-match.rs b/tests/debuginfo/lexical-scope-in-match.rs index 0e369c6ca1645..329d959bc8488 100644 --- a/tests/debuginfo/lexical-scope-in-match.rs +++ b/tests/debuginfo/lexical-scope-in-match.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/lexical-scope-in-stack-closure.rs b/tests/debuginfo/lexical-scope-in-stack-closure.rs index 483d5dda86ce5..b6abf507f26b5 100644 --- a/tests/debuginfo/lexical-scope-in-stack-closure.rs +++ b/tests/debuginfo/lexical-scope-in-stack-closure.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/lexical-scope-in-unconditional-loop.rs b/tests/debuginfo/lexical-scope-in-unconditional-loop.rs index 129d0b8c83deb..270fbcf6ebf55 100644 --- a/tests/debuginfo/lexical-scope-in-unconditional-loop.rs +++ b/tests/debuginfo/lexical-scope-in-unconditional-loop.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/lexical-scope-in-unique-closure.rs b/tests/debuginfo/lexical-scope-in-unique-closure.rs index 93bea18d7cd9b..b4909a97bea50 100644 --- a/tests/debuginfo/lexical-scope-in-unique-closure.rs +++ b/tests/debuginfo/lexical-scope-in-unique-closure.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/lexical-scope-in-while.rs b/tests/debuginfo/lexical-scope-in-while.rs index 5fe76851bd7f0..e8e66d2835cd8 100644 --- a/tests/debuginfo/lexical-scope-in-while.rs +++ b/tests/debuginfo/lexical-scope-in-while.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/lexical-scope-with-macro.rs b/tests/debuginfo/lexical-scope-with-macro.rs index efec9a3b1ce7d..8c302a94ea2aa 100644 --- a/tests/debuginfo/lexical-scope-with-macro.rs +++ b/tests/debuginfo/lexical-scope-with-macro.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/lexical-scopes-in-block-expression.rs b/tests/debuginfo/lexical-scopes-in-block-expression.rs index bec69ec87e849..9a7fba30397e1 100644 --- a/tests/debuginfo/lexical-scopes-in-block-expression.rs +++ b/tests/debuginfo/lexical-scopes-in-block-expression.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/limited-debuginfo.rs b/tests/debuginfo/limited-debuginfo.rs index c3b516460aa34..136953641a4da 100644 --- a/tests/debuginfo/limited-debuginfo.rs +++ b/tests/debuginfo/limited-debuginfo.rs @@ -2,6 +2,7 @@ //@ compile-flags:-C debuginfo=1 //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // Make sure functions have proper names // gdb-command:info functions diff --git a/tests/debuginfo/method-on-generic-struct.rs b/tests/debuginfo/method-on-generic-struct.rs index 5da952fa4e106..b9627f27b9123 100644 --- a/tests/debuginfo/method-on-generic-struct.rs +++ b/tests/debuginfo/method-on-generic-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/method-on-struct.rs b/tests/debuginfo/method-on-struct.rs index 83badd8dbf01f..4ccb55d3704b0 100644 --- a/tests/debuginfo/method-on-struct.rs +++ b/tests/debuginfo/method-on-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/method-on-trait.rs b/tests/debuginfo/method-on-trait.rs index c91b255bd6afe..baf1a8567bbf3 100644 --- a/tests/debuginfo/method-on-trait.rs +++ b/tests/debuginfo/method-on-trait.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/method-on-tuple-struct.rs b/tests/debuginfo/method-on-tuple-struct.rs index 7e6e724d42eb5..077c0bc13d90b 100644 --- a/tests/debuginfo/method-on-tuple-struct.rs +++ b/tests/debuginfo/method-on-tuple-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/multi-cgu.rs b/tests/debuginfo/multi-cgu.rs index ca4146da405e5..e3fa68d776598 100644 --- a/tests/debuginfo/multi-cgu.rs +++ b/tests/debuginfo/multi-cgu.rs @@ -3,6 +3,7 @@ //@ compile-flags:-g -Ccodegen-units=2 //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =============================================================== diff --git a/tests/debuginfo/multiple-functions-equal-var-names.rs b/tests/debuginfo/multiple-functions-equal-var-names.rs index 2bc40b87e6f5e..9df1fe1b9ca18 100644 --- a/tests/debuginfo/multiple-functions-equal-var-names.rs +++ b/tests/debuginfo/multiple-functions-equal-var-names.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/multiple-functions.rs b/tests/debuginfo/multiple-functions.rs index 5469408c78fb0..a5fe01f9dd2c1 100644 --- a/tests/debuginfo/multiple-functions.rs +++ b/tests/debuginfo/multiple-functions.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/name-shadowing-and-scope-nesting.rs b/tests/debuginfo/name-shadowing-and-scope-nesting.rs index e8d85473d8639..9a3393a71e833 100644 --- a/tests/debuginfo/name-shadowing-and-scope-nesting.rs +++ b/tests/debuginfo/name-shadowing-and-scope-nesting.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/no_mangle-info.rs b/tests/debuginfo/no_mangle-info.rs index 06c65a71b2e91..d1daef669cee3 100644 --- a/tests/debuginfo/no_mangle-info.rs +++ b/tests/debuginfo/no_mangle-info.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ min-gdb-version: 10.1 +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== // gdb-command:run diff --git a/tests/debuginfo/numeric-types.rs b/tests/debuginfo/numeric-types.rs index 9a0fd01d7e236..9f7ef5c537d22 100644 --- a/tests/debuginfo/numeric-types.rs +++ b/tests/debuginfo/numeric-types.rs @@ -9,6 +9,7 @@ // unblock the tree. //@ only-64bit //@ min-cdb-version: 10.0.26100.2161 +//@ ignore-backends: gcc // Tests the visualizations for `NonZero`, `Wrapping` and // `Atomic{Bool,I8,I16,I32,I64,Isize,U8,U16,U32,U64,Usize}` located in `libcore.natvis`. diff --git a/tests/debuginfo/packed-struct-with-destructor.rs b/tests/debuginfo/packed-struct-with-destructor.rs index 0c5725ca25cd6..2150ec53501c9 100644 --- a/tests/debuginfo/packed-struct-with-destructor.rs +++ b/tests/debuginfo/packed-struct-with-destructor.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/packed-struct.rs b/tests/debuginfo/packed-struct.rs index 3bc39adee831d..427289c847747 100644 --- a/tests/debuginfo/packed-struct.rs +++ b/tests/debuginfo/packed-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/pretty-huge-vec.rs b/tests/debuginfo/pretty-huge-vec.rs index 6938158e365e5..c73491bf28066 100644 --- a/tests/debuginfo/pretty-huge-vec.rs +++ b/tests/debuginfo/pretty-huge-vec.rs @@ -2,6 +2,7 @@ //@ ignore-android: FIXME(#10381) //@ ignore-aix: FIXME(#137965) //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/pretty-slices.rs b/tests/debuginfo/pretty-slices.rs index f1aad836434ed..fd347a4eb933d 100644 --- a/tests/debuginfo/pretty-slices.rs +++ b/tests/debuginfo/pretty-slices.rs @@ -1,6 +1,7 @@ //@ ignore-android: FIXME(#10381) //@ ignore-windows-gnu: #128981 //@ compile-flags:-g +//@ ignore-backends: gcc // gdb-command: run diff --git a/tests/debuginfo/pretty-std-collections.rs b/tests/debuginfo/pretty-std-collections.rs index 5e133ee718e2e..568ca0fd23039 100644 --- a/tests/debuginfo/pretty-std-collections.rs +++ b/tests/debuginfo/pretty-std-collections.rs @@ -1,6 +1,7 @@ //@ ignore-android: FIXME(#10381) //@ ignore-windows-gnu: #128981 //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/pretty-std.rs b/tests/debuginfo/pretty-std.rs index 53835d41be24e..2620557eaf991 100644 --- a/tests/debuginfo/pretty-std.rs +++ b/tests/debuginfo/pretty-std.rs @@ -4,6 +4,7 @@ //@ compile-flags:-g //@ min-lldb-version: 1800 //@ min-cdb-version: 10.0.18317.1001 +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/pretty-uninitialized-vec.rs b/tests/debuginfo/pretty-uninitialized-vec.rs index cea2f26ef58f2..e5a2df5c9345d 100644 --- a/tests/debuginfo/pretty-uninitialized-vec.rs +++ b/tests/debuginfo/pretty-uninitialized-vec.rs @@ -1,6 +1,7 @@ //@ ignore-windows-gnu: #128981 //@ ignore-android: FIXME(#10381) //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/rc_arc.rs b/tests/debuginfo/rc_arc.rs index f636c60702cde..c439ff7484fe3 100644 --- a/tests/debuginfo/rc_arc.rs +++ b/tests/debuginfo/rc_arc.rs @@ -2,6 +2,7 @@ //@ compile-flags:-g //@ min-cdb-version: 10.0.18317.1001 +//@ ignore-backends: gcc // === GDB TESTS ================================================================================== diff --git a/tests/debuginfo/recursive-struct.rs b/tests/debuginfo/recursive-struct.rs index 427a7100a4f78..723ab06a8b26b 100644 --- a/tests/debuginfo/recursive-struct.rs +++ b/tests/debuginfo/recursive-struct.rs @@ -2,6 +2,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // gdb-command:run diff --git a/tests/debuginfo/reference-debuginfo.rs b/tests/debuginfo/reference-debuginfo.rs index 242da1dd65410..75acbc131a8ce 100644 --- a/tests/debuginfo/reference-debuginfo.rs +++ b/tests/debuginfo/reference-debuginfo.rs @@ -4,6 +4,7 @@ // //@ compile-flags:-g -Zmir-enable-passes=+ReferencePropagation,-ConstDebugInfo //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/regression-bad-location-list-67992.rs b/tests/debuginfo/regression-bad-location-list-67992.rs index 0ec474b5b5af9..a5617a23c9311 100644 --- a/tests/debuginfo/regression-bad-location-list-67992.rs +++ b/tests/debuginfo/regression-bad-location-list-67992.rs @@ -1,4 +1,5 @@ //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/self-in-default-method.rs b/tests/debuginfo/self-in-default-method.rs index 4297129e0cf8c..6e08ef4cd83a1 100644 --- a/tests/debuginfo/self-in-default-method.rs +++ b/tests/debuginfo/self-in-default-method.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/self-in-generic-default-method.rs b/tests/debuginfo/self-in-generic-default-method.rs index e7ffa05f4188e..a06731a54bd22 100644 --- a/tests/debuginfo/self-in-generic-default-method.rs +++ b/tests/debuginfo/self-in-generic-default-method.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/shadowed-argument.rs b/tests/debuginfo/shadowed-argument.rs index 3a0f0ad17a819..7a7e54545b883 100644 --- a/tests/debuginfo/shadowed-argument.rs +++ b/tests/debuginfo/shadowed-argument.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/shadowed-variable.rs b/tests/debuginfo/shadowed-variable.rs index 6a658a7c49430..c55f22df0037c 100644 --- a/tests/debuginfo/shadowed-variable.rs +++ b/tests/debuginfo/shadowed-variable.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/simd.rs b/tests/debuginfo/simd.rs index 43cd7130b252d..888a78117b54f 100644 --- a/tests/debuginfo/simd.rs +++ b/tests/debuginfo/simd.rs @@ -8,6 +8,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // gdb-command:run // gdb-command:print vi8x16 diff --git a/tests/debuginfo/simple-lexical-scope.rs b/tests/debuginfo/simple-lexical-scope.rs index 64afcf8d61dce..194da9169d9a5 100644 --- a/tests/debuginfo/simple-lexical-scope.rs +++ b/tests/debuginfo/simple-lexical-scope.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/simple-struct.rs b/tests/debuginfo/simple-struct.rs index da09a8a3ce027..665bb2fdb5799 100644 --- a/tests/debuginfo/simple-struct.rs +++ b/tests/debuginfo/simple-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags: -g -Zmir-enable-passes=-CheckAlignment //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/simple-tuple.rs b/tests/debuginfo/simple-tuple.rs index f086472d72569..c1509a8a9b4c6 100644 --- a/tests/debuginfo/simple-tuple.rs +++ b/tests/debuginfo/simple-tuple.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/skip_second_statement.rs b/tests/debuginfo/skip_second_statement.rs index ba182de038543..452b6db3882d9 100644 --- a/tests/debuginfo/skip_second_statement.rs +++ b/tests/debuginfo/skip_second_statement.rs @@ -4,6 +4,7 @@ // Performed step-over and step-into debug stepping through call statements. //@ compile-flags:-g -C collapse-macro-debuginfo=yes +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/skip_second_statement_collapse.rs b/tests/debuginfo/skip_second_statement_collapse.rs index db90cee8bfba8..52a85c5107e48 100644 --- a/tests/debuginfo/skip_second_statement_collapse.rs +++ b/tests/debuginfo/skip_second_statement_collapse.rs @@ -4,6 +4,7 @@ // Performed step-over and step-into debug stepping through call statements. //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/static-method-on-struct-and-enum.rs b/tests/debuginfo/static-method-on-struct-and-enum.rs index 2a3502712de1c..87b959f9df056 100644 --- a/tests/debuginfo/static-method-on-struct-and-enum.rs +++ b/tests/debuginfo/static-method-on-struct-and-enum.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/step-into-match.rs b/tests/debuginfo/step-into-match.rs index d4b7ea201195e..a05ed8653be2b 100644 --- a/tests/debuginfo/step-into-match.rs +++ b/tests/debuginfo/step-into-match.rs @@ -4,6 +4,7 @@ // On Arm64 Windows, stepping at the end of a function on goes to the callsite, not the instruction // after it. //@ ignore-aarch64-pc-windows-msvc: Stepping out of functions behaves differently. +//@ ignore-backends: gcc // === GDB TESTS ============================================================== diff --git a/tests/debuginfo/struct-in-enum.rs b/tests/debuginfo/struct-in-enum.rs index c5a7fb95e1e52..bd61e7cb14377 100644 --- a/tests/debuginfo/struct-in-enum.rs +++ b/tests/debuginfo/struct-in-enum.rs @@ -2,6 +2,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/struct-in-struct.rs b/tests/debuginfo/struct-in-struct.rs index c818df31b4b11..4f770e7e56c89 100644 --- a/tests/debuginfo/struct-in-struct.rs +++ b/tests/debuginfo/struct-in-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/struct-style-enum.rs b/tests/debuginfo/struct-style-enum.rs index 1f28fe4fea159..48ef97896ac15 100644 --- a/tests/debuginfo/struct-style-enum.rs +++ b/tests/debuginfo/struct-style-enum.rs @@ -1,6 +1,7 @@ //@ min-lldb-version: 1800 //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/struct-with-destructor.rs b/tests/debuginfo/struct-with-destructor.rs index 4d2ce8ff79db7..2cdac43ba500a 100644 --- a/tests/debuginfo/struct-with-destructor.rs +++ b/tests/debuginfo/struct-with-destructor.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/tuple-in-struct.rs b/tests/debuginfo/tuple-in-struct.rs index bef96fad50c6e..3223532b16a42 100644 --- a/tests/debuginfo/tuple-in-struct.rs +++ b/tests/debuginfo/tuple-in-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // gdb-command:run diff --git a/tests/debuginfo/tuple-in-tuple.rs b/tests/debuginfo/tuple-in-tuple.rs index 7bf97764c5c74..e906cbed67db7 100644 --- a/tests/debuginfo/tuple-in-tuple.rs +++ b/tests/debuginfo/tuple-in-tuple.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/tuple-struct.rs b/tests/debuginfo/tuple-struct.rs index a1bdaf1f3bb3a..44fc862c43c93 100644 --- a/tests/debuginfo/tuple-struct.rs +++ b/tests/debuginfo/tuple-struct.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/tuple-style-enum.rs b/tests/debuginfo/tuple-style-enum.rs index 6113ccc10a1bb..a452c57b30423 100644 --- a/tests/debuginfo/tuple-style-enum.rs +++ b/tests/debuginfo/tuple-style-enum.rs @@ -2,6 +2,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/type-names.rs b/tests/debuginfo/type-names.rs index ecf7c597c0c05..341112b0b88e2 100644 --- a/tests/debuginfo/type-names.rs +++ b/tests/debuginfo/type-names.rs @@ -7,6 +7,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS ================================================================================== diff --git a/tests/debuginfo/union-smoke.rs b/tests/debuginfo/union-smoke.rs index bd253794bd852..beaf4c8fa8fe3 100644 --- a/tests/debuginfo/union-smoke.rs +++ b/tests/debuginfo/union-smoke.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/unique-enum.rs b/tests/debuginfo/unique-enum.rs index e5a9c55013560..a9b928456e936 100644 --- a/tests/debuginfo/unique-enum.rs +++ b/tests/debuginfo/unique-enum.rs @@ -2,6 +2,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/unit-type.rs b/tests/debuginfo/unit-type.rs index 0ffa2fe490a5e..ce2a39521d905 100644 --- a/tests/debuginfo/unit-type.rs +++ b/tests/debuginfo/unit-type.rs @@ -2,6 +2,7 @@ // FIXME(jieyouxu): triple check if this works in CI //@ min-cdb-version: 10.0.26100.2161 +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/unsized.rs b/tests/debuginfo/unsized.rs index e34eaaaacb979..eb0fb8193bf75 100644 --- a/tests/debuginfo/unsized.rs +++ b/tests/debuginfo/unsized.rs @@ -1,6 +1,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers //@ ignore-gdb-version: 13.1 - 99.0 +//@ ignore-backends: gcc // ^ https://sourceware.org/bugzilla/show_bug.cgi?id=30330 // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/var-captured-in-nested-closure.rs b/tests/debuginfo/var-captured-in-nested-closure.rs index 1795a352802fd..0343aea309d52 100644 --- a/tests/debuginfo/var-captured-in-nested-closure.rs +++ b/tests/debuginfo/var-captured-in-nested-closure.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/var-captured-in-sendable-closure.rs b/tests/debuginfo/var-captured-in-sendable-closure.rs index 2b0d4bb430a10..ad6aa5fb9c747 100644 --- a/tests/debuginfo/var-captured-in-sendable-closure.rs +++ b/tests/debuginfo/var-captured-in-sendable-closure.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/var-captured-in-stack-closure.rs b/tests/debuginfo/var-captured-in-stack-closure.rs index 7fda71c2297bf..cc7e2eff81b47 100644 --- a/tests/debuginfo/var-captured-in-stack-closure.rs +++ b/tests/debuginfo/var-captured-in-stack-closure.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/vec-slices.rs b/tests/debuginfo/vec-slices.rs index 2a4e413612fcc..7ed6b0cb66401 100644 --- a/tests/debuginfo/vec-slices.rs +++ b/tests/debuginfo/vec-slices.rs @@ -3,6 +3,7 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/vec.rs b/tests/debuginfo/vec.rs index fd75e7005af54..c0e9f802f1e3b 100644 --- a/tests/debuginfo/vec.rs +++ b/tests/debuginfo/vec.rs @@ -1,5 +1,6 @@ //@ compile-flags:-g //@ disable-gdb-pretty-printers +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/debuginfo/zst-interferes-with-prologue.rs b/tests/debuginfo/zst-interferes-with-prologue.rs index 09041a3bb72c7..4d87df1abe7a7 100644 --- a/tests/debuginfo/zst-interferes-with-prologue.rs +++ b/tests/debuginfo/zst-interferes-with-prologue.rs @@ -1,6 +1,7 @@ //@ min-lldb-version: 310 //@ compile-flags:-g +//@ ignore-backends: gcc // === GDB TESTS =================================================================================== diff --git a/tests/incremental/add_private_fn_at_krate_root_cc/struct_point.rs b/tests/incremental/add_private_fn_at_krate_root_cc/struct_point.rs index 65d363b35a673..0367af8d53b8d 100644 --- a/tests/incremental/add_private_fn_at_krate_root_cc/struct_point.rs +++ b/tests/incremental/add_private_fn_at_krate_root_cc/struct_point.rs @@ -6,6 +6,7 @@ //@ compile-flags: -Z query-dep-graph //@ aux-build:point.rs //@ build-pass +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] diff --git a/tests/incremental/async-lifetimes.rs b/tests/incremental/async-lifetimes.rs index 8d55e7293df8b..f12f995193878 100644 --- a/tests/incremental/async-lifetimes.rs +++ b/tests/incremental/async-lifetimes.rs @@ -1,5 +1,6 @@ //@ revisions: rpass1 rpass2 //@ edition:2021 +//@ ignore-backends: gcc // See https://github.com/rust-lang/rust/issues/98890 diff --git a/tests/incremental/callee_caller_cross_crate/b.rs b/tests/incremental/callee_caller_cross_crate/b.rs index b9012ecf7f77d..78f3d8b3958f7 100644 --- a/tests/incremental/callee_caller_cross_crate/b.rs +++ b/tests/incremental/callee_caller_cross_crate/b.rs @@ -1,6 +1,7 @@ //@ aux-build:a.rs //@ revisions:rpass1 rpass2 //@ compile-flags:-Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/change_add_field/struct_point.rs b/tests/incremental/change_add_field/struct_point.rs index 8ff992771fdc6..fb363c9ce496f 100644 --- a/tests/incremental/change_add_field/struct_point.rs +++ b/tests/incremental/change_add_field/struct_point.rs @@ -6,6 +6,7 @@ //@ revisions:cfail1 cfail2 //@ compile-flags: -Z query-dep-graph //@ build-pass +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] diff --git a/tests/incremental/change_crate_dep_kind.rs b/tests/incremental/change_crate_dep_kind.rs index abca8de47198c..4fd0c345aad21 100644 --- a/tests/incremental/change_crate_dep_kind.rs +++ b/tests/incremental/change_crate_dep_kind.rs @@ -6,6 +6,7 @@ //@ compile-flags: -Z query-dep-graph -Cpanic=unwind //@ needs-unwind //@ build-pass (FIXME(62277): could be check-pass?) +//@ ignore-backends: gcc #![feature(panic_unwind)] diff --git a/tests/incremental/change_crate_order/main.rs b/tests/incremental/change_crate_order/main.rs index 23f1782578e9d..38a2541a76b52 100644 --- a/tests/incremental/change_crate_order/main.rs +++ b/tests/incremental/change_crate_order/main.rs @@ -1,6 +1,7 @@ //@ aux-build:a.rs //@ aux-build:b.rs //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/change_implementation_cross_crate/main.rs b/tests/incremental/change_implementation_cross_crate/main.rs index 9919b0d01cb69..5c3b0815115c9 100644 --- a/tests/incremental/change_implementation_cross_crate/main.rs +++ b/tests/incremental/change_implementation_cross_crate/main.rs @@ -4,6 +4,7 @@ //@ revisions: rpass1 rpass2 //@ aux-build: a.rs //@ compile-flags: -Zquery-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![crate_type = "bin"] diff --git a/tests/incremental/change_name_of_static_in_fn.rs b/tests/incremental/change_name_of_static_in_fn.rs index 8081945018668..c6160efed7b94 100644 --- a/tests/incremental/change_name_of_static_in_fn.rs +++ b/tests/incremental/change_name_of_static_in_fn.rs @@ -1,4 +1,5 @@ //@ revisions:rpass1 rpass2 rpass3 +//@ ignore-backends: gcc // See issue #57692. diff --git a/tests/incremental/change_private_fn/struct_point.rs b/tests/incremental/change_private_fn/struct_point.rs index a4c0a8db4098e..cce26fa7a3e6e 100644 --- a/tests/incremental/change_private_fn/struct_point.rs +++ b/tests/incremental/change_private_fn/struct_point.rs @@ -4,6 +4,7 @@ //@ revisions:cfail1 cfail2 //@ compile-flags: -Z query-dep-graph //@ build-pass (FIXME(62277): could be check-pass?) +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] diff --git a/tests/incremental/change_private_fn_cc/struct_point.rs b/tests/incremental/change_private_fn_cc/struct_point.rs index 6262e32a807d8..87392ca857ed7 100644 --- a/tests/incremental/change_private_fn_cc/struct_point.rs +++ b/tests/incremental/change_private_fn_cc/struct_point.rs @@ -5,6 +5,7 @@ //@ compile-flags: -Z query-dep-graph //@ aux-build:point.rs //@ build-pass (FIXME(62277): could be check-pass?) +//@ ignore-backends: gcc #![crate_type = "rlib"] #![feature(rustc_attrs)] diff --git a/tests/incremental/change_private_impl_method/struct_point.rs b/tests/incremental/change_private_impl_method/struct_point.rs index 953d581015108..dc0ba82c0a311 100644 --- a/tests/incremental/change_private_impl_method/struct_point.rs +++ b/tests/incremental/change_private_impl_method/struct_point.rs @@ -4,6 +4,7 @@ //@ revisions:cfail1 cfail2 //@ compile-flags: -Z query-dep-graph //@ build-pass +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] diff --git a/tests/incremental/change_private_impl_method_cc/struct_point.rs b/tests/incremental/change_private_impl_method_cc/struct_point.rs index 42cc41da4c8bc..eb51af7209495 100644 --- a/tests/incremental/change_private_impl_method_cc/struct_point.rs +++ b/tests/incremental/change_private_impl_method_cc/struct_point.rs @@ -5,6 +5,7 @@ //@ compile-flags: -Z query-dep-graph //@ aux-build:point.rs //@ build-pass (FIXME(62277): could be check-pass?) +//@ ignore-backends: gcc #![crate_type = "rlib"] #![feature(rustc_attrs)] diff --git a/tests/incremental/change_pub_inherent_method_body/struct_point.rs b/tests/incremental/change_pub_inherent_method_body/struct_point.rs index e112b25df5c53..b8e06d070a3c7 100644 --- a/tests/incremental/change_pub_inherent_method_body/struct_point.rs +++ b/tests/incremental/change_pub_inherent_method_body/struct_point.rs @@ -3,6 +3,7 @@ //@ revisions:cfail1 cfail2 //@ compile-flags: -Z query-dep-graph //@ build-pass +//@ ignore-backends: gcc #![crate_type = "rlib"] #![feature(rustc_attrs)] diff --git a/tests/incremental/change_pub_inherent_method_sig/struct_point.rs b/tests/incremental/change_pub_inherent_method_sig/struct_point.rs index d67011f1e88cb..3672ec268010e 100644 --- a/tests/incremental/change_pub_inherent_method_sig/struct_point.rs +++ b/tests/incremental/change_pub_inherent_method_sig/struct_point.rs @@ -3,6 +3,7 @@ //@ revisions:cfail1 cfail2 //@ compile-flags: -Z query-dep-graph //@ build-pass +//@ ignore-backends: gcc #![crate_type = "rlib"] #![feature(rustc_attrs)] diff --git a/tests/incremental/change_symbol_export_status.rs b/tests/incremental/change_symbol_export_status.rs index 5fc6afa741195..37f8b9b52e5f9 100644 --- a/tests/incremental/change_symbol_export_status.rs +++ b/tests/incremental/change_symbol_export_status.rs @@ -2,6 +2,7 @@ //@ compile-flags: -Zquery-dep-graph //@ [rpass1]compile-flags: -Zincremental-ignore-spans //@ [rpass2]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![rustc_partition_reused(module = "change_symbol_export_status-mod1", cfg = "rpass2")] diff --git a/tests/incremental/commandline-args.rs b/tests/incremental/commandline-args.rs index f7aabe1e6d009..eb7c8b6daf05d 100644 --- a/tests/incremental/commandline-args.rs +++ b/tests/incremental/commandline-args.rs @@ -18,6 +18,7 @@ //@[rpass2] compile-flags: -C debuginfo=2 //@[rpass3] compile-flags: -C debuginfo=2 --diagnostic-width=80 //@[rpass4] compile-flags: -C debuginfo=2 --diagnostic-width=80 --remap-path-prefix=/home/bors/r=src +//@ ignore-backends: gcc pub fn main() { // empty diff --git a/tests/incremental/const-generics/change-const-param-gat.rs b/tests/incremental/const-generics/change-const-param-gat.rs index 9fdac01429355..0aa628f4bd6b8 100644 --- a/tests/incremental/const-generics/change-const-param-gat.rs +++ b/tests/incremental/const-generics/change-const-param-gat.rs @@ -1,5 +1,6 @@ //@ revisions: rpass1 rpass2 rpass3 //@ compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![feature(generic_associated_types)] // This test unsures that with_opt_const_param returns the diff --git a/tests/incremental/const-generics/change-const-param-type.rs b/tests/incremental/const-generics/change-const-param-type.rs index 989ad56990db6..2dc1194f5128c 100644 --- a/tests/incremental/const-generics/change-const-param-type.rs +++ b/tests/incremental/const-generics/change-const-param-type.rs @@ -1,5 +1,6 @@ //@ revisions: rpass1 rpass2 rpass3 //@ compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc enum Foo { Variant, diff --git a/tests/incremental/crate_hash_reorder.rs b/tests/incremental/crate_hash_reorder.rs index bd26d604a8255..07b38014ff855 100644 --- a/tests/incremental/crate_hash_reorder.rs +++ b/tests/incremental/crate_hash_reorder.rs @@ -2,6 +2,7 @@ //@ revisions:rpass1 rpass2 rpass3 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/decl_macro.rs b/tests/incremental/decl_macro.rs index 74810ae422749..3ddf86a068f4d 100644 --- a/tests/incremental/decl_macro.rs +++ b/tests/incremental/decl_macro.rs @@ -1,4 +1,5 @@ //@ revisions: rpass1 rpass2 +//@ ignore-backends: gcc // issue#112680 diff --git a/tests/incremental/dirty_clean.rs b/tests/incremental/dirty_clean.rs index 24aedb011c6b9..1188b46fa0ad4 100644 --- a/tests/incremental/dirty_clean.rs +++ b/tests/incremental/dirty_clean.rs @@ -1,5 +1,6 @@ //@ revisions: rpass1 cfail2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/env/env_macro.rs b/tests/incremental/env/env_macro.rs index 0c026328874dd..8d6bd2416b1fe 100644 --- a/tests/incremental/env/env_macro.rs +++ b/tests/incremental/env/env_macro.rs @@ -10,6 +10,7 @@ //@ [rpass3]rustc-env:EXAMPLE_ENV=two //@ [rpass3]exec-env:EXAMPLE_ENV=two //@ [cfail4]unset-rustc-env:EXAMPLE_ENV +//@ ignore-backends: gcc fn main() { assert_eq!(env!("EXAMPLE_ENV"), std::env::var("EXAMPLE_ENV").unwrap()); diff --git a/tests/incremental/env/option_env_macro.rs b/tests/incremental/env/option_env_macro.rs index 44c3bfd69e050..3b9110a5f4e08 100644 --- a/tests/incremental/env/option_env_macro.rs +++ b/tests/incremental/env/option_env_macro.rs @@ -12,6 +12,7 @@ //@ [rpass3]exec-env:EXAMPLE_ENV=two //@ [rpass4]unset-rustc-env:EXAMPLE_ENV //@ [rpass4]unset-exec-env:EXAMPLE_ENV +//@ ignore-backends: gcc fn main() { assert_eq!(option_env!("EXAMPLE_ENV"), std::env::var("EXAMPLE_ENV").ok().as_deref()); diff --git a/tests/incremental/extern_static/issue-49153.rs b/tests/incremental/extern_static/issue-49153.rs index 72340173b5ca1..386c175be5239 100644 --- a/tests/incremental/extern_static/issue-49153.rs +++ b/tests/incremental/extern_static/issue-49153.rs @@ -1,6 +1,7 @@ // https://github.com/rust-lang/rust/issues/49153 //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc extern "C" { pub static __ImageBase: u8; diff --git a/tests/incremental/hash-module-order.rs b/tests/incremental/hash-module-order.rs index c29e1e5b64c91..5261965e8f3f4 100644 --- a/tests/incremental/hash-module-order.rs +++ b/tests/incremental/hash-module-order.rs @@ -1,5 +1,6 @@ //@ revisions: rpass1 rpass2 //@ compile-flags: -Z incremental-ignore-spans -Z query-dep-graph +//@ ignore-backends: gcc // Tests that module hashing depends on the order of the items // (since the order is exposed through `Mod.item_ids`). diff --git a/tests/incremental/hashes/call_expressions.rs b/tests/incremental/hashes/call_expressions.rs index 71423ef6aff66..d58bf0416c6f2 100644 --- a/tests/incremental/hashes/call_expressions.rs +++ b/tests/incremental/hashes/call_expressions.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] diff --git a/tests/incremental/hashes/closure_expressions.rs b/tests/incremental/hashes/closure_expressions.rs index e548e0b6ddc3f..3cda661834f52 100644 --- a/tests/incremental/hashes/closure_expressions.rs +++ b/tests/incremental/hashes/closure_expressions.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/consts.rs b/tests/incremental/hashes/consts.rs index bd5cc89caa865..b60dce16c37e7 100644 --- a/tests/incremental/hashes/consts.rs +++ b/tests/incremental/hashes/consts.rs @@ -8,6 +8,7 @@ //@ build-pass (FIXME(62277): could be check-pass?) //@ revisions: cfail1 cfail2 cfail3 //@ compile-flags: -Z query-dep-graph -O +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/enum_constructors.rs b/tests/incremental/hashes/enum_constructors.rs index d839dabf293af..dee485681e447 100644 --- a/tests/incremental/hashes/enum_constructors.rs +++ b/tests/incremental/hashes/enum_constructors.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/enum_defs.rs b/tests/incremental/hashes/enum_defs.rs index bc1a2a31e97a9..1f12c020116eb 100644 --- a/tests/incremental/hashes/enum_defs.rs +++ b/tests/incremental/hashes/enum_defs.rs @@ -16,6 +16,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/exported_vs_not.rs b/tests/incremental/hashes/exported_vs_not.rs index 1bd7756c1c6e5..9ac86f39bd1a9 100644 --- a/tests/incremental/hashes/exported_vs_not.rs +++ b/tests/incremental/hashes/exported_vs_not.rs @@ -4,6 +4,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/extern_mods.rs b/tests/incremental/hashes/extern_mods.rs index c26fc90dd01e3..0bda42fac8b85 100644 --- a/tests/incremental/hashes/extern_mods.rs +++ b/tests/incremental/hashes/extern_mods.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/for_loops.rs b/tests/incremental/hashes/for_loops.rs index b827ad9cc6f89..24717e0faaf54 100644 --- a/tests/incremental/hashes/for_loops.rs +++ b/tests/incremental/hashes/for_loops.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/function_interfaces.rs b/tests/incremental/hashes/function_interfaces.rs index 016a1813babd7..e58ee1a6d4e4b 100644 --- a/tests/incremental/hashes/function_interfaces.rs +++ b/tests/incremental/hashes/function_interfaces.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(linkage)] diff --git a/tests/incremental/hashes/if_expressions.rs b/tests/incremental/hashes/if_expressions.rs index a21625c4f4ed8..6a241692977f4 100644 --- a/tests/incremental/hashes/if_expressions.rs +++ b/tests/incremental/hashes/if_expressions.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/indexing_expressions.rs b/tests/incremental/hashes/indexing_expressions.rs index 1b90483c50c3b..bfc64c904039a 100644 --- a/tests/incremental/hashes/indexing_expressions.rs +++ b/tests/incremental/hashes/indexing_expressions.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/inherent_impls.rs b/tests/incremental/hashes/inherent_impls.rs index 044c3d2b86c13..66d6c2b7246ca 100644 --- a/tests/incremental/hashes/inherent_impls.rs +++ b/tests/incremental/hashes/inherent_impls.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] diff --git a/tests/incremental/hashes/inline_asm.rs b/tests/incremental/hashes/inline_asm.rs index 105ca76113565..3453259e5b2f4 100644 --- a/tests/incremental/hashes/inline_asm.rs +++ b/tests/incremental/hashes/inline_asm.rs @@ -12,6 +12,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/let_expressions.rs b/tests/incremental/hashes/let_expressions.rs index 86578855699b2..b2e89380acb33 100644 --- a/tests/incremental/hashes/let_expressions.rs +++ b/tests/incremental/hashes/let_expressions.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/loop_expressions.rs b/tests/incremental/hashes/loop_expressions.rs index 631699d3d6874..a8b89217b949d 100644 --- a/tests/incremental/hashes/loop_expressions.rs +++ b/tests/incremental/hashes/loop_expressions.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/match_expressions.rs b/tests/incremental/hashes/match_expressions.rs index 9ed5b55fb2505..0c7f847932b8e 100644 --- a/tests/incremental/hashes/match_expressions.rs +++ b/tests/incremental/hashes/match_expressions.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/panic_exprs.rs b/tests/incremental/hashes/panic_exprs.rs index 509e111edc7ac..e3d6f8a211ecf 100644 --- a/tests/incremental/hashes/panic_exprs.rs +++ b/tests/incremental/hashes/panic_exprs.rs @@ -11,6 +11,7 @@ //@ build-pass (FIXME(62277): could be check-pass?) //@ revisions: cfail1 cfail2 cfail3 //@ compile-flags: -Z query-dep-graph -C debug-assertions -O +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/statics.rs b/tests/incremental/hashes/statics.rs index 9ea21d84ba154..cd394ed866e9f 100644 --- a/tests/incremental/hashes/statics.rs +++ b/tests/incremental/hashes/statics.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/struct_constructors.rs b/tests/incremental/hashes/struct_constructors.rs index 31c549c6e7a90..da7abe049d982 100644 --- a/tests/incremental/hashes/struct_constructors.rs +++ b/tests/incremental/hashes/struct_constructors.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/struct_defs.rs b/tests/incremental/hashes/struct_defs.rs index 06ea087339790..c7582deb76aed 100644 --- a/tests/incremental/hashes/struct_defs.rs +++ b/tests/incremental/hashes/struct_defs.rs @@ -16,6 +16,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/trait_defs.rs b/tests/incremental/hashes/trait_defs.rs index 50b56441cca50..13334a08cae8b 100644 --- a/tests/incremental/hashes/trait_defs.rs +++ b/tests/incremental/hashes/trait_defs.rs @@ -16,6 +16,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/trait_impls.rs b/tests/incremental/hashes/trait_impls.rs index a89b5b3e78298..03ca672af1316 100644 --- a/tests/incremental/hashes/trait_impls.rs +++ b/tests/incremental/hashes/trait_impls.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/type_defs.rs b/tests/incremental/hashes/type_defs.rs index 137bffd9aeb62..b0cb2a6aa47d9 100644 --- a/tests/incremental/hashes/type_defs.rs +++ b/tests/incremental/hashes/type_defs.rs @@ -13,6 +13,7 @@ //@ build-pass (FIXME(62277): could be check-pass?) //@ revisions: cfail1 cfail2 cfail3 //@ compile-flags: -Z query-dep-graph -O +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/unary_and_binary_exprs.rs b/tests/incremental/hashes/unary_and_binary_exprs.rs index d0b502845071c..fec167c2604cc 100644 --- a/tests/incremental/hashes/unary_and_binary_exprs.rs +++ b/tests/incremental/hashes/unary_and_binary_exprs.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/while_let_loops.rs b/tests/incremental/hashes/while_let_loops.rs index 7a7bcb7d039d9..1071ee86b1fb8 100644 --- a/tests/incremental/hashes/while_let_loops.rs +++ b/tests/incremental/hashes/while_let_loops.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hashes/while_loops.rs b/tests/incremental/hashes/while_loops.rs index dc343c3cbfaef..57287cbcdcee5 100644 --- a/tests/incremental/hashes/while_loops.rs +++ b/tests/incremental/hashes/while_loops.rs @@ -11,6 +11,7 @@ //@ [cfail1]compile-flags: -Zincremental-ignore-spans //@ [cfail2]compile-flags: -Zincremental-ignore-spans //@ [cfail3]compile-flags: -Zincremental-ignore-spans +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hello_world.rs b/tests/incremental/hello_world.rs index ab1f9dbf1840c..d6d9b6b598c22 100644 --- a/tests/incremental/hello_world.rs +++ b/tests/incremental/hello_world.rs @@ -1,5 +1,6 @@ //@ revisions: rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/hygiene/load_cached_hygiene.rs b/tests/incremental/hygiene/load_cached_hygiene.rs index 101d280cd492e..84f91e7ecdec5 100644 --- a/tests/incremental/hygiene/load_cached_hygiene.rs +++ b/tests/incremental/hygiene/load_cached_hygiene.rs @@ -1,6 +1,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph //@ aux-build:cached_hygiene.rs +//@ ignore-backends: gcc // This tests the following scenario // 1. A foreign crate is compiled with incremental compilation. diff --git a/tests/incremental/ich_method_call_trait_scope.rs b/tests/incremental/ich_method_call_trait_scope.rs index a4c6558602f7b..28234ca60d8e9 100644 --- a/tests/incremental/ich_method_call_trait_scope.rs +++ b/tests/incremental/ich_method_call_trait_scope.rs @@ -3,6 +3,7 @@ //@ revisions: rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/ich_nested_items.rs b/tests/incremental/ich_nested_items.rs index c2a041ba268c4..fa3ebcfa8e039 100644 --- a/tests/incremental/ich_nested_items.rs +++ b/tests/incremental/ich_nested_items.rs @@ -4,6 +4,7 @@ //@ revisions: cfail1 cfail2 //@ build-pass (FIXME(62277): could be check-pass?) //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![crate_type = "rlib"] #![feature(rustc_attrs)] diff --git a/tests/incremental/ich_resolve_results.rs b/tests/incremental/ich_resolve_results.rs index c5b2b66fef9f8..41c98bd389121 100644 --- a/tests/incremental/ich_resolve_results.rs +++ b/tests/incremental/ich_resolve_results.rs @@ -3,6 +3,7 @@ //@ revisions: rpass1 rpass2 rpass3 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/incremental_proc_macro.rs b/tests/incremental/incremental_proc_macro.rs index fc32aad5645ce..19ae746fc2729 100644 --- a/tests/incremental/incremental_proc_macro.rs +++ b/tests/incremental/incremental_proc_macro.rs @@ -1,6 +1,7 @@ //@ proc-macro: incremental_proc_macro_aux.rs //@ revisions: cfail1 cfail2 //@ build-pass (FIXME(62277): could be check-pass?) +//@ ignore-backends: gcc // This test makes sure that we still find the proc-macro registrar function // when we compile proc-macros incrementally (see #47292). diff --git a/tests/incremental/inlined_hir_34991/main.rs b/tests/incremental/inlined_hir_34991/main.rs index 7754add917d22..1d4740bd16080 100644 --- a/tests/incremental/inlined_hir_34991/main.rs +++ b/tests/incremental/inlined_hir_34991/main.rs @@ -5,6 +5,7 @@ // libstd), and we can't hash a HIR node from std. //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/issue-100521-change-struct-name-assocty.rs b/tests/incremental/issue-100521-change-struct-name-assocty.rs index 0c1938beef27b..80f96ca7144d4 100644 --- a/tests/incremental/issue-100521-change-struct-name-assocty.rs +++ b/tests/incremental/issue-100521-change-struct-name-assocty.rs @@ -1,4 +1,5 @@ //@ revisions: rpass1 rpass2 +//@ ignore-backends: gcc pub fn foo() { bar(); diff --git a/tests/incremental/issue-108481-feed-eval-always.rs b/tests/incremental/issue-108481-feed-eval-always.rs index ef2e2fb59c2d1..e2229eeed0f1f 100644 --- a/tests/incremental/issue-108481-feed-eval-always.rs +++ b/tests/incremental/issue-108481-feed-eval-always.rs @@ -1,4 +1,5 @@ //@ revisions: cpass1 cpass2 +//@ ignore-backends: gcc #![crate_type = "rlib"] diff --git a/tests/incremental/issue-110457-same-span-closures/main.rs b/tests/incremental/issue-110457-same-span-closures/main.rs index 6a5e4b315ce3e..b89ba9fb651af 100644 --- a/tests/incremental/issue-110457-same-span-closures/main.rs +++ b/tests/incremental/issue-110457-same-span-closures/main.rs @@ -1,5 +1,6 @@ //@ proc-macro: egui_inspect_derive.rs //@ revisions: cpass1 cpass2 +//@ ignore-backends: gcc extern crate egui_inspect_derive; diff --git a/tests/incremental/issue-35593.rs b/tests/incremental/issue-35593.rs index 5e5235dc2c4c1..522c88b9894ad 100644 --- a/tests/incremental/issue-35593.rs +++ b/tests/incremental/issue-35593.rs @@ -3,6 +3,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![rustc_partition_reused(module="issue_35593", cfg="rpass2")] diff --git a/tests/incremental/issue-38222.rs b/tests/incremental/issue-38222.rs index e45a16f99b336..0aecd1e1f98a9 100644 --- a/tests/incremental/issue-38222.rs +++ b/tests/incremental/issue-38222.rs @@ -12,6 +12,7 @@ //@[rpass1] compile-flags: -C debuginfo=1 //@[rpass2] compile-flags: -C debuginfo=1 +//@ ignore-backends: gcc pub fn main() { mod1::some_fn(); diff --git a/tests/incremental/issue-39569.rs b/tests/incremental/issue-39569.rs index 6fd0776bd733e..dd8d972a21bd9 100644 --- a/tests/incremental/issue-39569.rs +++ b/tests/incremental/issue-39569.rs @@ -5,6 +5,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc use std::sync::Arc; diff --git a/tests/incremental/issue-39828/issue-39828.rs b/tests/incremental/issue-39828/issue-39828.rs index 703d8e8dd228f..a6e62c038b84d 100644 --- a/tests/incremental/issue-39828/issue-39828.rs +++ b/tests/incremental/issue-39828/issue-39828.rs @@ -7,6 +7,7 @@ //@ revisions:rpass1 rpass2 //@ aux-build:generic.rs +//@ ignore-backends: gcc extern crate generic; fn main() { } diff --git a/tests/incremental/issue-42602.rs b/tests/incremental/issue-42602.rs index d02c7f74665da..e75dd9696b793 100644 --- a/tests/incremental/issue-42602.rs +++ b/tests/incremental/issue-42602.rs @@ -9,6 +9,7 @@ //@ revisions:cfail1 cfail2 cfail3 //@ compile-flags:-Zquery-dep-graph //@ build-pass (FIXME(62277): could be check-pass?) +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/issue-49595/issue-49595.rs b/tests/incremental/issue-49595/issue-49595.rs index 7fe843135dfe6..890b1f963a2fe 100644 --- a/tests/incremental/issue-49595/issue-49595.rs +++ b/tests/incremental/issue-49595/issue-49595.rs @@ -1,6 +1,7 @@ //@ revisions:cfail1 cfail2 cfail3 //@ compile-flags: -Z query-dep-graph --test //@ build-pass +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![crate_type = "rlib"] diff --git a/tests/incremental/issue-59523-on-implemented-is-not-unused.rs b/tests/incremental/issue-59523-on-implemented-is-not-unused.rs index 973757223230f..8260bd350e721 100644 --- a/tests/incremental/issue-59523-on-implemented-is-not-unused.rs +++ b/tests/incremental/issue-59523-on-implemented-is-not-unused.rs @@ -4,6 +4,7 @@ //@ revisions: cfail1 cfail2 //@ build-pass (FIXME(62277): could be check-pass?) +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![deny(unused_attributes)] diff --git a/tests/incremental/issue-59524-layout-scalar-valid-range-is-not-unused.rs b/tests/incremental/issue-59524-layout-scalar-valid-range-is-not-unused.rs index fcd58f7a8d657..5954aaa18ff93 100644 --- a/tests/incremental/issue-59524-layout-scalar-valid-range-is-not-unused.rs +++ b/tests/incremental/issue-59524-layout-scalar-valid-range-is-not-unused.rs @@ -5,6 +5,7 @@ //@ revisions: cfail1 cfail2 //@ build-pass (FIXME(62277): could be check-pass?) +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![deny(unused_attributes)] diff --git a/tests/incremental/issue-60629.rs b/tests/incremental/issue-60629.rs index 117e222fc3934..f21e5da92213a 100644 --- a/tests/incremental/issue-60629.rs +++ b/tests/incremental/issue-60629.rs @@ -1,4 +1,5 @@ //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc struct A; diff --git a/tests/incremental/issue-61530.rs b/tests/incremental/issue-61530.rs index 673556a9d02f6..a06fa724615bb 100644 --- a/tests/incremental/issue-61530.rs +++ b/tests/incremental/issue-61530.rs @@ -1,6 +1,7 @@ #![feature(repr_simd, core_intrinsics)] //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc use std::intrinsics::simd::simd_shuffle; diff --git a/tests/incremental/issue-62649-path-collisions-happen.rs b/tests/incremental/issue-62649-path-collisions-happen.rs index 3b04f0ac9d71a..e604583b7aa77 100644 --- a/tests/incremental/issue-62649-path-collisions-happen.rs +++ b/tests/incremental/issue-62649-path-collisions-happen.rs @@ -1,4 +1,5 @@ //@ revisions: rpass1 rpass2 +//@ ignore-backends: gcc #[cfg(rpass1)] pub trait Something { diff --git a/tests/incremental/issue-69596.rs b/tests/incremental/issue-69596.rs index 00d0d2b64a4f0..576cc0b828974 100644 --- a/tests/incremental/issue-69596.rs +++ b/tests/incremental/issue-69596.rs @@ -1,4 +1,5 @@ //@ revisions: rpass1 rpass2 +//@ ignore-backends: gcc #![allow(unused_imports)] diff --git a/tests/incremental/issue-72386.rs b/tests/incremental/issue-72386.rs index b3cd2a6420817..de88dae5505fa 100644 --- a/tests/incremental/issue-72386.rs +++ b/tests/incremental/issue-72386.rs @@ -1,6 +1,7 @@ //@ revisions: rpass1 cfail1 rpass3 //@ needs-asm-support //@ only-x86_64 +//@ ignore-backends: gcc // Regression test for issue #72386 // Checks that we don't ICE when switching to an invalid register // and back again diff --git a/tests/incremental/issue-79661-missing-def-path-hash.rs b/tests/incremental/issue-79661-missing-def-path-hash.rs index c063c6a33a28f..f26f680c67e80 100644 --- a/tests/incremental/issue-79661-missing-def-path-hash.rs +++ b/tests/incremental/issue-79661-missing-def-path-hash.rs @@ -1,5 +1,6 @@ //@ aux-build:issue-79661.rs //@ revisions: rpass1 rpass2 rpass3 +//@ ignore-backends: gcc // Regression test for issue #79661 // We were failing to copy over a DefPathHash->DefId mapping diff --git a/tests/incremental/issue-79890-imported-crates-changed.rs b/tests/incremental/issue-79890-imported-crates-changed.rs index 8c70d224f9e58..f29ebd650c6ea 100644 --- a/tests/incremental/issue-79890-imported-crates-changed.rs +++ b/tests/incremental/issue-79890-imported-crates-changed.rs @@ -2,6 +2,7 @@ //@ revisions:rpass1 rpass2 rpass3 //@ compile-flags:--extern issue_79890 --test //@ edition:2018 +//@ ignore-backends: gcc // Tests that we don't ICE when the set of imported crates changes #[cfg(rpass2)] use issue_79890::MyTrait; diff --git a/tests/incremental/issue-80336-invalid-span.rs b/tests/incremental/issue-80336-invalid-span.rs index 251a59c3b57da..fe8a2688c496c 100644 --- a/tests/incremental/issue-80336-invalid-span.rs +++ b/tests/incremental/issue-80336-invalid-span.rs @@ -4,6 +4,7 @@ //@ revisions:rpass1 rpass2 //@ only-x86_64 +//@ ignore-backends: gcc pub fn main() { let _ = is_x86_feature_detected!("avx2"); diff --git a/tests/incremental/issue-80691-bad-eval-cache.rs b/tests/incremental/issue-80691-bad-eval-cache.rs index 4f897bd64a0d4..2d3dbf6fed661 100644 --- a/tests/incremental/issue-80691-bad-eval-cache.rs +++ b/tests/incremental/issue-80691-bad-eval-cache.rs @@ -2,6 +2,7 @@ //@ failure-status: 101 //@ error-pattern: not implemented //@ needs-unwind -Cpanic=abort causes abort instead of exit(101) +//@ ignore-backends: gcc pub trait Interner { type InternedVariableKinds; diff --git a/tests/incremental/issue-82920-predicate-order-miscompile.rs b/tests/incremental/issue-82920-predicate-order-miscompile.rs index e1c8b1253f62e..17a0601e9f4d8 100644 --- a/tests/incremental/issue-82920-predicate-order-miscompile.rs +++ b/tests/incremental/issue-82920-predicate-order-miscompile.rs @@ -1,4 +1,5 @@ //@ revisions: rpass1 rpass2 +//@ ignore-backends: gcc trait MyTrait: One + Two {} impl One for T { diff --git a/tests/incremental/issue-85197-invalid-span/invalid_span_main.rs b/tests/incremental/issue-85197-invalid-span/invalid_span_main.rs index 6db5107cbe431..1814eb13ecc7a 100644 --- a/tests/incremental/issue-85197-invalid-span/invalid_span_main.rs +++ b/tests/incremental/issue-85197-invalid-span/invalid_span_main.rs @@ -1,5 +1,6 @@ //@ revisions: rpass1 rpass2 //@ aux-build:invalid-span-helper-lib.rs +//@ ignore-backends: gcc // This issue has several different parts. The high level idea is: // 1. We create an 'invalid' span with the help of the `respan` proc-macro, diff --git a/tests/incremental/issue-85360-eval-obligation-ice.rs b/tests/incremental/issue-85360-eval-obligation-ice.rs index 2148e45bb3876..2b25d2a39484f 100644 --- a/tests/incremental/issue-85360-eval-obligation-ice.rs +++ b/tests/incremental/issue-85360-eval-obligation-ice.rs @@ -3,6 +3,7 @@ //@[cfail2] compile-flags: --crate-type=lib -Zassert-incr-state=loaded //@ edition: 2021 //@ build-pass +//@ ignore-backends: gcc #![allow(dead_code)] diff --git a/tests/incremental/issue-92163-missing-sourcefile/issue_92163_main.rs b/tests/incremental/issue-92163-missing-sourcefile/issue_92163_main.rs index c5e73f056d70b..991ac4cf257d6 100644 --- a/tests/incremental/issue-92163-missing-sourcefile/issue_92163_main.rs +++ b/tests/incremental/issue-92163-missing-sourcefile/issue_92163_main.rs @@ -1,6 +1,7 @@ //@ aux-build:first_crate.rs //@ aux-build:second_crate.rs //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc // Regression test for issue #92163 // Under certain circumstances, we may end up trying to diff --git a/tests/incremental/issue-92987-provisional-dep-node.rs b/tests/incremental/issue-92987-provisional-dep-node.rs index 4daeb69189d57..4979f0956db0c 100644 --- a/tests/incremental/issue-92987-provisional-dep-node.rs +++ b/tests/incremental/issue-92987-provisional-dep-node.rs @@ -1,4 +1,5 @@ //@ revisions: rpass1 rpass2 +//@ ignore-backends: gcc // Regression test for issue #92987 // Tests that we properly manage `DepNode`s during trait evaluation diff --git a/tests/incremental/issue-96319-coinductive-cycle.rs b/tests/incremental/issue-96319-coinductive-cycle.rs index cf98b325271d4..f5524377256b9 100644 --- a/tests/incremental/issue-96319-coinductive-cycle.rs +++ b/tests/incremental/issue-96319-coinductive-cycle.rs @@ -1,5 +1,6 @@ //@ edition:2018 //@ revisions: rpass1 rpass2 +//@ ignore-backends: gcc pub struct Stmt { pub stmt_type: StmtKind, diff --git a/tests/incremental/krate-inherent.rs b/tests/incremental/krate-inherent.rs index 0322d112560cd..60ff636b6bea5 100644 --- a/tests/incremental/krate-inherent.rs +++ b/tests/incremental/krate-inherent.rs @@ -1,6 +1,7 @@ //@ revisions: cfail1 cfail2 //@ compile-flags: -Z query-dep-graph //@ build-pass (FIXME(62277): could be check-pass?) +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/krate-inlined.rs b/tests/incremental/krate-inlined.rs index 3d96b0570f155..563b14bc02638 100644 --- a/tests/incremental/krate-inlined.rs +++ b/tests/incremental/krate-inlined.rs @@ -4,6 +4,7 @@ //@ revisions: rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/krate_reassign_34991/main.rs b/tests/incremental/krate_reassign_34991/main.rs index 50f418a3fddb7..2aa77377f5dae 100644 --- a/tests/incremental/krate_reassign_34991/main.rs +++ b/tests/incremental/krate_reassign_34991/main.rs @@ -1,5 +1,6 @@ //@ aux-build:a.rs //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/link_order/main.rs b/tests/incremental/link_order/main.rs index 20931e25dd4bf..6046c018ef53b 100644 --- a/tests/incremental/link_order/main.rs +++ b/tests/incremental/link_order/main.rs @@ -1,6 +1,7 @@ //@ aux-build:my_lib.rs //@ revisions:cfail1 cfail2 //@ compile-flags:-Z query-dep-graph +//@ ignore-backends: gcc // Tests that re-ordering the `-l` arguments used // when compiling an external dependency does not lead to diff --git a/tests/incremental/lto.rs b/tests/incremental/lto.rs index 044267a9cfdf6..ddeddf95f8aee 100644 --- a/tests/incremental/lto.rs +++ b/tests/incremental/lto.rs @@ -1,6 +1,7 @@ //@ no-prefer-dynamic //@ revisions:rpass1 rpass2 //@ compile-flags: -C lto +//@ ignore-backends: gcc mod x { pub struct X { diff --git a/tests/incremental/macro_export.rs b/tests/incremental/macro_export.rs index 23e8f01cf330e..4cc243ec9f0c4 100644 --- a/tests/incremental/macro_export.rs +++ b/tests/incremental/macro_export.rs @@ -1,5 +1,6 @@ //@ revisions: cfail1 cfail2 cfail3 //@ build-pass (FIXME(62277): could be check-pass?) +//@ ignore-backends: gcc // This test case makes sure that we can compile with incremental compilation // enabled when there are macros exported from this crate. (See #37756) diff --git a/tests/incremental/mir-opt.rs b/tests/incremental/mir-opt.rs index 04b82d9ea7fd4..2735efd3ea593 100644 --- a/tests/incremental/mir-opt.rs +++ b/tests/incremental/mir-opt.rs @@ -3,6 +3,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph -Z mir-opt-level=3 +//@ ignore-backends: gcc fn main() { if std::env::var("a").is_ok() { diff --git a/tests/incremental/remapped_paths_cc/main.rs b/tests/incremental/remapped_paths_cc/main.rs index 35e03d754469a..eee541148f0b3 100644 --- a/tests/incremental/remapped_paths_cc/main.rs +++ b/tests/incremental/remapped_paths_cc/main.rs @@ -1,6 +1,7 @@ //@ revisions:rpass1 rpass2 rpass3 //@ compile-flags: -Z query-dep-graph -g //@ aux-build:extern_crate.rs +//@ ignore-backends: gcc // This test case makes sure that we detect if paths emitted into debuginfo // are changed, even when the change happens in an external crate. diff --git a/tests/incremental/remove-private-item-cross-crate/main.rs b/tests/incremental/remove-private-item-cross-crate/main.rs index 209b061dfb66c..762d0aac26deb 100644 --- a/tests/incremental/remove-private-item-cross-crate/main.rs +++ b/tests/incremental/remove-private-item-cross-crate/main.rs @@ -4,6 +4,7 @@ //@ revisions:rpass1 rpass2 //@ aux-build:a.rs //@ compile-flags: -Zquery-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![crate_type = "bin"] diff --git a/tests/incremental/remove_crate/main.rs b/tests/incremental/remove_crate/main.rs index e3f15bd9c8cd6..ee6883b6db27e 100644 --- a/tests/incremental/remove_crate/main.rs +++ b/tests/incremental/remove_crate/main.rs @@ -2,6 +2,7 @@ //@ revisions:rpass1 rpass2 //@ aux-build:extern_crate.rs +//@ ignore-backends: gcc #[cfg(rpass1)] extern crate extern_crate; diff --git a/tests/incremental/reorder_vtable.rs b/tests/incremental/reorder_vtable.rs index 89ff14e8feee7..aba2749e2f653 100644 --- a/tests/incremental/reorder_vtable.rs +++ b/tests/incremental/reorder_vtable.rs @@ -1,4 +1,5 @@ //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc // This test case makes sure re-order the methods in a vtable will // trigger recompilation of codegen units that instantiate it. diff --git a/tests/incremental/rlib_cross_crate/b.rs b/tests/incremental/rlib_cross_crate/b.rs index 672d2ba40684b..3373f8098c4f4 100644 --- a/tests/incremental/rlib_cross_crate/b.rs +++ b/tests/incremental/rlib_cross_crate/b.rs @@ -7,6 +7,7 @@ //@ revisions:rpass1 rpass2 rpass3 //@ no-prefer-dynamic //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/rustc-rust-log.rs b/tests/incremental/rustc-rust-log.rs index 602d376bae5f0..f3adbdcfa59ca 100644 --- a/tests/incremental/rustc-rust-log.rs +++ b/tests/incremental/rustc-rust-log.rs @@ -6,6 +6,7 @@ //@ dont-check-compiler-stderr //@ aux-build: rustc-rust-log-aux.rs //@ rustc-env:RUSTC_LOG=debug +//@ ignore-backends: gcc #[cfg(rpass1)] fn main() {} diff --git a/tests/incremental/slice-pattern-const-ice-83085.rs b/tests/incremental/slice-pattern-const-ice-83085.rs index 4d318fd7ec18a..e1a4407595f93 100644 --- a/tests/incremental/slice-pattern-const-ice-83085.rs +++ b/tests/incremental/slice-pattern-const-ice-83085.rs @@ -3,6 +3,7 @@ // this used to fail to build straight away without needing any kind of // stage1/2 builds but tidy demands it //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc fn main() { const BOO: &[u8; 0] = &[]; diff --git a/tests/incremental/source_loc_macros.rs b/tests/incremental/source_loc_macros.rs index dbe0a4ba90464..ba67fa2fadada 100644 --- a/tests/incremental/source_loc_macros.rs +++ b/tests/incremental/source_loc_macros.rs @@ -4,6 +4,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/span_hash_stable/main.rs b/tests/incremental/span_hash_stable/main.rs index 0dba650163d36..c524ee3ec56df 100644 --- a/tests/incremental/span_hash_stable/main.rs +++ b/tests/incremental/span_hash_stable/main.rs @@ -5,6 +5,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -g -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/spans_in_type_debuginfo.rs b/tests/incremental/spans_in_type_debuginfo.rs index e8ae592c0c749..e56b782e92f16 100644 --- a/tests/incremental/spans_in_type_debuginfo.rs +++ b/tests/incremental/spans_in_type_debuginfo.rs @@ -3,6 +3,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph -g +//@ ignore-backends: gcc #![rustc_partition_reused(module="spans_in_type_debuginfo-structs", cfg="rpass2")] #![rustc_partition_reused(module="spans_in_type_debuginfo-enums", cfg="rpass2")] diff --git a/tests/incremental/spans_significant_w_debuginfo.rs b/tests/incremental/spans_significant_w_debuginfo.rs index 48be9cd3bc967..06baecd75e5b4 100644 --- a/tests/incremental/spans_significant_w_debuginfo.rs +++ b/tests/incremental/spans_significant_w_debuginfo.rs @@ -4,6 +4,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -g -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![rustc_partition_codegened(module = "spans_significant_w_debuginfo", cfg = "rpass2")] diff --git a/tests/incremental/spans_significant_w_panic.rs b/tests/incremental/spans_significant_w_panic.rs index f9016725258be..34363c359dca1 100644 --- a/tests/incremental/spans_significant_w_panic.rs +++ b/tests/incremental/spans_significant_w_panic.rs @@ -4,6 +4,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -C overflow-checks=on -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![rustc_partition_codegened(module = "spans_significant_w_panic", cfg = "rpass2")] diff --git a/tests/incremental/spike.rs b/tests/incremental/spike.rs index 5e6cd2fe3b39b..da1d20fe11656 100644 --- a/tests/incremental/spike.rs +++ b/tests/incremental/spike.rs @@ -4,6 +4,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/split_debuginfo_cached.rs b/tests/incremental/split_debuginfo_cached.rs index 4dea77308a71e..0feb1cb6174ed 100644 --- a/tests/incremental/split_debuginfo_cached.rs +++ b/tests/incremental/split_debuginfo_cached.rs @@ -8,6 +8,7 @@ //@ [rpass1]compile-flags: -g -Zquery-dep-graph -Csplit-debuginfo=packed -Zsplit-dwarf-kind=split //@ [rpass2]compile-flags: -g -Zquery-dep-graph -Csplit-debuginfo=packed -Zsplit-dwarf-kind=split +//@ ignore-backends: gcc #![feature(rustc_attrs)] // For `rpass2`, nothing has changed so everything should re-used. diff --git a/tests/incremental/static_cycle/b.rs b/tests/incremental/static_cycle/b.rs index 7054b2ea4e360..c8243cb5328c5 100644 --- a/tests/incremental/static_cycle/b.rs +++ b/tests/incremental/static_cycle/b.rs @@ -1,4 +1,5 @@ //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc #![cfg_attr(rpass2, warn(dead_code))] diff --git a/tests/incremental/static_refering_to_other_static/issue-49081.rs b/tests/incremental/static_refering_to_other_static/issue-49081.rs index b6c1c1a9c8bd3..83111412fee85 100644 --- a/tests/incremental/static_refering_to_other_static/issue-49081.rs +++ b/tests/incremental/static_refering_to_other_static/issue-49081.rs @@ -1,6 +1,7 @@ // https://github.com/rust-lang/rust/issues/49081 //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc pub static A: i32 = 42; pub static B: &i32 = &A; diff --git a/tests/incremental/static_refering_to_other_static2/issue.rs b/tests/incremental/static_refering_to_other_static2/issue.rs index 8b6dc6d3e4b0b..7682352f33638 100644 --- a/tests/incremental/static_refering_to_other_static2/issue.rs +++ b/tests/incremental/static_refering_to_other_static2/issue.rs @@ -1,4 +1,5 @@ //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc #[cfg(rpass1)] pub static A: i32 = 42; diff --git a/tests/incremental/static_refering_to_other_static3/issue.rs b/tests/incremental/static_refering_to_other_static3/issue.rs index 39e46745f8a2b..b7ad0eacfd01c 100644 --- a/tests/incremental/static_refering_to_other_static3/issue.rs +++ b/tests/incremental/static_refering_to_other_static3/issue.rs @@ -1,4 +1,5 @@ //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc #[cfg(rpass1)] pub static A: u8 = 42; diff --git a/tests/incremental/static_stable_hash/issue-49301.rs b/tests/incremental/static_stable_hash/issue-49301.rs index 68dc6d214c4e3..7d6b292d80d25 100644 --- a/tests/incremental/static_stable_hash/issue-49301.rs +++ b/tests/incremental/static_stable_hash/issue-49301.rs @@ -1,6 +1,7 @@ // https://github.com/rust-lang/rust/issues/49081 //@ revisions:rpass1 rpass2 +//@ ignore-backends: gcc #[cfg(rpass1)] pub static A: &str = "hello"; diff --git a/tests/incremental/struct_add_field.rs b/tests/incremental/struct_add_field.rs index ad1b6fcfe2828..2c26b388122a7 100644 --- a/tests/incremental/struct_add_field.rs +++ b/tests/incremental/struct_add_field.rs @@ -3,6 +3,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/struct_change_field_type.rs b/tests/incremental/struct_change_field_type.rs index aed6c8884ac47..0291b34e3622a 100644 --- a/tests/incremental/struct_change_field_type.rs +++ b/tests/incremental/struct_change_field_type.rs @@ -3,6 +3,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/struct_change_field_type_cross_crate/b.rs b/tests/incremental/struct_change_field_type_cross_crate/b.rs index 00bc3db0de86b..5307d0af9d0a4 100644 --- a/tests/incremental/struct_change_field_type_cross_crate/b.rs +++ b/tests/incremental/struct_change_field_type_cross_crate/b.rs @@ -1,6 +1,7 @@ //@ aux-build:a.rs //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/struct_change_nothing.rs b/tests/incremental/struct_change_nothing.rs index 3fc9a1c4de7fb..fd8c4882e1b2d 100644 --- a/tests/incremental/struct_change_nothing.rs +++ b/tests/incremental/struct_change_nothing.rs @@ -3,6 +3,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/struct_remove_field.rs b/tests/incremental/struct_remove_field.rs index 488d7996b339b..23ba27344f9c1 100644 --- a/tests/incremental/struct_remove_field.rs +++ b/tests/incremental/struct_remove_field.rs @@ -3,6 +3,7 @@ //@ revisions:rpass1 rpass2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/thinlto/cgu_invalidated_via_import.rs b/tests/incremental/thinlto/cgu_invalidated_via_import.rs index 04a5a06384a3b..09380625ff617 100644 --- a/tests/incremental/thinlto/cgu_invalidated_via_import.rs +++ b/tests/incremental/thinlto/cgu_invalidated_via_import.rs @@ -5,6 +5,7 @@ //@ revisions: cfail1 cfail2 cfail3 //@ compile-flags: -Z query-dep-graph -O //@ build-pass +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![crate_type="rlib"] diff --git a/tests/incremental/thinlto/cgu_invalidated_when_export_added.rs b/tests/incremental/thinlto/cgu_invalidated_when_export_added.rs index a9b05467bf689..b6c9ceec2719d 100644 --- a/tests/incremental/thinlto/cgu_invalidated_when_export_added.rs +++ b/tests/incremental/thinlto/cgu_invalidated_when_export_added.rs @@ -1,5 +1,6 @@ //@ revisions: cfail1 cfail2 //@ build-pass +//@ ignore-backends: gcc // rust-lang/rust#69798: // diff --git a/tests/incremental/thinlto/cgu_invalidated_when_export_removed.rs b/tests/incremental/thinlto/cgu_invalidated_when_export_removed.rs index 3a78a290c7b22..488e8f68c510a 100644 --- a/tests/incremental/thinlto/cgu_invalidated_when_export_removed.rs +++ b/tests/incremental/thinlto/cgu_invalidated_when_export_removed.rs @@ -1,5 +1,6 @@ //@ revisions: cfail1 cfail2 //@ build-pass +//@ ignore-backends: gcc // rust-lang/rust#69798: // diff --git a/tests/incremental/thinlto/cgu_invalidated_when_import_added.rs b/tests/incremental/thinlto/cgu_invalidated_when_import_added.rs index 4198c6c273ba3..e17bf5eb8e806 100644 --- a/tests/incremental/thinlto/cgu_invalidated_when_import_added.rs +++ b/tests/incremental/thinlto/cgu_invalidated_when_import_added.rs @@ -1,6 +1,7 @@ //@ revisions: cfail1 cfail2 //@ compile-flags: -O -Zhuman-readable-cgu-names -Cllvm-args=-import-instr-limit=10 //@ build-pass +//@ ignore-backends: gcc // rust-lang/rust#59535: // diff --git a/tests/incremental/thinlto/cgu_invalidated_when_import_removed.rs b/tests/incremental/thinlto/cgu_invalidated_when_import_removed.rs index 4880d376fcc07..b2b86bdb80c2c 100644 --- a/tests/incremental/thinlto/cgu_invalidated_when_import_removed.rs +++ b/tests/incremental/thinlto/cgu_invalidated_when_import_removed.rs @@ -1,6 +1,7 @@ //@ revisions: cfail1 cfail2 //@ compile-flags: -O -Zhuman-readable-cgu-names -Cllvm-args=-import-instr-limit=10 //@ build-pass +//@ ignore-backends: gcc // rust-lang/rust#59535: // diff --git a/tests/incremental/thinlto/cgu_keeps_identical_fn.rs b/tests/incremental/thinlto/cgu_keeps_identical_fn.rs index d124a3498c4a6..6c87130b73850 100644 --- a/tests/incremental/thinlto/cgu_keeps_identical_fn.rs +++ b/tests/incremental/thinlto/cgu_keeps_identical_fn.rs @@ -6,6 +6,7 @@ //@ revisions: cfail1 cfail2 cfail3 //@ compile-flags: -Z query-dep-graph -O //@ build-pass +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![crate_type = "rlib"] diff --git a/tests/incremental/thinlto/independent_cgus_dont_affect_each_other.rs b/tests/incremental/thinlto/independent_cgus_dont_affect_each_other.rs index e05508fa8e305..15d2f315d16e2 100644 --- a/tests/incremental/thinlto/independent_cgus_dont_affect_each_other.rs +++ b/tests/incremental/thinlto/independent_cgus_dont_affect_each_other.rs @@ -4,6 +4,7 @@ //@ revisions: cfail1 cfail2 cfail3 //@ compile-flags: -Z query-dep-graph -O //@ build-pass +//@ ignore-backends: gcc #![feature(rustc_attrs)] #![crate_type="rlib"] diff --git a/tests/incremental/type_alias_cross_crate/b.rs b/tests/incremental/type_alias_cross_crate/b.rs index 7187336ba5ee5..7fa7073e3da9e 100644 --- a/tests/incremental/type_alias_cross_crate/b.rs +++ b/tests/incremental/type_alias_cross_crate/b.rs @@ -1,6 +1,7 @@ //@ aux-build:a.rs //@ revisions:rpass1 rpass2 rpass3 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![feature(rustc_attrs)] diff --git a/tests/incremental/unchecked_dirty_clean.rs b/tests/incremental/unchecked_dirty_clean.rs index aab3333dff34b..e500bdf8fad3b 100644 --- a/tests/incremental/unchecked_dirty_clean.rs +++ b/tests/incremental/unchecked_dirty_clean.rs @@ -1,5 +1,6 @@ //@ revisions: rpass1 cfail2 //@ compile-flags: -Z query-dep-graph +//@ ignore-backends: gcc #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/tests/incremental/unrecoverable_query.rs b/tests/incremental/unrecoverable_query.rs index 798a418f79902..367339cdcc021 100644 --- a/tests/incremental/unrecoverable_query.rs +++ b/tests/incremental/unrecoverable_query.rs @@ -7,6 +7,7 @@ //@ revisions:cfail1 cfail2 //@ compile-flags: --crate-type=lib //@ build-pass +//@ ignore-backends: gcc #![allow(dead_code)] diff --git a/tests/incremental/user-written-closure-synthetic-closure-conflict.rs b/tests/incremental/user-written-closure-synthetic-closure-conflict.rs index 618604d06b173..31b94536c4ab1 100644 --- a/tests/incremental/user-written-closure-synthetic-closure-conflict.rs +++ b/tests/incremental/user-written-closure-synthetic-closure-conflict.rs @@ -1,5 +1,6 @@ //@ revisions: rpass1 rpass2 //@ edition: 2024 +//@ ignore-backends: gcc #![allow(unused)] diff --git a/tests/incremental/warnings-reemitted.rs b/tests/incremental/warnings-reemitted.rs index c38c43d46df6e..5eefd8608c2f9 100644 --- a/tests/incremental/warnings-reemitted.rs +++ b/tests/incremental/warnings-reemitted.rs @@ -1,6 +1,7 @@ //@ revisions: cfail1 cfail2 cfail3 //@ compile-flags: -Coverflow-checks=on //@ build-pass +//@ ignore-backends: gcc #![warn(arithmetic_overflow)] diff --git a/tests/mir-opt/inline/asm_unwind.rs b/tests/mir-opt/inline/asm_unwind.rs index 8a102b2f56138..df4dc8f0c3335 100644 --- a/tests/mir-opt/inline/asm_unwind.rs +++ b/tests/mir-opt/inline/asm_unwind.rs @@ -4,6 +4,7 @@ //@ needs-asm-support //@ needs-unwind //@ compile-flags: -Zinline-mir-hint-threshold=1000 -C debuginfo=full +//@ ignore-backends: gcc #![feature(asm_unwind)] struct D; diff --git a/tests/mir-opt/inline/inline_compatibility.rs b/tests/mir-opt/inline/inline_compatibility.rs index a31153dedc9fe..2b8280a3cfb00 100644 --- a/tests/mir-opt/inline/inline_compatibility.rs +++ b/tests/mir-opt/inline/inline_compatibility.rs @@ -1,6 +1,7 @@ // Checks that only functions with compatible attributes are inlined. //@ only-x86_64 //@ compile-flags: -Cpanic=abort +//@ ignore-backends: gcc #![crate_type = "lib"] #![feature(sanitize)] diff --git a/tests/ui/abi/homogenous-floats-target-feature-mixup.rs b/tests/ui/abi/homogenous-floats-target-feature-mixup.rs index 2c78b794a8d74..f472b1aa9aff2 100644 --- a/tests/ui/abi/homogenous-floats-target-feature-mixup.rs +++ b/tests/ui/abi/homogenous-floats-target-feature-mixup.rs @@ -6,6 +6,7 @@ //@ run-pass //@ needs-subprocess +//@ ignore-backends: gcc #![allow(overflowing_literals)] #![allow(unused_variables)] diff --git a/tests/ui/abi/segfault-no-out-of-stack.rs b/tests/ui/abi/segfault-no-out-of-stack.rs index 5e8b4e0dbf2a6..b122079d36f76 100644 --- a/tests/ui/abi/segfault-no-out-of-stack.rs +++ b/tests/ui/abi/segfault-no-out-of-stack.rs @@ -2,6 +2,7 @@ //@ needs-subprocess //@ compile-flags: -Zub-checks=no -Zmir-enable-passes=-CheckNull //@ ignore-fuchsia must translate zircon signal to SIGSEGV/SIGBUS, FIXME (#58590) +//@ ignore-backends: gcc #![feature(rustc_private)] diff --git a/tests/ui/process/process-panic-after-fork.rs b/tests/ui/process/process-panic-after-fork.rs index 653ff6ce314d9..154ff51878d6e 100644 --- a/tests/ui/process/process-panic-after-fork.rs +++ b/tests/ui/process/process-panic-after-fork.rs @@ -5,6 +5,7 @@ //@ ignore-fuchsia no fork //@ ignore-tvos fork is prohibited //@ ignore-watchos fork is prohibited +//@ ignore-backends: gcc #![feature(rustc_private)] #![feature(never_type)] diff --git a/tests/ui/sanitizer/address.rs b/tests/ui/sanitizer/address.rs index 1688f46c2d556..badaa4db5c317 100644 --- a/tests/ui/sanitizer/address.rs +++ b/tests/ui/sanitizer/address.rs @@ -7,6 +7,7 @@ //@ run-fail-or-crash //@ error-pattern: AddressSanitizer: stack-buffer-overflow //@ error-pattern: 'xs' (line 14) <== Memory access at offset +//@ ignore-backends: gcc use std::hint::black_box; diff --git a/tests/ui/sanitizer/dataflow.rs b/tests/ui/sanitizer/dataflow.rs index d99a1a6ac2479..e3e03fee08c30 100644 --- a/tests/ui/sanitizer/dataflow.rs +++ b/tests/ui/sanitizer/dataflow.rs @@ -5,6 +5,7 @@ //@ needs-sanitizer-dataflow //@ run-pass //@ compile-flags: -Zsanitizer=dataflow -Zsanitizer-dataflow-abilist={{src-base}}/sanitizer/dataflow-abilist.txt -C unsafe-allow-abi-mismatch=sanitizer +//@ ignore-backends: gcc use std::mem::size_of; use std::os::raw::{c_int, c_long, c_void}; diff --git a/tests/ui/sanitizer/memory-eager.rs b/tests/ui/sanitizer/memory-eager.rs index 9498336abb7d0..59ad6eec0e329 100644 --- a/tests/ui/sanitizer/memory-eager.rs +++ b/tests/ui/sanitizer/memory-eager.rs @@ -12,6 +12,7 @@ //@ error-pattern: MemorySanitizer: use-of-uninitialized-value //@ [optimized]error-pattern: Uninitialized value was created by an allocation //@ [optimized]error-pattern: in the stack frame +//@ ignore-backends: gcc // // FIXME the unoptimized case actually has that text in the output too, per // diff --git a/tests/ui/sanitizer/memory.rs b/tests/ui/sanitizer/memory.rs index 1566637acd222..764d8b4432bf2 100644 --- a/tests/ui/sanitizer/memory.rs +++ b/tests/ui/sanitizer/memory.rs @@ -12,6 +12,7 @@ //@ error-pattern: MemorySanitizer: use-of-uninitialized-value //@ error-pattern: Uninitialized value was created by an allocation //@ error-pattern: in the stack frame +//@ ignore-backends: gcc // // This test case intentionally limits the usage of the std, // since it will be linked with an uninstrumented version of it. diff --git a/tests/ui/sanitizer/new-llvm-pass-manager-thin-lto.rs b/tests/ui/sanitizer/new-llvm-pass-manager-thin-lto.rs index b66568474277e..deeee694a1cf9 100644 --- a/tests/ui/sanitizer/new-llvm-pass-manager-thin-lto.rs +++ b/tests/ui/sanitizer/new-llvm-pass-manager-thin-lto.rs @@ -15,6 +15,7 @@ //@[opt1]compile-flags: -Copt-level=1 //@ run-fail-or-crash //@ error-pattern: ERROR: AddressSanitizer: stack-use-after-scope +//@ ignore-backends: gcc static mut P: *mut usize = std::ptr::null_mut(); diff --git a/tests/ui/sanitizer/thread.rs b/tests/ui/sanitizer/thread.rs index 8f72b1b41a84c..7ed21dce9f3e9 100644 --- a/tests/ui/sanitizer/thread.rs +++ b/tests/ui/sanitizer/thread.rs @@ -19,6 +19,7 @@ //@ error-pattern: WARNING: ThreadSanitizer: data race //@ error-pattern: Location is heap block of size 4 //@ error-pattern: allocated by main thread +//@ ignore-backends: gcc #![feature(rustc_private)] extern crate libc; diff --git a/tests/ui/sanitizer/use-after-scope.rs b/tests/ui/sanitizer/use-after-scope.rs index 1c477d0be14b8..523b35869074c 100644 --- a/tests/ui/sanitizer/use-after-scope.rs +++ b/tests/ui/sanitizer/use-after-scope.rs @@ -5,6 +5,7 @@ //@ compile-flags: -Zsanitizer=address -C unsafe-allow-abi-mismatch=sanitizer //@ run-fail-or-crash //@ error-pattern: ERROR: AddressSanitizer: stack-use-after-scope +//@ ignore-backends: gcc static mut P: *mut usize = std::ptr::null_mut(); diff --git a/tests/ui/simd/target-feature-mixup.rs b/tests/ui/simd/target-feature-mixup.rs index 82902891b97f2..014a9966f5cbd 100644 --- a/tests/ui/simd/target-feature-mixup.rs +++ b/tests/ui/simd/target-feature-mixup.rs @@ -5,6 +5,7 @@ //@ needs-subprocess //@ ignore-fuchsia must translate zircon signal to SIGILL, FIXME (#58590) +//@ ignore-backends: gcc #![feature(repr_simd, target_feature, cfg_target_feature)]