From 5b71cc29bd095327de2ac4f4ddba079dc429f920 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 18 Jul 2025 14:16:25 +0800 Subject: [PATCH] docs(cplusplus): remove the limitation on IRAM_ATTR for templates The issue has been fixed since GCC 14. Related to https://github.com/espressif/esp-idf/issues/4542 --- docs/en/api-guides/cplusplus.rst | 1 - docs/zh_CN/api-guides/cplusplus.rst | 1 - 2 files changed, 2 deletions(-) diff --git a/docs/en/api-guides/cplusplus.rst b/docs/en/api-guides/cplusplus.rst index 6c94e0697c..d5c5881734 100644 --- a/docs/en/api-guides/cplusplus.rst +++ b/docs/en/api-guides/cplusplus.rst @@ -200,7 +200,6 @@ Limitations ----------- - Linker script generator does not support function level placements for functions with C++ linkage. -- Various section attributes (such as ``IRAM_ATTR``) are ignored when used with template functions. - Vtables are placed into Flash and are not accessible when the flash cache is disabled. Therefore, virtual function calls should be avoided in :ref:`iram-safe-interrupt-handlers`. Placement of Vtables cannot be adjusted using the linker script generator, yet. diff --git a/docs/zh_CN/api-guides/cplusplus.rst b/docs/zh_CN/api-guides/cplusplus.rst index 9de18fb674..a6d1082719 100644 --- a/docs/zh_CN/api-guides/cplusplus.rst +++ b/docs/zh_CN/api-guides/cplusplus.rst @@ -200,7 +200,6 @@ ESP-IDF 支持 ``iostream`` 功能,但应注意: ----------- - 链接脚本生成器不支持将具有 C++ 链接的函数单独放置在内存的特定位置。 -- 当与模板函数一起使用时,会忽略各种节属性(例如 ``IRAM_ATTR``)。 - vtable 位于 flash 中,在禁用 flash 缓存时无法访问。因此,在 :ref:`iram-safe-interrupt-handlers` 中应避免调用虚拟函数。目前尚无法使用链接器脚本生成器调整 vtable 的放置位置。