rustc.git
5 years agoAdd cross prefix for riscv64gc-unknown-linux-gnu => riscv64-linux-gnu
Ximin Luo [Sat, 4 Jan 2020 05:11:21 +0000 (05:11 +0000)]
Add cross prefix for riscv64gc-unknown-linux-gnu => riscv64-linux-gnu

Add out-of-the-box cross-compiling support for riscv64gc-unknown-linux-gnu

Gbp-Pq: Name u-riscv64-cc-465.patch

5 years agoEnable -fPIC on non-bare-metal RISC-V
msizanoen1 [Thu, 5 Dec 2019 05:22:41 +0000 (12:22 +0700)]
Enable -fPIC on non-bare-metal RISC-V

Gbp-Pq: Name u-riscv64-cc-461.patch

5 years agoDefault to double-float ABI on RISC-V Linux
msizanoen1 [Sun, 1 Dec 2019 13:19:11 +0000 (20:19 +0700)]
Default to double-float ABI on RISC-V Linux

Gbp-Pq: Name u-riscv64-cc-460.patch

5 years agorisc-v: Disable PIC by default for now
Wladimir J. van der Laan [Thu, 8 Aug 2019 06:27:30 +0000 (06:27 +0000)]
risc-v: Disable PIC by default for now

Rust's linker cannot currently handle gcc's fPIC compilation units
for RISC-V targets:

      = note: rust-lld: error:
          .got section detected in the input files. Dynamic relocations are not
          supported. If you are linking to C code compiled using the `gcc` crate
          then modify your build script to compile the C code _without_ the
          -fPIC flag. See the documentation of the `gcc::Config.fpic` method for
          details.

So disable PIC by default for now for `riscv` targets.

Gbp-Pq: Name u-riscv64-cc-430.patch

5 years agorisc-v: Set ABI correctly for 32-bit targets
Wladimir J. van der Laan [Thu, 8 Aug 2019 06:52:55 +0000 (06:52 +0000)]
risc-v: Set ABI correctly for 32-bit targets

Pick the correct softfloat mode based on bitness:

- `-mabi=lp64` for 64 bit RISC-V
- `-mabi=ilp32` for 32-bit RISC-V

Currently it fails for rv32 due to a conflict between the ABI and arch:

    cc1: error: ABI requires -march=rv64

Gbp-Pq: Name u-riscv64-cc-429.patch

5 years agoAdd RISC-V support
Wladimir J. van der Laan [Wed, 7 Aug 2019 13:57:33 +0000 (13:57 +0000)]
Add RISC-V support

Automatically choose the most common name for the toolchain, and add the
command-line arguments to generate code that is compatible with the
chosen architecture.

Fixes #397.

Gbp-Pq: Name u-riscv64-cc-428.patch

5 years agoSupport for RISC-V 64-bit GNU/Linux
msizanoen1 [Sat, 23 Nov 2019 07:02:48 +0000 (14:02 +0700)]
Support for RISC-V 64-bit GNU/Linux

Gbp-Pq: Name u-riscv64-libc-1606.patch

5 years agoAdd support for RISC-V 64-bit GNU/Linux
msizanoen1 [Sat, 23 Nov 2019 07:22:05 +0000 (14:22 +0700)]
Add support for RISC-V 64-bit GNU/Linux

Gbp-Pq: Name u-riscv64-66899.patch

5 years agou-riscv64-format-2
Debian Rust Maintainers [Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)]
u-riscv64-format-2

commit 4436c9d35498e7ae3da261f6141d6d73b915e1e8
gpg: Signature made Sat 30 Nov 2019 02:43:27 GMT
gpg:                using RSA key 4628C5D82CFF65D68164A78AF9BA143B95FF6D82
gpg: Can't check signature: No public key
Author: David Tolnay <dtolnay@gmail.com>
Date:   Wed Nov 27 10:29:00 2019 -0800

    Format libstd with rustfmt

    This commit applies rustfmt with rust-lang/rust's default settings to
    files in src/libstd *that are not involved in any currently open PR* to
    minimize merge conflicts. THe list of files involved in open PRs was
    determined by querying GitHub's GraphQL API with this script:
    https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8

    With the list of files from the script in outstanding_files, the
    relevant commands were:

        $ find src/libstd -name '*.rs' \
            | xargs rustfmt --edition=2018 --unstable-features --skip-children
        $ rg libstd outstanding_files | xargs git checkout --

    Repeating this process several months apart should get us coverage of
    most of the rest of libstd.

    To confirm no funny business:

        $ git checkout $THIS_COMMIT^
        $ git show --pretty= --name-only $THIS_COMMIT \
            | xargs rustfmt --edition=2018 --unstable-features --skip-children
        $ git diff $THIS_COMMIT  # there should be no difference

Gbp-Pq: Name u-riscv64-format-2.patch

5 years agou-riscv64-format-1
Debian Rust Maintainers [Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)]
u-riscv64-format-1

commit 60091ee826b071a122ad4ef4ae833591e1db553b
gpg: Signature made Sat 30 Nov 2019 02:32:46 GMT
gpg:                using RSA key 4628C5D82CFF65D68164A78AF9BA143B95FF6D82
gpg: Can't check signature: No public key
Author: David Tolnay <dtolnay@gmail.com>
Date:   Wed Nov 27 10:28:21 2019 -0800

    Format libstd/os with rustfmt

    This commit applies rustfmt with rust-lang/rust's default settings to
    files in src/libstd/os *that are not involved in any currently open PR*
    to minimize merge conflicts. THe list of files involved in open PRs was
    determined by querying GitHub's GraphQL API with this script:
    https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8

    With the list of files from the script in outstanding_files, the
    relevant commands were:

        $ find src/libstd/os -name '*.rs' \
            | xargs rustfmt --edition=2018 --unstable-features --skip-children
        $ rg libstd/os outstanding_files | xargs git checkout --

    Repeating this process several months apart should get us coverage of
    most of the rest of the files.

    To confirm no funny business:

        $ git checkout $THIS_COMMIT^
        $ git show --pretty= --name-only $THIS_COMMIT \
            | xargs rustfmt --edition=2018 --unstable-features --skip-children
        $ git diff $THIS_COMMIT  # there should be no difference

Gbp-Pq: Name u-riscv64-format-1.patch

5 years agoAdd riscv64gc-unknown-linux-gnu target
msizanoen1 [Sat, 23 Nov 2019 07:15:27 +0000 (14:15 +0700)]
Add riscv64gc-unknown-linux-gnu target

Gbp-Pq: Name u-riscv64-66661.patch

5 years agoAllow specifying key "llvm-abiname" in target specification
Gui Andrade [Wed, 30 Oct 2019 04:12:05 +0000 (21:12 -0700)]
Allow specifying key "llvm-abiname" in target specification

This addresses #65024, as it allows RISC-V target specification
files to set "llvm-abiname": "lp64d". In general, it is useful
for the programmer to be able to set this codegen parameter,
which other languages usually expose under a compiler argument
like "-mabi=<XYZ>".

Gbp-Pq: Name u-riscv64-65953.patch

5 years agou-fix-cross-compile-install-again
Debian Rust Maintainers [Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)]
u-fix-cross-compile-install-again

Gbp-Pq: Name u-fix-cross-compile-install-again.patch

5 years agou-mips-fixes
Debian Rust Maintainers [Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)]
u-mips-fixes

Gbp-Pq: Name u-mips-fixes.diff

5 years agou-tests-ignore-arm
Debian Rust Maintainers [Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)]
u-tests-ignore-arm

Gbp-Pq: Name u-tests-ignore-arm.patch

5 years agou-make-tests-work-without-rpath
Debian Rust Maintainers [Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)]
u-make-tests-work-without-rpath

Gbp-Pq: Name u-make-tests-work-without-rpath.patch

5 years agou-prefer-local-css
Debian Rust Maintainers [Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)]
u-prefer-local-css

Gbp-Pq: Name u-prefer-local-css.patch

5 years agou-reproducible-build
Debian Rust Maintainers [Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)]
u-reproducible-build

Gbp-Pq: Name u-reproducible-build.patch

5 years agorustc (1.40.0+dfsg1-5) unstable; urgency=medium
Ximin Luo [Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)]
rustc (1.40.0+dfsg1-5) unstable; urgency=medium

  * More python 2 -> 3 fixes.
  * Allow 24 failing tests on riscv64.
  * Reenable debuginfo for rustc, not just libstd.
  * Reenable backtraces during tests.

[dgit import unpatched rustc 1.40.0+dfsg1-5]

5 years agoImport rustc_1.40.0+dfsg1-5.debian.tar.xz
Ximin Luo [Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)]
Import rustc_1.40.0+dfsg1-5.debian.tar.xz

[dgit import tarball rustc 1.40.0+dfsg1-5 rustc_1.40.0+dfsg1-5.debian.tar.xz]

5 years agoImport rustc_1.40.0+dfsg1.orig.tar.xz
Ximin Luo [Wed, 25 Dec 2019 00:09:24 +0000 (00:09 +0000)]
Import rustc_1.40.0+dfsg1.orig.tar.xz

[dgit import orig rustc_1.40.0+dfsg1.orig.tar.xz]