mozilla-xpcom-ppc64le.patch
changeset 703 c4aab80e472f
parent 692 8add0ba12be5
equal deleted inserted replaced
700:52284fd63667 703:c4aab80e472f
     1 # HG changeset patch
     1 # HG changeset patch
     2 # Parent 5f1384375f10a5f0ee7c8288adef9593822e4e68
     2 # Parent c5c0f80f1967fd1921e85b443ee87d097e4baf19
     3 # User Ulrich Weigand <uweigand@de.ibm.com>
     3 # User Ulrich Weigand <uweigand@de.ibm.com>
     4 PPC64 LE support for XPCOM
     4 PPC64 LE support for XPCOM
     5 
     5 
     6 diff --git a/xpcom/reflect/xptcall/src/md/unix/Makefile.in b/xpcom/reflect/xptcall/src/md/unix/Makefile.in
       
     7 --- a/xpcom/reflect/xptcall/src/md/unix/Makefile.in
       
     8 +++ b/xpcom/reflect/xptcall/src/md/unix/Makefile.in
       
     9 @@ -161,17 +161,17 @@ endif
       
    10  ifneq (,$(filter Linuxpowerpc FreeBSDpowerpc,$(OS_ARCH)$(OS_TEST)))
       
    11  ASFILES		:= xptcinvoke_asm_ppc_linux.s xptcstubs_asm_ppc_linux.s
       
    12  AS		:= $(CC) -c -x assembler-with-cpp
       
    13  endif
       
    14  
       
    15  #
       
    16  # Linux/PPC64
       
    17  #
       
    18 -ifneq (,$(filter Linuxpowerpc64 FreeBSDpowerpc64,$(OS_ARCH)$(OS_TEST)))
       
    19 +ifneq (,$(filter Linuxpowerpc64 Linuxpowerpc64le FreeBSDpowerpc64,$(OS_ARCH)$(OS_TEST)))
       
    20  ASFILES                := xptcinvoke_asm_ppc64_linux.s xptcstubs_asm_ppc64_linux.s
       
    21  AS             := $(CC) -c -x assembler-with-cpp
       
    22  endif
       
    23  
       
    24  #
       
    25  # NetBSD/PPC
       
    26  #
       
    27  ifneq (,$(filter NetBSDmacppc NetBSDbebox NetBSDofppc NetBSDprep NetBSDamigappc,$(OS_ARCH)$(OS_TEST)))                           
       
    28 diff --git a/xpcom/reflect/xptcall/src/md/unix/moz.build b/xpcom/reflect/xptcall/src/md/unix/moz.build
     6 diff --git a/xpcom/reflect/xptcall/src/md/unix/moz.build b/xpcom/reflect/xptcall/src/md/unix/moz.build
    29 --- a/xpcom/reflect/xptcall/src/md/unix/moz.build
     7 --- a/xpcom/reflect/xptcall/src/md/unix/moz.build
    30 +++ b/xpcom/reflect/xptcall/src/md/unix/moz.build
     8 +++ b/xpcom/reflect/xptcall/src/md/unix/moz.build
    31 @@ -186,16 +186,23 @@ if CONFIG['OS_TEST'] == 'powerpc':
     9 @@ -228,16 +228,23 @@ if CONFIG['OS_TEST'] == 'powerpc64':
    32  
       
    33  if CONFIG['OS_TEST'] == 'powerpc64':
       
    34      if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD'):
    10      if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD'):
    35            SOURCES += [
    11            SOURCES += [
       
    12                'xptcinvoke_asm_ppc64_linux.s',
    36                'xptcinvoke_ppc64_linux.cpp',
    13                'xptcinvoke_ppc64_linux.cpp',
       
    14                'xptcstubs_asm_ppc64_linux.s',
    37                'xptcstubs_ppc64_linux.cpp',
    15                'xptcstubs_ppc64_linux.cpp',
    38            ]
    16            ]
    39  
    17  
    40 +if CONFIG['OS_TEST'] == 'powerpc64le':
    18 +if CONFIG['OS_TEST'] == 'powerpc64le':
    41 +    if CONFIG['OS_ARCH'] == 'Linux':
    19 +    if CONFIG['OS_ARCH'] == 'Linux':
    45 +          ]
    23 +          ]
    46 +
    24 +
    47  if CONFIG['OS_TEST'] in ('macppc', 'bebox', 'ofppc', 'prep', 'amigappc'):
    25  if CONFIG['OS_TEST'] in ('macppc', 'bebox', 'ofppc', 'prep', 'amigappc'):
    48      if CONFIG['OS_ARCH'] == 'NetBSD':
    26      if CONFIG['OS_ARCH'] == 'NetBSD':
    49          SOURCES += [
    27          SOURCES += [
       
    28              'xptcinvoke_asm_ppc_netbsd.s',
    50              'xptcinvoke_ppc_netbsd.cpp',
    29              'xptcinvoke_ppc_netbsd.cpp',
       
    30              'xptcstubs_asm_ppc_netbsd.s',
    51              'xptcstubs_ppc_netbsd.cpp',
    31              'xptcstubs_ppc_netbsd.cpp',
    52          ]
    32          ]
    53  
       
    54  if CONFIG['OS_ARCH'] == 'OpenBSD' and CONFIG['OS_TEST'] == 'powerpc':
       
    55 diff --git a/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s b/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s
    33 diff --git a/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s b/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s
    56 --- a/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s
    34 --- a/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s
    57 +++ b/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s
    35 +++ b/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc64_linux.s
    58 @@ -12,33 +12,51 @@
    36 @@ -12,33 +12,51 @@
    59  .set f0,0; .set f1,1; .set f2,2; .set f3,3; .set f4,4
    37  .set f0,0; .set f1,1; .set f2,2; .set f3,3; .set f4,4