This repository contains sources and build scripts for GNU Tools for STM32 C/C++ bare-metal toolchain included into STM32CubeIDE advanced development platform and part of the STM32Cube software ecosystem. It is based on ARM GNU Toolchain sources, with patches improving use in embedded systems.
- GNU C/C++ Compiler (GCC) - Upstream source code repository
- GNU Binutils - Upstream source code repository
- GDB - Upstream source code repository
- Newlib - Upstream source code repository
See LICENSE.md
- GNU/Linux
- Windows
- macOs
For communication and support, please refer to:
- ST Support Center for any defect
- ST Community MCUs or MPUs forums
| Patch | Description |
|---|---|
| Fix for long path issues on Windows | Windows has a limit of the number of characters in paths to files. This fix allows up to 248 characters in paths to GCC toolchain binaries and up to 4096 characters for all files processed by the GCC tools. Without the patch the latter limit is about 150 characters. |
| Provide Newlib string function compatible with all platforms | Adds aliases for Newlib string functions. Enables the functions to be called on all target platforms without changing the target source code. Useful for unit testing of target source code on Windows. |
| Provide compatibility with IAR EW projects | Adds pre-processor symbol __FILE_NAME__ which is used in IAR EW. Will be required for import of IAR EW projects. |
| Enable debugging of functions in target libraries libg or libg_nano | Updates the GCC build scripts for libg and libg_nano in Newlib, so that debug symbols are not stripped. |
| Correct stack usage for functions with inline assembler | Required by Stack Analyzer advanced debug function in CubeIDE. |
| Prepare for calculation of cyclomatic complexity | Provides the ability to calculate cyclomatic complexity of the target source code processed by GCC. The patch integrates the plugin into GCC binaries. |
| Include librdimon-v2m.a in delivery for both Newlib variants | Support rdimon on Cortex-A by including librdimon-v2m.a for the Newlib-nano. |
- arm: delay setting of plt header and entry size
- PR 33697, fuzzer segfault
- ld: Account for .tbss size on Arm embedded targets
- Objdump: New feature display of global variable info based on DWARF info section
- Re: bfd/Dwarf: Add suitable defines to use at call and use sites
- bfd/Dwarf: Add suitable defines to use at call and use sites
- libstdc++: Resolve integer type mismatches in stdx::simd [PR122981]
- c++: ICE on on systems without mmap support [PR124806]
- tree-optimization: Fold constant conditional selects [PR124663]
- Make -Wuse-after-free alias for -Wuse-after-free=1 [PR124058]
- c++: coroutines: initialize refcount
- arm: allow at least one insn when loading a constant [PR102309]
- testsuite: arm: Set tuning for MVE FP intrinsic tests
- doc: Fix up doc build
- testsuite: arm: require fp16 alternative hw for tests
- testsuite: require cortex-a53 in reg_equal_test.c test
- testsuite: prevent packing enum in vect-early-break_65.c [PR124112]
- testsuite: remove xfail "vectorized 1 loops" arm_neon [PR124726]
- testsuite: remove xfail for arm_mve from ssa-dom-cse-2.c [PR124361]
- testsuite: arm: remove xfail for MVE, NEON and thumb1 [PR124364]
- testsuite: cast argument to char* in can_deref_null [PR126261]
- testsuite: skip test for targets that can deref null [PR126261]
- testsuite: use arm_neon as xfail condition [PR118407]
- testsuite: arm: xfail predcom-8.c test in hard float without MVE [PR118407]
- testsuite: arm: xfail crypto tests for -mthumb -mfloat-abi=hard [PR124043]
- testsuite: arm: crypto-vsha1*_u32 tests got late-combine improvements
- testsuite: arm: Add MVE link effective target
- testsuite: arm: update fast-math-complex-mls-{float,double}.c [PR116463]
- testsuite/115827 - avoid false negative because of CCP
- testsuite: arm: Properly quote command line arguments
- arm: testsuite: Yet another typo in pr45701-2.c
- arm: testsuite: properly escape '[]' in pr45701-2.c
- arm: testsuite: avoid pr45701 matching asm across newlines
- arm: testsuite: Improve stability of tests for pr45701
- arm: testsuite: remove some flaky code-size tests
- testsuite: g++.dg/cpp2a/decomp2.C requires tls_runtime