Closed
Bug 483259
Opened 16 years ago
Closed 16 years ago
Tamarin sources will not compile when building for Android
Categories
(Tamarin Graveyard :: Build Config, enhancement)
Tracking
(Not tracked)
VERIFIED
FIXED
flash10
People
(Reporter: palewis, Assigned: stejohns)
References
Details
Attachments
(1 file)
2.42 KB,
patch
|
stejohns
:
review+
|
Details | Diff | Splinter Review |
Tamarin sources will not compile when building for Android. However, the attached Mercurial diffs against Tamarin-Central provide the modifications necessary to allow Tamarin sources to build on Android.
Assignee | ||
Comment 1•16 years ago
|
||
Comment on attachment 367256 [details] [diff] [review]
Patch for allowing Tamarin sources to compile for Android
Assigning Rishit to review -- might be nice to add a VMPI definition for the "aligned" stuff.
Attachment #367256 -
Flags: review?(rishah)
Comment 2•16 years ago
|
||
Converting this to VMPI is slightly tricky here.
The syntax currently in use seems to follow Microsoft compiler syntax.
GCC for x86 and PPC supports #pragma pack(push, n) for compatibility with Microsoft compiler.
Realview compilers support #pragma pack(n) and also the __attribute__((aligned(n))) for compatibility with GCC.
GCC for this platform seems to not support the microsoft compiler extension.
Given the variation in declaration syntax I feel its not worth adding VMPI directives. Instead we could choose Microsoft vs GCC (given that RVCT supports GNU extension in this case).
Steven, I don't have review privileges so you'll have to change the status.
Comment 3•16 years ago
|
||
On the patch itself I have one comment.
In LIR.h, instead of #ifdef'ing it with the platform name, would it be better to use some compiler feature related flag like COMPILER_SUPPORTS_PRAGMA_PACK or simply a compiler specific flag?
Comment 4•16 years ago
|
||
Edwin, why does LIR.h use #pragma pack at all?
Comment 5•16 years ago
|
||
Those are overlay structs which were added to eliminate some once-buggy pointer math. it might be possible to go back to something more portable and not-buggy. investigating, will post back here.
Comment 6•16 years ago
|
||
It was added since structure padding was occurring on 64b targets for the LirImm32Ins. We need a portable way of laying out these fields, relying on the pragmas is ugly and so it ptr math and casting, but the latter might reduce churn.
Assignee | ||
Comment 7•16 years ago
|
||
Comment on attachment 367256 [details] [diff] [review]
Patch for allowing Tamarin sources to compile for Android
pushed to redux as changeset: 1629:e22e8624256f
Attachment #367256 -
Flags: review?(rishah) → review+
Assignee | ||
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 8•15 years ago
|
||
Resolved fixed engineering / work item that has been pushed. Setting status to verified.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•