Closed
Bug 597832
Opened 15 years ago
Closed 15 years ago
Compile nsUTF8ToUnicode.cpp with SSE2 options for Solaris Studio compiler
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla2.0b8
People
(Reporter: ginnchen+exoracle, Assigned: ginnchen+exoracle)
Details
Attachments
(1 file)
630 bytes,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
Solaris Studio compiler requires -xarch=sse2 and optimize option to compile SSE2 intrinsics.
Assignee: nobody → ginn.chen
Status: NEW → ASSIGNED
Attachment #476624 -
Flags: review?(ted.mielczarek)
Comment 2•15 years ago
|
||
Comment on attachment 476624 [details] [diff] [review]
patch
Is there any reason you can't just set this flag globally, or at least for everything in this Makefile?
For Solaris Studio, there're some limitations.
Using -xarch=sse2 will optimize mmx, sse intrinsics to sse2 assembly. It will break the cpuid test somewhere.
Also it may generate sse2 assembly randomly, e.g. for builtin memcpy in constructors.
Ideally, we should only use this option for specific functions.
Then we have to spilt nsUTF8ToUnicode.cpp into 2 files.
So far, I didn't see Solaris Studio generates SIMD assembly outside Convert_ascii_run() for this file.
So I think using this option for only this file is an acceptable option.
Comment 4•15 years ago
|
||
There's no way to do this via pragma, is there? I just hate adding extra platform-specific crap to Makefiles like this.
(In reply to comment #4)
> There's no way to do this via pragma, is there? I just hate adding extra
> platform-specific crap to Makefiles like this.
No, there's no pragma to do it for Solaris Studio.
I hate it, too.
Updated•15 years ago
|
Attachment #476624 -
Flags: review?(ted.mielczarek) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•