Using gcc as a sort of scripting language.

2024-12-26 Thread Paul Markfort via Gcc
This is just a suggestion to make it easier for Linux/Unix users to use the Gnu compilers instead of having to use a scripting language for short little utilities. I know someone has created and released a binary C interpreter for this purpose. But why would you want to install another progra

gcc-12-20241226 is now available

2024-12-26 Thread GCC Administrator via Gcc
Snapshot gcc-12-20241226 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20241226/ and on various mirrors, see https://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

GDB debugging showing wrong code

2024-12-26 Thread Trampas Stern via Gcc
I am doing embedded development on an arm cortex-m processor using arm-none-eabi-gcc. I have run into a bug where GDB is showing that the code executing is code from a function that is not used. The code is removed as it is not called, and hence -ffunction-sections -fdata-sections -Wl,--gc-sectio