diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:11 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:57 +0100 |
commit | d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch) | |
tree | f36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta-extras/packages/mozilla/files/eabi-fix2.patch | |
parent | caab7fc509bf27706ff3248689f6afd04225cfda (diff) | |
download | poky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz |
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta-extras/packages/mozilla/files/eabi-fix2.patch')
-rw-r--r-- | meta-extras/packages/mozilla/files/eabi-fix2.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta-extras/packages/mozilla/files/eabi-fix2.patch b/meta-extras/packages/mozilla/files/eabi-fix2.patch new file mode 100644 index 0000000000..5f64e7f796 --- /dev/null +++ b/meta-extras/packages/mozilla/files/eabi-fix2.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | https://bugzilla.mozilla.org/show_bug.cgi?id=369722 | ||
2 | |||
3 | Index: js/src/jsnum.h | ||
4 | =================================================================== | ||
5 | RCS file: /cvsroot/mozilla/js/src/jsnum.h,v | ||
6 | retrieving revision 3.27 | ||
7 | diff -p -u -8 -r3.27 jsnum.h | ||
8 | --- mozilla/js/src/jsnum.h 21 Dec 2006 01:00:32 -0000 3.27 | ||
9 | +++ mozilla/js/src/jsnum.h 8 Feb 2007 12:13:01 -0000 | ||
10 | @@ -52,23 +52,24 @@ JS_BEGIN_EXTERN_C | ||
11 | |||
12 | /* | ||
13 | * Stefan Hanske <sh990154@mail.uni-greifswald.de> reports: | ||
14 | * ARM is a little endian architecture but 64 bit double words are stored | ||
15 | * differently: the 32 bit words are in little endian byte order, the two words | ||
16 | * are stored in big endian`s way. | ||
17 | */ | ||
18 | |||
19 | -#if defined(__arm) || defined(__arm32__) || defined(__arm26__) || defined(__arm__) | ||
20 | -#define CPU_IS_ARM | ||
21 | +#if !defined(__ARM_EABI__) && \ | ||
22 | + (defined(__arm) || defined(__arm32__) || defined(__arm26__) || defined(__arm__)) | ||
23 | +#define IEEE_ARM | ||
24 | #endif | ||
25 | |||
26 | typedef union jsdpun { | ||
27 | struct { | ||
28 | -#if defined(IS_LITTLE_ENDIAN) && !defined(CPU_IS_ARM) | ||
29 | +#if defined(IS_LITTLE_ENDIAN) && !defined(IEEE_ARM) | ||
30 | uint32 lo, hi; | ||
31 | #else | ||
32 | uint32 hi, lo; | ||
33 | #endif | ||
34 | } s; | ||
35 | jsdouble d; | ||
36 | } jsdpun; | ||
37 | |||
38 | @@ -87,17 +88,17 @@ typedef union jsdpun { | ||
39 | |||
40 | #else /* not or old GNUC */ | ||
41 | |||
42 | /* | ||
43 | * We don't know of any non-gcc compilers that perform alias optimization, | ||
44 | * so this code should work. | ||
45 | */ | ||
46 | |||
47 | -#if defined(IS_LITTLE_ENDIAN) && !defined(CPU_IS_ARM) | ||
48 | +#if defined(IS_LITTLE_ENDIAN) && !defined(IEEE_ARM) | ||
49 | #define JSDOUBLE_HI32(x) (((uint32 *)&(x))[1]) | ||
50 | #define JSDOUBLE_LO32(x) (((uint32 *)&(x))[0]) | ||
51 | #else | ||
52 | #define JSDOUBLE_HI32(x) (((uint32 *)&(x))[0]) | ||
53 | #define JSDOUBLE_LO32(x) (((uint32 *)&(x))[1]) | ||
54 | #endif | ||
55 | |||
56 | #define JSDOUBLE_SET_HI32(x, y) (JSDOUBLE_HI32(x)=(y)) | ||