Commit fe723c26 authored by Timothy Pearson's avatar Timothy Pearson Committed by Alexandre Julliard

widl: Add PPC64 support.

parent 4a1bd593
...@@ -97,6 +97,8 @@ static const char version_string[] = "Wine IDL Compiler version " PACKAGE_VERSIO ...@@ -97,6 +97,8 @@ static const char version_string[] = "Wine IDL Compiler version " PACKAGE_VERSIO
enum target_cpu target_cpu = CPU_x86; enum target_cpu target_cpu = CPU_x86;
#elif defined(__x86_64__) #elif defined(__x86_64__)
enum target_cpu target_cpu = CPU_x86_64; enum target_cpu target_cpu = CPU_x86_64;
#elif defined(__powerpc64__)
enum target_cpu target_cpu = CPU_POWERPC64;
#elif defined(__powerpc__) #elif defined(__powerpc__)
enum target_cpu target_cpu = CPU_POWERPC; enum target_cpu target_cpu = CPU_POWERPC;
#elif defined(__arm__) #elif defined(__arm__)
...@@ -281,21 +283,23 @@ static void set_target( const char *target ) ...@@ -281,21 +283,23 @@ static void set_target( const char *target )
enum target_cpu cpu; enum target_cpu cpu;
} cpu_names[] = } cpu_names[] =
{ {
{ "i386", CPU_x86 }, { "i386", CPU_x86 },
{ "i486", CPU_x86 }, { "i486", CPU_x86 },
{ "i586", CPU_x86 }, { "i586", CPU_x86 },
{ "i686", CPU_x86 }, { "i686", CPU_x86 },
{ "i786", CPU_x86 }, { "i786", CPU_x86 },
{ "amd64", CPU_x86_64 }, { "amd64", CPU_x86_64 },
{ "x86_64", CPU_x86_64 }, { "x86_64", CPU_x86_64 },
{ "powerpc", CPU_POWERPC }, { "powerpc", CPU_POWERPC },
{ "arm", CPU_ARM }, { "powerpc64", CPU_POWERPC64 },
{ "armv5", CPU_ARM }, { "powerpc64le", CPU_POWERPC64 },
{ "armv6", CPU_ARM }, { "arm", CPU_ARM },
{ "armv7", CPU_ARM }, { "armv5", CPU_ARM },
{ "armv7a", CPU_ARM }, { "armv6", CPU_ARM },
{ "arm64", CPU_ARM64 }, { "armv7", CPU_ARM },
{ "aarch64", CPU_ARM64 }, { "armv7a", CPU_ARM },
{ "arm64", CPU_ARM64 },
{ "aarch64", CPU_ARM64 },
}; };
unsigned int i; unsigned int i;
...@@ -796,6 +800,10 @@ int main(int argc,char *argv[]) ...@@ -796,6 +800,10 @@ int main(int argc,char *argv[])
if (pointer_size == 4) error( "Cannot build 32-bit code for this CPU\n" ); if (pointer_size == 4) error( "Cannot build 32-bit code for this CPU\n" );
pointer_size = 8; pointer_size = 8;
break; break;
case CPU_POWERPC64:
if (pointer_size == 4) error( "Cannot build 32-bit code for this CPU\n" );
pointer_size = 8;
break;
default: default:
if (pointer_size == 8) error( "Cannot build 64-bit code for this CPU\n" ); if (pointer_size == 8) error( "Cannot build 64-bit code for this CPU\n" );
pointer_size = 4; pointer_size = 4;
......
...@@ -76,7 +76,7 @@ extern int char_number; ...@@ -76,7 +76,7 @@ extern int char_number;
enum target_cpu enum target_cpu
{ {
CPU_x86, CPU_x86_64, CPU_POWERPC, CPU_ARM, CPU_ARM64, CPU_LAST = CPU_ARM64 CPU_x86, CPU_x86_64, CPU_POWERPC, CPU_ARM, CPU_ARM64, CPU_POWERPC64, CPU_LAST = CPU_POWERPC64
}; };
extern enum target_cpu target_cpu; extern enum target_cpu target_cpu;
......
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