mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
feat(tools): update toolchain version to esp-14.2.0_20240903
Closes https://github.com/espressif/esp-idf/issues/13979 Closes https://github.com/espressif/esp-idf/issues/14273 Closes https://github.com/espressif/esp-idf/issues/14267
This commit is contained in:
parent
1d8f1a584c
commit
47212eaa3a
30
docs/en/migration-guides/release-5.x/5.4/gcc.rst
Normal file
30
docs/en/migration-guides/release-5.x/5.4/gcc.rst
Normal file
@ -0,0 +1,30 @@
|
||||
GCC
|
||||
***
|
||||
|
||||
:link_to_translation:`zh_CN:[中文]`
|
||||
|
||||
|
||||
GCC Version
|
||||
===========
|
||||
|
||||
The previous GCC version was GCC 13.2.0. This has now been upgraded to GCC 14.2.0 on all targets. Users that need to port their code from GCC 13.2.0 to 14.2.0 should refer to the series of official GCC porting guides listed below:
|
||||
|
||||
* `Porting to GCC 14 <https://gcc.gnu.org/gcc-14/porting_to.html>`_
|
||||
|
||||
|
||||
Warnings
|
||||
========
|
||||
|
||||
The upgrade to GCC 14.2.0 has resulted in the addition of new warnings, or enhancements to existing warnings. The full details of all GCC warnings can be found in `GCC Warning Options <https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html>`_. Users are advised to double-check their code, then fix the warnings if possible. Unfortunately, depending on the warning and the complexity of the user's code, some warnings will be false positives that require non-trivial fixes. In such cases, users can choose to suppress the warning in multiple ways. This section outlines some common warnings that users are likely to encounter and ways to fix them.
|
||||
|
||||
To suprress all new warnings enable ``CONFIG_COMPILER_DISABLE_GCC14_WARNINGS`` config option.
|
||||
|
||||
``-Wno-calloc-transposed-args``
|
||||
-------------------------------
|
||||
|
||||
This is a coding style warning. The first argument to calloc() is documented to be number of elements in array, while the second argument is size of each element.
|
||||
|
||||
.. code-block:: c
|
||||
|
||||
calloc (sizeof (int), n); // warning
|
||||
calloc (n, sizeof (int)); // ok
|
@ -6,4 +6,5 @@ Migration from 5.3 to 5.4
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
gcc
|
||||
system
|
||||
|
30
docs/zh_CN/migration-guides/release-5.x/5.4/gcc.rst
Normal file
30
docs/zh_CN/migration-guides/release-5.x/5.4/gcc.rst
Normal file
@ -0,0 +1,30 @@
|
||||
GCC
|
||||
***
|
||||
|
||||
:link_to_translation:`en:[English]`
|
||||
|
||||
|
||||
GCC 版本
|
||||
========
|
||||
|
||||
ESP-IDF 之前使用的 GCC 版本为 13.2.0,现已针对所有芯片目标升级至 GCC 14.2.0。若需要将代码从 GCC 13.2.0 迁移到 GCC 14.2.0,请参考以下 GCC 官方迁移指南。
|
||||
|
||||
* `迁移至 GCC 14 <https://gcc.gnu.org/gcc-14/porting_to.html>`_
|
||||
|
||||
|
||||
警告
|
||||
====
|
||||
|
||||
升级至 GCC 14.2.0 后会触发新警告,或是导致原有警告内容发生变化。了解所有 GCC 警告的详细内容,请参考 `GCC 警告选项 <https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html>`_。建议用户仔细检查代码,并尽量解决这些警告。但由于某些警告的特殊性及用户代码的复杂性,有些警告可能为误报,需要进行关键修复。在这种情况下,用户可以采取多种方式来抑制警告。本节介绍了用户可能遇到的常见警告及如何修复这些警告。
|
||||
|
||||
要抑制所有新的警告,请启用 CONFIG_COMPILER_DISABLE_GCC14_WARNINGS 配置选项。
|
||||
|
||||
``-Wno-calloc-transposed-args``
|
||||
-------------------------------
|
||||
|
||||
这是一个编码风格警告。根据文档说明,calloc() 的第一个参数应为数组元素的数量,第二个参数为每个元素的大小。
|
||||
|
||||
.. code-block:: c
|
||||
|
||||
calloc (sizeof (int), n); // 警告
|
||||
calloc (n, sizeof (int)); // 好的
|
@ -6,4 +6,5 @@
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
gcc
|
||||
system
|
||||
|
@ -312,8 +312,8 @@ void test_coredump_summary(void)
|
||||
|
||||
void test_tcb_corrupted(void)
|
||||
{
|
||||
uint32_t *tcb_ptr = (uint32_t *)xTaskGetIdleTaskHandleForCore(0);
|
||||
for (size_t i = 0; i < sizeof(StaticTask_t) / sizeof(uint32_t); ++i) {
|
||||
uint32_t volatile *tcb_ptr = (uint32_t *)xTaskGetIdleTaskHandleForCore(0);
|
||||
for (size_t i = 0; i < sizeof(StaticTask_t) / sizeof(uint32_t); i++) {
|
||||
tcb_ptr[i] = 0xDEADBEE0;
|
||||
}
|
||||
vTaskDelay(2);
|
||||
|
112
tools/tools.json
112
tools/tools.json
@ -180,51 +180,51 @@
|
||||
"versions": [
|
||||
{
|
||||
"linux-amd64": {
|
||||
"sha256": "fcef03d87eac44c0dbee2bbee98443ed2fcf82720dcd8ebfe00640807b0f07c2",
|
||||
"size": 112073272,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/xtensa-esp-elf-13.2.0_20240530-x86_64-linux-gnu.tar.xz"
|
||||
"sha256": "e7c01501d5e32d317c3fadb9d97d1988b586c6e051c6d75a3bbcef3357ce1a51",
|
||||
"size": 169472448,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/xtensa-esp-elf-14.2.0_20240906-x86_64-linux-gnu.tar.xz"
|
||||
},
|
||||
"linux-arm64": {
|
||||
"sha256": "cfe55b92b4baeaa4309a948ba65e2adfc2d17a542c64856e36650869b419574a",
|
||||
"size": 102954792,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/xtensa-esp-elf-13.2.0_20240530-aarch64-linux-gnu.tar.xz"
|
||||
"sha256": "13d593a288a94c7e29b5ac4cf872608dfb4c61a0378265f355134fc5e69d38cc",
|
||||
"size": 176939860,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/xtensa-esp-elf-14.2.0_20240906-aarch64-linux-gnu.tar.xz"
|
||||
},
|
||||
"linux-armel": {
|
||||
"sha256": "c57a062969ec3d98b02a97cd9240eb31091957788509b60c356b0a6f23032669",
|
||||
"size": 104791600,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/xtensa-esp-elf-13.2.0_20240530-arm-linux-gnueabi.tar.xz"
|
||||
"sha256": "917c8339811ff1c7cb8911fa7d79618bebe58ece58da514f1b42d30c78f87b66",
|
||||
"size": 174825600,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/xtensa-esp-elf-14.2.0_20240906-arm-linux-gnueabi.tar.xz"
|
||||
},
|
||||
"linux-armhf": {
|
||||
"sha256": "1adc660f4d7bcf863f54051c5843719456fabc7203c1d4ccbb855924fda82987",
|
||||
"size": 101896352,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/xtensa-esp-elf-13.2.0_20240530-arm-linux-gnueabihf.tar.xz"
|
||||
"sha256": "5034c79a8bcf7acac1a44dec7cf6ff379b96a11dd597c09089b5f7acbd7a3d40",
|
||||
"size": 168455332,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/xtensa-esp-elf-14.2.0_20240906-arm-linux-gnueabihf.tar.xz"
|
||||
},
|
||||
"linux-i686": {
|
||||
"sha256": "f9203673aa0c42b041847c86b07e6f5b4aa9c90e6ff03d3cd3146928784447ea",
|
||||
"size": 112724172,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/xtensa-esp-elf-13.2.0_20240530-i586-linux-gnu.tar.xz"
|
||||
"sha256": "36c7234ab2712d34df8d36ad7b119ff6c6807068f7d2d9c8b2b3261f1dd54aa1",
|
||||
"size": 179380376,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/xtensa-esp-elf-14.2.0_20240906-i586-linux-gnu.tar.xz"
|
||||
},
|
||||
"macos": {
|
||||
"sha256": "39ee7df749f4ceb93624d73627688d5b86269a7429022f986f2940499936aacd",
|
||||
"size": 114904912,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/xtensa-esp-elf-13.2.0_20240530-x86_64-apple-darwin.tar.xz"
|
||||
"sha256": "499dc8492046c878b5173fcefafb90fad06e4294613e0b934ca57767e552e285",
|
||||
"size": 182793460,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/xtensa-esp-elf-14.2.0_20240906-x86_64-apple-darwin.tar.xz"
|
||||
},
|
||||
"macos-arm64": {
|
||||
"sha256": "d967e49a64f823e18fbae273efb1b094ac55e2207aa21fd3947c9d59f999f47e",
|
||||
"size": 100018744,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/xtensa-esp-elf-13.2.0_20240530-aarch64-apple-darwin.tar.xz"
|
||||
"sha256": "0450fc0c91688960a41b3a213e5b6ed387bc81af53d7428f074fb0a560b53070",
|
||||
"size": 167977516,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/xtensa-esp-elf-14.2.0_20240906-aarch64-apple-darwin.tar.xz"
|
||||
},
|
||||
"name": "esp-13.2.0_20240530",
|
||||
"name": "esp-14.2.0_20240906",
|
||||
"status": "recommended",
|
||||
"win32": {
|
||||
"sha256": "d6b227c50e3c8e21d62502b3140e5ab74a4cb502c2b4169c36238b9858a8fb88",
|
||||
"size": 266042967,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/xtensa-esp-elf-13.2.0_20240530-i686-w64-mingw32_hotfix.zip"
|
||||
"sha256": "231de9e8a02df3bcc4be5d1db925f255ff30155706a48f8f1581f9b017a91e31",
|
||||
"size": 382459137,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/xtensa-esp-elf-14.2.0_20240906-i686-w64-mingw32.zip"
|
||||
},
|
||||
"win64": {
|
||||
"sha256": "155ee97b531236e6a7c763395c68ca793e55e74d2cb4d38a23057a153e01e7d0",
|
||||
"size": 269831985,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/xtensa-esp-elf-13.2.0_20240530-x86_64-w64-mingw32_hotfix.zip"
|
||||
"sha256": "5691206046de955bd503f320afadc40105bdb457bb7898ca1230365ac7084a00",
|
||||
"size": 386315382,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/xtensa-esp-elf-14.2.0_20240906-x86_64-w64-mingw32.zip"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -327,51 +327,51 @@
|
||||
"versions": [
|
||||
{
|
||||
"linux-amd64": {
|
||||
"sha256": "f69a491d2f42f63e119f9077da995f7743ea8e1bf6944166a42a312cf60728a8",
|
||||
"size": 145544808,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/riscv32-esp-elf-13.2.0_20240530-x86_64-linux-gnu.tar.xz"
|
||||
"sha256": "c20b1ee91611622364146be5709decb03451af3f39fd1bce0636fc49d6391e3d",
|
||||
"size": 298115680,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/riscv32-esp-elf-14.2.0_20240906-x86_64-linux-gnu.tar.xz"
|
||||
},
|
||||
"linux-arm64": {
|
||||
"sha256": "276351b883a53e81b695d858be74114a8b627bbe4fc9c69ef46a7127ab143680",
|
||||
"size": 145564848,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/riscv32-esp-elf-13.2.0_20240530-aarch64-linux-gnu.tar.xz"
|
||||
"sha256": "dfb8e029c09a5a5dba16fa8d9e5a5008a80b9c843467d863102ec5359f9b77d2",
|
||||
"size": 290828164,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/riscv32-esp-elf-14.2.0_20240906-aarch64-linux-gnu.tar.xz"
|
||||
},
|
||||
"linux-armel": {
|
||||
"sha256": "14890f2a624e70f11da7268347adf25b6c396f42bcd4d8ac3c5bfa4050b7c934",
|
||||
"size": 140376832,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/riscv32-esp-elf-13.2.0_20240530-arm-linux-gnueabi.tar.xz"
|
||||
"sha256": "9079fdcf3b4126b5420a0bf0f5b5bfd164353127c8992a82fdf71e63bbe3295d",
|
||||
"size": 288740796,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/riscv32-esp-elf-14.2.0_20240906-arm-linux-gnueabi.tar.xz"
|
||||
},
|
||||
"linux-armhf": {
|
||||
"sha256": "b61ca9ceff25986ec1d166a01319bff09639be1d4ee5bf117502ce564fdae7e9",
|
||||
"size": 142416372,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/riscv32-esp-elf-13.2.0_20240530-arm-linux-gnueabihf.tar.xz"
|
||||
"sha256": "a09bfd82f321176621499632b0956b988dc8a93de74f2f99c7ae33a07c44762e",
|
||||
"size": 294845076,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/riscv32-esp-elf-14.2.0_20240906-arm-linux-gnueabihf.tar.xz"
|
||||
},
|
||||
"linux-i686": {
|
||||
"sha256": "12ef50f96deb9040ce360974a4237c64ae0706b0c429b90cecc8ab664cf6dbb4",
|
||||
"size": 156221552,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/riscv32-esp-elf-13.2.0_20240530-i586-linux-gnu.tar.xz"
|
||||
"sha256": "1a178e5ac934260cbecbaa3bc6caf838662dc4f3947ed23da5a5fc7f7dc52e7a",
|
||||
"size": 300184408,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/riscv32-esp-elf-14.2.0_20240906-i586-linux-gnu.tar.xz"
|
||||
},
|
||||
"macos": {
|
||||
"sha256": "cfbf5deaba05bf217701c8ceab7396bb0c2ca95ab58e134d4b2e175b86c2fd6c",
|
||||
"size": 152568972,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/riscv32-esp-elf-13.2.0_20240530-x86_64-apple-darwin.tar.xz"
|
||||
"sha256": "40bc1e783e1119aceb59b3f7a1cec633d91f7a89a39ec04d6a3408b31eff17d4",
|
||||
"size": 305185164,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/riscv32-esp-elf-14.2.0_20240906-x86_64-apple-darwin.tar.xz"
|
||||
},
|
||||
"macos-arm64": {
|
||||
"sha256": "230628fcf464ca8856c82c55514e40a8919e97fbc5e66b7165ca42c9653d2302",
|
||||
"size": 136326672,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/riscv32-esp-elf-13.2.0_20240530-aarch64-apple-darwin.tar.xz"
|
||||
"sha256": "cce902f01cb261905f5898d30887b81704a2b9d0f5de0d3806be7bfad55a505d",
|
||||
"size": 285201616,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/riscv32-esp-elf-14.2.0_20240906-aarch64-apple-darwin.tar.xz"
|
||||
},
|
||||
"name": "esp-13.2.0_20240530",
|
||||
"name": "esp-14.2.0_20240906",
|
||||
"status": "recommended",
|
||||
"win32": {
|
||||
"sha256": "590bfb10576702639825581cc00c445da6e577012840a787137417e80d15f46d",
|
||||
"size": 366573064,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/riscv32-esp-elf-13.2.0_20240530-i686-w64-mingw32.zip"
|
||||
"sha256": "bdd12a07934e68ec7abafa4142399d87f62f06c37c451d0ddaba6299be2b51a7",
|
||||
"size": 672058026,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/riscv32-esp-elf-14.2.0_20240906-i686-w64-mingw32.zip"
|
||||
},
|
||||
"win64": {
|
||||
"sha256": "413eb9f6adf8fdaf25544d014c850fc09eb38bb93a2fc5ebd107ab1b0de1bb3a",
|
||||
"size": 369820297,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-13.2.0_20240530/riscv32-esp-elf-13.2.0_20240530-x86_64-w64-mingw32.zip"
|
||||
"sha256": "3631a8a8a72b9860fd823674918d118c696f920849c783f673b86adceeeeea7a",
|
||||
"size": 677815737,
|
||||
"url": "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/riscv32-esp-elf-14.2.0_20240906-x86_64-w64-mingw32.zip"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user