Closed
Bug 909194
Opened 11 years ago
Closed 10 years ago
(now) Incorrect assumptions about endianness on powerpc
Categories
(NSPR :: NSPR, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
4.10.5
People
(Reporter: tony, Assigned: wtc)
Details
Attachments
(1 file)
801 bytes,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 (Beta/Release) Build ID: 20130807125118 Steps to reproduce: nspr/pr/include/md/_linux.cfg encodes that powerpc is always big endian. There are now little endian systems in existence and will become more prevelant. The attached patch checks the __BYTE_ORDER__ define from the compiler to correctly set IS_LITTLE_ENDIAN and IS_BIG_ENDIAN. This issue also affects NSS (when distributed with embedded NSPR)
Assignee | ||
Comment 1•10 years ago
|
||
Tony: thank you very much for the patch. Your patch is correct. We will most likely test the __LITTLE_ENDIAN__ macro instead, which is more concise and already being used in _darwin.cfg.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P1
Target Milestone: --- → 4.10.5
Assignee | ||
Comment 2•10 years ago
|
||
Fixed by the patch in bug 977685: https://hg.mozilla.org/projects/nspr/rev/518fcfc7b25b Tony, I'm sorry I forgot to recognize your contribution in the commit message for that patch, even though I had reminded someone else to do so in bug 977685 comment 2 :-(
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 3•10 years ago
|
||
(In reply to Wan-Teh Chang from comment #2) > Fixed by the patch in bug 977685: > https://hg.mozilla.org/projects/nspr/rev/518fcfc7b25b Great! > Tony, I'm sorry I forgot to recognize your contribution in the > commit message for that patch, even though I had reminded > someone else to do so in bug 977685 comment 2 :-( No problem, having the issues fixed is more important.
You need to log in
before you can comment on or make changes to this bug.
Description
•