Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #30776 - antonblanchard:powerpc64_merge, r=alexcrichton
This adds support for big endian and little endian PowerPC64. make check runs clean apart from one big endian backtrace issue.
- Loading branch information
Showing
26 changed files
with
440 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# powerpc64-unknown-linux-gnu configuration | ||
CROSS_PREFIX_powerpc64-unknown-linux-gnu=powerpc64-linux-gnu- | ||
CC_powerpc64-unknown-linux-gnu=$(CC) | ||
CXX_powerpc64-unknown-linux-gnu=$(CXX) | ||
CPP_powerpc64-unknown-linux-gnu=$(CPP) | ||
AR_powerpc64-unknown-linux-gnu=$(AR) | ||
CFG_LIB_NAME_powerpc64-unknown-linux-gnu=lib$(1).so | ||
CFG_STATIC_LIB_NAME_powerpc64-unknown-linux-gnu=lib$(1).a | ||
CFG_LIB_GLOB_powerpc64-unknown-linux-gnu=lib$(1)-*.so | ||
CFG_LIB_DSYM_GLOB_powerpc64-unknown-linux-gnu=lib$(1)-*.dylib.dSYM | ||
CFG_CFLAGS_powerpc64-unknown-linux-gnu := -m64 $(CFLAGS) | ||
CFG_GCCISH_CFLAGS_powerpc64-unknown-linux-gnu := -Wall -Werror -g -fPIC -m64 $(CFLAGS) | ||
CFG_GCCISH_CXXFLAGS_powerpc64-unknown-linux-gnu := -fno-rtti $(CXXFLAGS) | ||
CFG_GCCISH_LINK_FLAGS_powerpc64-unknown-linux-gnu := -shared -fPIC -ldl -pthread -lrt -g -m64 | ||
CFG_GCCISH_DEF_FLAG_powerpc64-unknown-linux-gnu := -Wl,--export-dynamic,--dynamic-list= | ||
CFG_LLC_FLAGS_powerpc64-unknown-linux-gnu := | ||
CFG_INSTALL_NAME_powerpc64-unknown-linux-gnu = | ||
CFG_EXE_SUFFIX_powerpc64-unknown-linux-gnu = | ||
CFG_WINDOWSY_powerpc64-unknown-linux-gnu := | ||
CFG_UNIXY_powerpc64-unknown-linux-gnu := 1 | ||
CFG_LDPATH_powerpc64-unknown-linux-gnu := | ||
CFG_RUN_powerpc64-unknown-linux-gnu=$(2) | ||
CFG_RUN_TARG_powerpc64-unknown-linux-gnu=$(call CFG_RUN_powerpc64-unknown-linux-gnu,,$(2)) | ||
CFG_GNU_TRIPLE_powerpc64-unknown-linux-gnu := powerpc64-unknown-linux-gnu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# powerpc64le-unknown-linux-gnu configuration | ||
CROSS_PREFIX_powerpc64le-unknown-linux-gnu=powerpc64le-linux-gnu- | ||
CC_powerpc64le-unknown-linux-gnu=$(CC) | ||
CXX_powerpc64le-unknown-linux-gnu=$(CXX) | ||
CPP_powerpc64le-unknown-linux-gnu=$(CPP) | ||
AR_powerpc64le-unknown-linux-gnu=$(AR) | ||
CFG_LIB_NAME_powerpc64le-unknown-linux-gnu=lib$(1).so | ||
CFG_STATIC_LIB_NAME_powerpc64le-unknown-linux-gnu=lib$(1).a | ||
CFG_LIB_GLOB_powerpc64le-unknown-linux-gnu=lib$(1)-*.so | ||
CFG_LIB_DSYM_GLOB_powerpc64le-unknown-linux-gnu=lib$(1)-*.dylib.dSYM | ||
CFG_CFLAGS_powerpc64le-unknown-linux-gnu := -m64 $(CFLAGS) | ||
CFG_GCCISH_CFLAGS_powerpc64le-unknown-linux-gnu := -Wall -Werror -g -fPIC -m64 $(CFLAGS) | ||
CFG_GCCISH_CXXFLAGS_powerpc64le-unknown-linux-gnu := -fno-rtti $(CXXFLAGS) | ||
CFG_GCCISH_LINK_FLAGS_powerpc64le-unknown-linux-gnu := -shared -fPIC -ldl -pthread -lrt -g -m64 | ||
CFG_GCCISH_DEF_FLAG_powerpc64le-unknown-linux-gnu := -Wl,--export-dynamic,--dynamic-list= | ||
CFG_LLC_FLAGS_powerpc64le-unknown-linux-gnu := | ||
CFG_INSTALL_NAME_powerpc64le-unknown-linux-gnu = | ||
CFG_EXE_SUFFIX_powerpc64le-unknown-linux-gnu = | ||
CFG_WINDOWSY_powerpc64le-unknown-linux-gnu := | ||
CFG_UNIXY_powerpc64le-unknown-linux-gnu := 1 | ||
CFG_LDPATH_powerpc64le-unknown-linux-gnu := | ||
CFG_RUN_powerpc64le-unknown-linux-gnu=$(2) | ||
CFG_RUN_TARG_powerpc64le-unknown-linux-gnu=$(call CFG_RUN_powerpc64le-unknown-linux-gnu,,$(2)) | ||
CFG_GNU_TRIPLE_powerpc64le-unknown-linux-gnu := powerpc64le-unknown-linux-gnu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2012-2016 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
use target::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::linux_base::opts(); | ||
base.pre_link_args.push("-m64".to_string()); | ||
|
||
Target { | ||
llvm_target: "powerpc64-unknown-linux-gnu".to_string(), | ||
target_endian: "big".to_string(), | ||
target_pointer_width: "64".to_string(), | ||
arch: "powerpc64".to_string(), | ||
target_os: "linux".to_string(), | ||
target_env: "gnu".to_string(), | ||
target_vendor: "unknown".to_string(), | ||
options: base, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2012-2016 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
use target::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::linux_base::opts(); | ||
base.pre_link_args.push("-m64".to_string()); | ||
|
||
Target { | ||
llvm_target: "powerpc64le-unknown-linux-gnu".to_string(), | ||
target_endian: "little".to_string(), | ||
target_pointer_width: "64".to_string(), | ||
arch: "powerpc64le".to_string(), | ||
target_os: "linux".to_string(), | ||
target_env: "gnu".to_string(), | ||
target_vendor: "unknown".to_string(), | ||
options: base, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.