Skip to content

Adapt picolibc support from upstream gcc#66

Open
keith-packard wants to merge 3 commits intozephyrproject-rtos:zephyr-gcc-14.3.0from
keith-packard:upstream-picolibc
Open

Adapt picolibc support from upstream gcc#66
keith-packard wants to merge 3 commits intozephyrproject-rtos:zephyr-gcc-14.3.0from
keith-packard:upstream-picolibc

Conversation

@keith-packard
Copy link

The GCC project accepted picolibc support for the upcoming version 16 release. That uses --with-picolibc instead of the --with-default-libc=picolibc form used by the Zephyr patches.

This series adapts the upstream form along with another pending patch which makes linking C++ applications include the necessary exception bits.

Devices without a barrel shifter end up using a sequence of
instructions. These can use the condition codes and/or loop count
register, so those need to be marked as 'clobbered'.

Signed-off-by: Keith Packard <keithp@keithp.com>
This uses --with-picolibc instead of the more complicated
--with-default-libc=picolibc and isolates the changes to a single new
chunk of config logic.

Signed-off-by: Keith Packard <keithp@keithp.com>
Provide a way for spec fragments to detect which language specific
driver is in use. This allows for language-specific functionality to
be included during linking, like unwind constructors for C++ exception
handling.

Signed-off-by: Keith Packard <keithp@keithp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant

Comments