[patch] add support for lcc compiler (<=1.23)
Categories
(NSS :: Build, enhancement, P1)
Tracking
(Not tracked)
People
(Reporter: shigorin, Assigned: shigorin)
Details
Attachments
(1 file, 1 obsolete file)
|
1.13 KB,
patch
|
jcj
:
review+
|
Details | Diff | Splinter Review |
NSS currently fails to build with lcc 1.23.12 compiler on 64-bit Elbrus 2000 architecture due to its lack of __int128; not only 3.44 version I've patched but the current hg I've checked the patch to apply against either.
Please find the patch attached.
PS: I hope to revisit this as soon as I can get my hands on lcc 1.24 where __int128 is suppored (not sure when this happens though).
| Assignee | ||
Comment 1•7 years ago
|
||
Test suite seems to pass for me:
Tests summary:
--------------
Passed: 13297
Failed: 0
Failed with core: 0
ASan failures: 0
Unknown status: 48
TinderboxPrint:Unknown: 48
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 2•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
No problem, thanks for reviewing :-)
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
MSVC compiler hangs with cl.exe -? >/dev/null - it waits for user input... apparently redirection of stdout to /dev/null breaks some check there, since redirecting to a dummy file works OK.
| Assignee | ||
Comment 7•7 years ago
|
||
Mike, that might be worth another ifdef -- and check for CC_NAME in nss/coreconf/Werror.mk as that's where I borrowed the test from (the variable doesn't appear to be defined where I had to inline the test).
Comment 8•7 years ago
|
||
Well - simply adding stdin to /dev/null also works - so I'd just made something like
ifneq ($(shell $(CC) -? 2>&1 >/dev/null </dev/null | sed -e 's/:.*//;1q'),lcc)
| Assignee | ||
Comment 9•7 years ago
|
||
Go ahead and post a patch for both occasions as a new bug referencing this one :-)
| Assignee | ||
Comment 10•6 years ago
|
||
Forgot it: 3.45.0 built on e2k just fine, thank you JC!
Description
•