GCC version for RTEMS 6?

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Apr 27 09:54:19 UTC 2022


On 27.04.22 08:57, Sebastian Huber wrote:
> Hello,
> 
> we have to select a GCC version for the RTEMS 6 release. Currently, GCC 
> 10 is used, however, with the release of GCC 10.4 this year it will 
> reach its end of life. Other options are GCC 11 and 12. GCC 12 will be 
> released in the next weeks. It has some nice features:
> 
> * Initialization of stack variables:
> 
> https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-ftrivial-auto-var-init 
> 
> 
> * Improved static analysis with -fanalyzer
> 
> * Improved gcov support, with the ability to back port changes from GCC 13:
> 
> https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593536.html
> 
> * Upstream maintenance for the next three years
> 
> The draw back is that it is brand new.

The Ada support is broken in GCC 12 for most targets:

tracebak.c:563:2: error: #error Unhandled RTEMS architecture.
   563 | #error Unhandled RTEMS architecture.
       |  ^~~~~
checking whether 
/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/arm-rtems7-gcc-39d2411-newlib-64b2081-x86_64-linux-gnu-1/build/./gcc/xgcc 
-B/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/arm-rtems7-gcc-39d2411-newlib-64b2081-x86_64-linux-gnu-1/build/./gcc/ 
-nostdinc -B/home/EB/sebastian_h/src/rtems-source-builder/rte
ms/build/arm-rtems7-gcc-39d2411-newlib-64b2081-x86_64-linux-gnu-1/build/arm-rtems7/thumb/cortex-m4+nofp/newlib/ 
-isystem 
/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/arm-rtems7-gcc-39d2411-newlib-64b2081-x86_64-linux-gnu-1/build/arm-rtems7/thumb/cortex-m4+nofp/newlib/targ-include 
-isystem /home/EB/sebastian_h/src/rtems-source
-builder/rtems/build/arm-rtems7-gcc-39d2411-newlib-64b2081-x86_64-linux-gnu-1/gnu-mirror-gcc-39d2411/newlib/libc/include 
-B/opt/rtems/7/arm-rtems7/bin/ -B/opt/rtems/7/arm-rtems7/lib/ -isystem 
/opt/rtems/7/arm-rtems7/include -isystem 
/opt/rtems/7/arm-rtems7/sys-include  -mthumb -mcpu=cortex-m4+nofp 
understands -c and -o together... no
tracebak.c: In function 'trace_callback':
tracebak.c:660:12: error: '_URC_NORMAL_STOP' undeclared (first use in 
this function)
   660 |     return _URC_NORMAL_STOP;
       |            ^~~~~~~~~~~~~~~~
tracebak.c:660:12: note: each undeclared identifier is reported only 
once for each function it appears in
tracebak.c:663:62: error: 'PC_ADJUST' undeclared (first use in this 
function)
   663 |     uw_data->traceback [uw_data->n_entries_filled ++] = pc + 
PC_ADJUST;
       | 
^~~~~~~~~


-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list