Closed Bug 1666867 Opened 4 years ago Closed 4 years ago

Switch default spidermonkey compiler from gcc to clang

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: sfink, Assigned: sfink)

Details

Attachments

(2 files)

One issue: /builds/worker/checkouts/gecko/js/src/jit/arm64/vixl/Logic-vixl.cpp:3607:16: error: implicit conversion from 'const int64_t' (aka 'const long') to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-const-int-float-conversion]

I don't know what the intended behavior is. So I'll punt it to someone.

Flags: needinfo?(lhansen)

Thus quoth sstangl: "that code is intended to saturate the integer value to the maximum if it's not representable directly. The value as-is doesn't exist in f64 range, but it compares therefore against the lowest value that does. So that's correct as-is and saturates appropriately."

Also: "You could add a new constant that's the lowest f64 above or equal to i64_max"

I was a little confused, because I made a sample program and could not reproduce the warning. It looks like it's a difference between clang 9 and clang 11 (we must've upgraded recently? I know I've run mach bootstrap pretty recently, yet still had clang 9).

I'll upload a patch to fix it as soon as I verify it locally.

Yes, I've seen that warning too.

Flags: needinfo?(lhansen)
Attachment #9177510 - Attachment description: Bug 1666867 - Compare to a representable int → Bug 1666867 - Fix warning with imprecise integer conversion to double on clang 11.
Severity: -- → N/A
Pushed by sfink@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0bd465435b9f
Fix warning with imprecise integer conversion to double on clang 11. r=lth
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
Pushed by sfink@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/de9d50aea943
Switch default spidermonkey compiler from gcc to clang r=jandem
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: