Closed Bug 1163346 Opened 10 years ago Closed 10 years ago

Add NSPR support for FreeBSD mips/mips64

Categories

(NSPR :: NSPR, defect, P2)

Other
FreeBSD
defect

Tracking

(Not tracked)

RESOLVED FIXED
4.10.9

People

(Reporter: jbeich, Assigned: jbeich)

References

Details

(Whiteboard: [npotb])

Attachments

(2 files)

See Also downstream bug for details.
Attached patch v1Splinter Review
Attachment #8603764 - Flags: review?(wtc)
Whiteboard: [npotb]
Comment on attachment 8603764 [details] [diff] [review] v1 Review of attachment 8603764 [details] [diff] [review]: ----------------------------------------------------------------- r=wtc. Thanks for the patch. I have a question about the endianness. Patch checked in: https://hg.mozilla.org/projects/nspr/rev/955bfb84eb9d ::: pr/include/md/_freebsd.cfg @@ +394,5 @@ > > +#elif defined(__mips__) > + > +#undef IS_LITTLE_ENDIAN > +#define IS_BIG_ENDIAN 1 These days MIPS is often configured in little-endian mode to make it easier to port code that doesn't handle byte order correctly. We should test some compiler predefined macro to determine the endianness. If we hardcode the endianness, we probably should use little endian for MIPS today. Could you please look into this? Thanks.
Attachment #8603764 - Flags: review?(wtc)
Attachment #8603764 - Flags: review+
Attachment #8603764 - Flags: checked-in+
Assignee: wtc → jbeich
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → 4.10.9
Attached patch followupSplinter Review
Another issue was __mips__ being defined for both mips and mips64. (In reply to Wan-Teh Chang from comment #2) > We should test some compiler predefined macro to determine the endianness. Clang uses _MIPSEL and _MIPSEB which may break on _linux.cfg as well. > If we hardcode the endianness, we probably should use little endian for MIPS today. Maintenance-wise spliting out arch-specific constants into OS-agnostic .cfg file would make more sense.
Attachment #8604249 - Flags: review?(wtc)
Comment on attachment 8604249 [details] [diff] [review] followup r=wtc. It is unfortunate that clang and gcc don't use the same macros for endianness detection. Patch checked in: https://hg.mozilla.org/projects/nspr/rev/2f45c6fd036e
Attachment #8604249 - Flags: review?(wtc)
Attachment #8604249 - Flags: review+
Attachment #8604249 - Flags: checked-in+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: