Commit 034574cc authored by John Paul Adrian Glaubitz's avatar John Paul Adrian Glaubitz
Browse files

Add initial support for sparc-unknown-linux-gnu

parent c899a796
......@@ -62,6 +62,7 @@ macro_rules! expand_align {
target_arch = "arm",
target_arch = "hexagon",
target_arch = "powerpc",
target_arch = "sparc",
target_arch = "x86_64",
target_arch = "x86")),
repr(align(4)))]
......@@ -70,6 +71,7 @@ macro_rules! expand_align {
target_arch = "arm",
target_arch = "hexagon",
target_arch = "powerpc",
target_arch = "sparc",
target_arch = "x86_64",
target_arch = "x86"))),
repr(align(8)))]
......@@ -83,6 +85,7 @@ macro_rules! expand_align {
target_arch = "arm",
target_arch = "hexagon",
target_arch = "powerpc",
target_arch = "sparc",
target_arch = "x86_64",
target_arch = "x86")),
repr(align(4)))]
......@@ -91,6 +94,7 @@ macro_rules! expand_align {
target_arch = "arm",
target_arch = "hexagon",
target_arch = "powerpc",
target_arch = "sparc",
target_arch = "x86_64",
target_arch = "x86"))),
repr(align(8)))]
......
......@@ -262,6 +262,9 @@ cfg_if! {
} else if #[cfg(target_arch = "powerpc")] {
mod powerpc;
pub use self::powerpc::*;
} else if #[cfg(target_arch = "sparc")] {
mod sparc;
pub use self::sparc::*;
} else {
// Unknown target_arch
}
......
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(8))]
pub struct max_align_t {
priv_: [i64; 3]
}
}
This diff is collapsed.
......@@ -98,11 +98,13 @@ s! {
pub c_line: ::cc_t,
pub c_cc: [::cc_t; ::NCCS],
#[cfg(not(any(
target_arch = "sparc",
target_arch = "sparc64",
target_arch = "mips",
target_arch = "mips64")))]
pub c_ispeed: ::speed_t,
#[cfg(not(any(
target_arch = "sparc",
target_arch = "sparc64",
target_arch = "mips",
target_arch = "mips64")))]
......@@ -864,7 +866,10 @@ cfg_if! {
target_arch = "s390x"
))] {
pub const PTHREAD_STACK_MIN: ::size_t = 16384;
} else if #[cfg(target_arch = "sparc64")] {
} else if #[cfg(any(
target_arch = "sparc",
target_arch = "sparc64"
))] {
pub const PTHREAD_STACK_MIN: ::size_t = 0x6000;
} else {
pub const PTHREAD_STACK_MIN: ::size_t = 131072;
......@@ -1023,7 +1028,8 @@ cfg_if! {
if #[cfg(any(target_arch = "x86",
target_arch = "arm",
target_arch = "mips",
target_arch = "powerpc"))] {
target_arch = "powerpc",
target_arch = "sparc"))] {
mod b32;
pub use self::b32::*;
} else if #[cfg(any(target_arch = "x86_64",
......
......@@ -48,12 +48,14 @@ macro_rules! expand_align {
#[cfg(any(target_arch = "mips",
target_arch = "arm",
target_arch = "powerpc",
target_arch = "sparc",
all(target_arch = "x86_64",
target_pointer_width = "32")))]
__align: [::c_long; 0],
#[cfg(not(any(target_arch = "mips",
target_arch = "arm",
target_arch = "powerpc",
target_arch = "sparc",
all(target_arch = "x86_64",
target_pointer_width = "32"))))]
__align: [::c_longlong; 0],
......@@ -64,12 +66,14 @@ macro_rules! expand_align {
#[cfg(any(target_arch = "mips",
target_arch = "arm",
target_arch = "powerpc",
target_arch = "sparc",
all(target_arch = "x86_64",
target_pointer_width = "32")))]
__align: [::c_long; 0],
#[cfg(not(any(target_arch = "mips",
target_arch = "arm",
target_arch = "powerpc",
target_arch = "sparc",
all(target_arch = "x86_64",
target_pointer_width = "32"))))]
__align: [::c_longlong; 0],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment