#3866 closed enhancement (fixed)
Add support for GCC 10 noinit attribute
Reported by: | Sebastian Huber | Owned by: | Sebastian Huber |
---|---|---|---|
Priority: | normal | Milestone: | 6.1 |
Component: | bsps | Version: | 6 |
Severity: | normal | Keywords: | qualification |
Cc: | Blocked By: | ||
Blocking: |
Description
In GCC 10 there is a new common variable attribute noinit
:
https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#index-noinit-variable-attribute
https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;a=commit;h=f0033821c1c9ba386a1983499a666d5759cdd943
To support this, a change in the linker command files is necessary.
Change History (8)
comment:1 Changed on 02/05/20 at 21:47:47 by Chris Johns
comment:2 Changed on 02/09/20 at 16:40:17 by Sebastian Huber
clang doesn't support this attribute. I added an enhancement request for this:
https://bugs.llvm.org/show_bug.cgi?id=44811
As a workaround for clang and GCC < 10 you can use the section attribute. The key issue is to have support for .noinit section in the linker command files.
comment:3 Changed on 02/25/20 at 07:22:23 by Sebastian Huber
Milestone: | 5.1 → 6.1 |
---|---|
Version: | 5 → 6 |
comment:6 Changed on 05/02/21 at 18:41:12 by Sebastian Huber <sebastian.huber@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
In 2df9541/rtems:
comment:8 Changed on 06/23/21 at 07:16:03 by Sebastian Huber
Keywords: | qualification added |
---|
Note: See
TracTickets for help on using
tickets.
Does clang have this support?