diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-03-30 11:14:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 11:14:40 +0000 |
commit | bd1f435b2310e61ed76d69063004c2aadb496255 (patch) | |
tree | 27321b25416636f9ab6516a417d43c824861c13a | |
parent | e8b9587d3a0615f497cfe9c66995c1f21e42a536 (diff) | |
parent | e824a0835b1514d39287da3fe53dc9e11a0c5f42 (diff) | |
download | gcc-bd1f435b2310e61ed76d69063004c2aadb496255.zip gcc-bd1f435b2310e61ed76d69063004c2aadb496255.tar.gz gcc-bd1f435b2310e61ed76d69063004c2aadb496255.tar.bz2 |
Merge #1059
1059: Add base for build job using older GCC version r=CohenArthur a=CohenArthur
Fixes #1058
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
-rw-r--r-- | .github/workflows/ccpp.yml | 65 | ||||
-rw-r--r-- | gcc/rust/typecheck/rust-hir-path-probe.h | 12 |
2 files changed, 70 insertions, 7 deletions
diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 5e9e5f4..6159047 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -84,3 +84,68 @@ jobs: else \ exit 0; \ fi + + build-and-check-gcc-48: + + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: Install Deps + run: | + sudo apt-get update; + sudo apt-get install -y \ + automake \ + autoconf \ + libtool \ + autogen \ + bison \ + flex \ + libgmp3-dev \ + libmpfr-dev \ + libmpc-dev \ + build-essential \ + gcc-4.8 \ + g++-4.8 \ + gcc-4.8-multilib \ + g++-4.8-multilib \ + dejagnu + + - name: Configure + run: | + mkdir -p gccrs-build; + cd gccrs-build; + ../configure \ + CC='gcc-4.8' \ + CXX='g++-4.8' \ + --enable-languages=rust \ + --disable-bootstrap \ + --enable-multilib + + - name: Build + shell: bash + run: | + make -C gccrs-build -j $(nproc) + + - name: Run Tests + run: | + cd gccrs-build; \ + make check-rust + + - name: Archive check-rust results + uses: actions/upload-artifact@v2 + with: + name: check-rust-logs-4.8 + path: | + gccrs-build/gcc/testsuite/rust/ + + - name: Check regressions + run: | + cd gccrs-build; \ + if grep -e "unexpected" -e "unresolved" gcc/testsuite/rust/rust.sum;\ + then \ + echo "some tests are not correct"; \ + exit 1; \ + else \ + exit 0; \ + fi diff --git a/gcc/rust/typecheck/rust-hir-path-probe.h b/gcc/rust/typecheck/rust-hir-path-probe.h index 50d660c..3c1858c 100644 --- a/gcc/rust/typecheck/rust-hir-path-probe.h +++ b/gcc/rust/typecheck/rust-hir-path-probe.h @@ -364,10 +364,9 @@ protected: PathProbeCandidate::TraitItemCandidate trait_item_candidate{trait_ref, trait_item_ref, impl}; - PathProbeCandidate candidate{candidate_type, - trait_item_tyty, - trait_ref->get_locus (), - {trait_item_candidate}}; + + PathProbeCandidate candidate{candidate_type, trait_item_tyty, + trait_ref->get_locus (), trait_item_candidate}; candidates.push_back (std::move (candidate)); } @@ -409,10 +408,9 @@ protected: PathProbeCandidate::TraitItemCandidate trait_item_candidate{trait_ref, trait_item_ref, nullptr}; - PathProbeCandidate candidate{candidate_type, - trait_item_tyty, + PathProbeCandidate candidate{candidate_type, trait_item_tyty, trait_item_ref->get_locus (), - {trait_item_candidate}}; + trait_item_candidate}; candidates.push_back (std::move (candidate)); } |