Skip to content

Commit 7d30107

Browse files
authored
ARMC6: To get the right stack trace, use -O0
Verified that `-O1` does not make stack trace while `-O0` does.
1 parent 2fc546a commit 7d30107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/profiles/debug.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"-Wl,-n"]
1717
},
1818
"ARMC6": {
19-
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-g", "-O1",
19+
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-g", "-O0",
2020
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
2121
"-Wno-reserved-user-defined-literal", "-Wno-deprecated-register",
2222
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",

0 commit comments

Comments
 (0)