[gcc] Enable TLS support for RTEMS in libstdc++

Joel Sherrill joel at rtems.org
Wed Jun 8 13:39:47 UTC 2022


Is TLS actually supported on all targets except MIPS?

--joel

On Wed, Jun 8, 2022 at 1:51 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> libstdc++-v3/ChangeLog:
>
>         * crossconfig.m4 (*-rtems*): Enable TLS support for all RTEMS
> targets
>         except mips.
> ---
>  libstdc++-v3/crossconfig.m4 | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4
> index ae5283b7ad3..732f6818074 100644
> --- a/libstdc++-v3/crossconfig.m4
> +++ b/libstdc++-v3/crossconfig.m4
> @@ -249,6 +249,13 @@ case "${host}" in
>      GLIBCXX_CHECK_LINKER_FEATURES
>      GLIBCXX_CHECK_MATH_SUPPORT
>      GLIBCXX_CHECK_STDLIB_SUPPORT
> +    case "$target" in
> +      mips*-rtems*)
> +        ;;
> +      *)
> +        AC_DEFINE(HAVE_TLS)
> +        ;;
> +    esac
>      ;;
>    *-tpf)
>      SECTION_FLAGS='-ffunction-sections -fdata-sections'
> --
> 2.35.3
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20220608/aa134051/attachment-0001.htm>


More information about the devel mailing list