Closed Bug 513208 Opened 15 years ago Closed 15 years ago

Tracemonkey build failed on solairs at jsnum.h.

Categories

(Core :: JavaScript Engine, defect)

x86
Solaris
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: leon.sha, Assigned: leon.sha)

Details

Attachments

(1 file)

This bug happened after the fix for bug 513063 commited.
"jsnum.h", line 98: Error: The function "finite" must have a prototype.
"jsnum.h", line 109: Error: The function "isinf" must have a prototype.
"jsnum.h", line 119: Error: The function "signbit" must have a prototype.
"jsnum.h", line 141: Error: The function "signbit" must have a prototype.
Attached patch patchSplinter Review
Attachment #397237 - Flags: review?(gal)
Attachment #397237 - Attachment is patch: true
Attachment #397237 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 397237 [details] [diff] [review]
patch

Thanks Leon!
Attachment #397237 - Flags: review?(gal) → review+
Comment on attachment 397237 [details] [diff] [review]
patch

>diff --git a/js/src/jsnum.h b/js/src/jsnum.h

> static inline int
> JSDOUBLE_IS_NEGZERO(jsdouble d)
> {
> #ifdef WIN32
>     return (d == 0 && (_fpclass(d) & _FPCLASS_NZ));
>+#elif defined(SOLARIS)
>+    return (d == 0 && copysign (1, d) < 0);
> #else
>     return (d == 0 && signbit(d));
> #endif
> }

There shouldn't be a space after copysign...

> static inline int
> JSDOUBLE_IS_NEG(jsdouble d)
> {
> #ifdef WIN32
>     return JSDOUBLE_IS_NEGZERO(d) || d < 0;
>+#elif defined(SOLARIS)
>+    return copysign (1, d) < 0;
> #else
>     return signbit(d);
> #endif
> }

...nor here either.
http://hg.mozilla.org/tracemonkey/rev/ec373946e8bf
Assignee: general → leon.sha
Status: NEW → RESOLVED
Closed: 15 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: