-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Default to STACK_OVERFLOW_CHECK=2 in debug builds #18040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| env.__handle_stack_overflow | ||
| env.emscripten_memcpy_big | ||
| wasi_snapshot_preview1.fd_write |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 26257 | ||
| 26543 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| __handle_stack_overflow | ||
| emscripten_memcpy_big | ||
| fd_write |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 12071 | ||
| 12507 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| __errno_location | ||
| __indirect_function_table | ||
| __set_stack_limits | ||
| __wasm_call_ctors | ||
| add | ||
| emscripten_stack_get_base | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
|
|
||
| env.__handle_stack_overflow |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 22976 | ||
| 23254 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
|
|
||
| __handle_stack_overflow |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 865 | ||
| 988 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 66353 | ||
| 66952 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 12104 | ||
| 12540 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 65219 | ||
| 65818 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 12104 | ||
| 12540 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10612,8 +10612,9 @@ def ok(args, filename='hello_world.cpp', expected='hello, world!'): | |
| self.run_process([EMCC, test_file(filename)] + args) | ||
| self.assertContained(expected, self.run_js('a.out.js')) | ||
|
|
||
| # -O0 with BigInt support (to avoid the need for legalization) | ||
| required_flags = ['-sWASM_BIGINT'] | ||
| # -O0 with BigInt support (to avoid the need for legalization) and STACK_OVERFLOW_CHECK=1 (to | ||
| # avoid the need for the stack check pass). | ||
| required_flags = ['-sWASM_BIGINT', '-sSTACK_OVERFLOW_CHECK=1'] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, this means the default build will still do wasm changes after link even after we default to wasm-bigint. Maybe it makes sense though. Please add to this test. We want to emit a good error message in this case, that is, |
||
| ok(required_flags) | ||
| # Same with DWARF | ||
| ok(required_flags + ['-g']) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these just to add more test coverage? Or is it necessary for some reason? Please add a comment.