Closed Bug 1690510 Opened 4 years ago Closed 4 years ago

Perma opt js/src/wasm/WasmBuiltins.cpp:456:18: error: unused variable 'activation' [-Werror,-Wunused-variable] when Gecko 87 merges to Beta on 2021-02-22

Categories

(Core :: JavaScript: WebAssembly, defect, P1)

defect

Tracking

()

VERIFIED FIXED
87 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox85 --- unaffected
firefox86 --- unaffected
firefox87 --- verified

People

(Reporter: aryx, Assigned: asumu)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

/builds/worker/checkouts/gecko/js/src/wasm/WasmBuiltins.cpp:456:18: error: unused variable 'activation' [-Werror,-Wunused-variable]

https://hg.mozilla.org/mozilla-central/rev/0d79003d2bab8f54911d8bf7780307ab0d466895#l9.96 defined the variable outside the assert and non-debug opt builds optimize the assert statement away.

Please provide a patch which also lets opt beta and release builds succeed.

Flags: needinfo?(asumu)

Presumably just a missing DebugOnly<>

Assignee: nobody → asumu
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P1

Whoops, sorry for the failure. Looks like the only non-debug use of the variable is #ifdefed with the exception handling build flag. I think I can just move the definition into the #ifdef and change the assert to use CallingActivation() directly as it did before. Will submit a patch to fix later today.

Flags: needinfo?(asumu)

This patch fixes release/beta builds where the compile flag
for Wasm exceptions are turned off.

Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/e8d905cabbdb fix unused definition when wasm exceptions are off r=rhunt
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: