浏览代码

Avoid invalid memory optimizations (#20389)

When building for AVR, merge-all-constants can incorrectly combine constants stored in flash with constants stored in RAM. These have different access requirements, leading to undefined behavior during execution.
Co-authored-by: ellensp <ellensp@hotmail.com>
Victor Oliveira 4 年前
父节点
当前提交
1a04c8c7bb
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      platformio.ini

+ 1
- 1
platformio.ini 查看文件

@@ -203,7 +203,7 @@ extra_scripts      =
203 203
   pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
204 204
   pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
205 205
   post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py
206
-build_flags        = -fmax-errors=5 -g -D__MARLIN_FIRMWARE__ -fmerge-all-constants
206
+build_flags        = -fmax-errors=5 -g -D__MARLIN_FIRMWARE__ -fmerge-constants
207 207
 lib_deps           =
208 208
 
209 209
 #

正在加载...
取消
保存