From: Blue Swirl <blauwirbel@xxxxxxxxx> This patch adds support for Sparc64 (Sparc V9, LP64). Signed-off-by: Blue Swirl <blauwirbel@xxxxxxxxx> --- cgcc | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/cgcc b/cgcc index 31c219a..98686a7 100755 --- a/cgcc +++ b/cgcc @@ -243,6 +243,11 @@ sub add_specs { &integer_types (8, 16, 32, $m64 ? 64 : 32, 64) . &float_types (1, 1, 33, [24,8], [53,11], [113,15]) . &define_size_t ($m64 ? "long unsigned int" : "unsigned int")); + } elsif ($spec eq 'sparc64') { + return (' -Dsparc=1 -D__sparc=1 -D__sparc__=1 -D__sparcv9__=1 -D__sparc64__=1 -D__arch64__=1 -D__LP64__=1' . + &integer_types (8, 16, 32, 64, 64) . + &float_types (1, 1, 33, [24,8], [53,11], [113,15]) . + &define_size_t ("long unsigned int")); } elsif ($spec eq 'x86_64') { return (' -Dx86_64=1 -D__x86_64=1 -D__x86_64__=1' . &integer_types (8, 16, 32, $m32 ? 32 : 64, 64) . @@ -268,6 +273,8 @@ sub add_specs { return &add_specs ('x86_64'); } elsif ($arch =~ /^(ppc)$/i) { return &add_specs ('ppc'); + } elsif ($arch =~ /^(sparc64)$/i) { + return &add_specs ('sparc64'); } } else { die "$0: invalid specs: $spec\n"; -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html