mirror of
https://git.rtems.org/rtems-docs/
synced 2025-05-15 05:16:39 +08:00
user: Clarify -fno-common changes
This commit is contained in:
parent
13be9a2b28
commit
283acbbfdd
@ -10,14 +10,14 @@ RTEMS 5 to RTEMS 6
|
||||
This section provides helpful information when migrating from RTEMS 5 to
|
||||
RTEMS 6.
|
||||
|
||||
Update to GCC 10
|
||||
----------------
|
||||
Update to GCC 10 and Later
|
||||
--------------------------
|
||||
|
||||
The tool suite for RTEMS 6 uses GCC 10. GCC 10 enables ``-fno-common`` by
|
||||
default. Code bases which never used this option before may observe now
|
||||
multiple definition linker errors. For example, if global variables are
|
||||
declared and defined in header files (usually a missing ``extern`` in the header
|
||||
file).
|
||||
The tool suite for RTEMS 6 uses at least GCC 10. GCC 10 and later enable
|
||||
``-fno-common`` by default. Code bases which never used this option before may
|
||||
observe now multiple definition linker errors. For example, if global
|
||||
variables are declared and defined in header files (usually a missing
|
||||
``extern`` in the header file).
|
||||
|
||||
Replacements for Removed APIs
|
||||
-----------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user