-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
powerpc support #20980
Merged
Merged
powerpc support #20980
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
31d232e
powerpc: Add support to configure
richo f512dce
powerpc: Add platform configuration
richo a36a892
powerpc: Build llvm for powerpc
richo 0e0af8e
powerpc: Use toolchain assembler on power
richo 194ed4f
powerpc: Document the existance of powerpc
richo e5bbe82
powerpc: Tell liballoc about power alignment
richo c8442af
powerpc: Add backend support for powerpc
richo 33cd9cf
powerpc: initialize llvm
richo c055d99
powerpc: Teach trans about powerpc
richo a2e3993
powerpc: Add libstd utils
richo f0d6eee
powerpc: Add unwinder size REVISIT
richo 1649810
powerpc: Janky segmented stack support
richo d48fa78
powerpc: add cdefs for linux
richo e9908da
powerpc: Fixup more stack work
richo 7a05dc2
powerpc: pthread support
richo 8341ee4
powerpc: rough platform support
richo 7776820
powerpc: definition support for libc
richo 7340936
powerpc: Fix missing include in cabi_powerpc
richo 043a4b3
powerpc: Fix extraneous include in rt support
richo c513793
Generalise pointer width tests using pointer_width
richo 4ab2c47
Clean up conditions for clobbers
richo 78278d0
Bump to ensure llvm is rebuilt
richo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,28 @@ | ||
# powerpc-unknown-linux-gnu configuration | ||
CROSS_PREFIX_powerpc-unknown-linux-gnu=powerpc-linux-gnu- | ||
CC_powerpc-unknown-linux-gnu=$(CC) | ||
CXX_powerpc-unknown-linux-gnu=$(CXX) | ||
CPP_powerpc-unknown-linux-gnu=$(CPP) | ||
AR_powerpc-unknown-linux-gnu=$(AR) | ||
CFG_LIB_NAME_powerpc-unknown-linux-gnu=lib$(1).so | ||
CFG_STATIC_LIB_NAME_powerpc-unknown-linux-gnu=lib$(1).a | ||
CFG_LIB_GLOB_powerpc-unknown-linux-gnu=lib$(1)-*.so | ||
CFG_LIB_DSYM_GLOB_powerpc-unknown-linux-gnu=lib$(1)-*.dylib.dSYM | ||
CFG_CFLAGS_powerpc-unknown-linux-gnu := -m32 $(CFLAGS) | ||
CFG_GCCISH_CFLAGS_powerpc-unknown-linux-gnu := -Wall -Werror -g -fPIC -m32 $(CFLAGS) | ||
CFG_GCCISH_CXXFLAGS_powerpc-unknown-linux-gnu := -fno-rtti $(CXXFLAGS) | ||
CFG_GCCISH_LINK_FLAGS_powerpc-unknown-linux-gnu := -shared -fPIC -ldl -pthread -lrt -g -m32 | ||
CFG_GCCISH_DEF_FLAG_powerpc-unknown-linux-gnu := -Wl,--export-dynamic,--dynamic-list= | ||
CFG_GCCISH_PRE_LIB_FLAGS_powerpc-unknown-linux-gnu := -Wl,-whole-archive | ||
CFG_GCCISH_POST_LIB_FLAGS_powerpc-unknown-linux-gnu := -Wl,-no-whole-archive | ||
CFG_DEF_SUFFIX_powerpc-unknown-linux-gnu := .linux.def | ||
CFG_LLC_FLAGS_powerpc-unknown-linux-gnu := | ||
CFG_INSTALL_NAME_powerpc-unknown-linux-gnu = | ||
CFG_EXE_SUFFIX_powerpc-unknown-linux-gnu = | ||
CFG_WINDOWSY_powerpc-unknown-linux-gnu := | ||
CFG_UNIXY_powerpc-unknown-linux-gnu := 1 | ||
CFG_PATH_MUNGE_powerpc-unknown-linux-gnu := true | ||
CFG_LDPATH_powerpc-unknown-linux-gnu := | ||
CFG_RUN_powerpc-unknown-linux-gnu=$(2) | ||
CFG_RUN_TARG_powerpc-unknown-linux-gnu=$(call CFG_RUN_powerpc-unknown-linux-gnu,,$(2)) | ||
CFG_GNU_TRIPLE_powerpc-unknown-linux-gnu := powerpc-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
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,26 @@ | ||
// Copyright 2012 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("-m32".to_string()); | ||
|
||
Target { | ||
data_layout: "E-S8-p:32:32-f64:32:64-i64:32:64-f80:32:32-n8:16:32".to_string(), | ||
llvm_target: "powerpc-unknown-linux-gnu".to_string(), | ||
target_endian: "big".to_string(), | ||
target_pointer_width: "32".to_string(), | ||
arch: "powerpc".to_string(), | ||
target_os: "linux".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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to this I think you'll also want to touch the llvm-auto-clean-trigger to ensure LLVM is rebuilt.