瀏覽代碼

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
   pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
203
   pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
204
   pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
204
   pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
205
   post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py
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
 lib_deps           =
207
 lib_deps           =
208
 
208
 
209
 #
209
 #

Loading…
取消
儲存