Closed
Bug 784309
Opened 12 years ago
Closed 12 years ago
CheckedInt.h Intel C++ compilation issue
Categories
(Core :: MFBT, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: alexboy94, Assigned: bjacob)
Details
(Keywords: 64bit)
Attachments
(2 files, 1 obsolete file)
2.82 MB,
text/plain
|
Details | |
1.60 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:14.0) Gecko/20120819 Firefox/14.0.1
Build ID: 20120819213618
Steps to reproduce:
Compiled Firefox 15 with Intel's C++ Compiler.
Actual results:
Compilation got stuck at dom_quickstubs.cpp, with CheckedInt.h producing errors such as typename is not allowed.
Screenshot attached.
Expected results:
Compilation should have proceeded as normal. Attempted to have dom_quickstubs.cpp compiled by cl and the rest by icl but to no avail.
Reporter | ||
Comment 1•12 years ago
|
||
I'm thinking this could be a bug with the compiler, but Firefox 14.0.1 compiled without issue. Where any changes made to SpiderMonkey?
Reporter | ||
Updated•12 years ago
|
Hardware: x86 → x86_64
Updated•12 years ago
|
Component: Untriaged → Build Config
Component: Build Config → XPCOM
Product: Firefox → Core
Assignee | ||
Comment 2•12 years ago
|
||
There definitely were changes in CheckedInt around this timeframe. This code compiles without warnings in GCC, Clang and MSVC. I don't understand the warning shown in your screenshot.
Reporter | ||
Comment 3•12 years ago
|
||
Attachment #653725 -
Attachment is obsolete: true
Reporter | ||
Comment 4•12 years ago
|
||
(In reply to Alex Kontos from comment #3)
> Created attachment 653874 [details]
> Compilation Log
I've attached the compilation log and used make. (As opposed to pymake in the screenshot).
Assignee | ||
Comment 5•12 years ago
|
||
Can you please try this patch? This seems to be a compiler bug, but a fair one as I am using the same identifier to mean two different things.
Reporter | ||
Comment 6•12 years ago
|
||
(In reply to Benoit Jacob [:bjacob] from comment #5)
> Created attachment 653882 [details] [diff] [review]
> Rename IsSigned template paramter to IsTSigned to avoid conflict with struct
> name
>
> Can you please try this patch? This seems to be a compiler bug, but a fair
> one as I am using the same identifier to mean two different things.
The patch works. I'll report the bug to Intel.
Reporter | ||
Updated•12 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Comment 7•12 years ago
|
||
WORKSFORME isn't what you wanted here ;-)
We'll land that patch then. Thanks for reporting to Intel.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: WORKSFORME → ---
Assignee | ||
Comment 8•12 years ago
|
||
Comment on attachment 653882 [details] [diff] [review]
Rename IsSigned template paramter to IsTSigned to avoid conflict with struct name
This patch is trivial enough and even improves the code as it was not great to use IsSigned for two different things.
Attachment #653882 -
Flags: review?(Ms2ger)
Updated•12 years ago
|
Assignee: nobody → bjacob
Status: REOPENED → ASSIGNED
Component: XPCOM → MFBT
Comment 9•12 years ago
|
||
Comment on attachment 653882 [details] [diff] [review]
Rename IsSigned template paramter to IsTSigned to avoid conflict with struct name
Review of attachment 653882 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
Attachment #653882 -
Flags: review?(Ms2ger) → review+
Comment 10•12 years ago
|
||
Any reason this hasn't landed?
Assignee | ||
Comment 11•12 years ago
|
||
I tend to forget to land patches. sorry about that.
Assignee | ||
Comment 12•12 years ago
|
||
Target Milestone: --- → mozilla19
Comment 13•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago → 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•