Re: [gcc v2] Enable some features for RTEMS in libstdc++

2022-07-01 Thread Sebastian Huber

On 09.06.22 20:19, Sebastian Huber wrote:

Remove RTEMS support from crossconfig.m4 since this code is not used due to
"with_newlib" being "yes".

libstdc++-v3/ChangeLog:

* configure: Regnerate.
* configure.ac (newlib, *-rtems*): Enable TLS support for all RTEMS
targets except bfin, lm32, mips, moxie, or1k, and v850.
For all RTEMS targets, define HAVE_ALIGNED_ALLOC, HAVE_AT_QUICK_EXIT,
HAVE_LINK, HAVE_POLL, HAVE_QUICK_EXIT, HAVE_READLINK, HAVE_SETENV,
HAVE_SLEEP, HAVE_SOCKATMARK, HAVE_STRERROR_L, HAVE_SYMLINK,
HAVE_TRUNCATE, and HAVE_USLEEP.


I integrated the patch in GCC 13. It is available through the rtems7 
tools in the RSB. See also:


https://lists.rtems.org/pipermail/devel/2022-June/072119.html

https://lists.rtems.org/pipermail/devel/2022-July/072150.html

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@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/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [gcc v2] Enable some features for RTEMS in libstdc++

2022-06-22 Thread Sebastian Huber

On 22/06/2022 08:36, Chris Johns wrote:

I see this patch is for master. Is a gcc 12 patch available so I can test it?

The patch works also for GCC 12. I only did a test run of the RTEMS tests.

It failed to apply for me with the gcc-12 for rtems6. The configure pieces did
not apply.


I updated the GCC 12 commit. The patch should apply now.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@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/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [gcc v2] Enable some features for RTEMS in libstdc++

2022-06-21 Thread Sebastian Huber



On 22/06/2022 08:40, Chris Johns wrote:

On 22/6/2022 4:39 pm, Sebastian Huber wrote:

On 22/06/2022 08:36, Chris Johns wrote:

The patch works also for GCC 12. I only did a test run of the RTEMS tests.

It failed to apply for me with the gcc-12 for rtems6. The configure pieces did
not apply.


I tested with the GCC 12 branch, maybe there are some configure changes compared
to the RSB version. I will update the GCC 12 snapshot.


What does updating the snapshot mean?


Using the latest GCC 12 release branch commit.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@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/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [gcc v2] Enable some features for RTEMS in libstdc++

2022-06-21 Thread Chris Johns
On 22/6/2022 4:39 pm, Sebastian Huber wrote:
> On 22/06/2022 08:36, Chris Johns wrote:
>>> The patch works also for GCC 12. I only did a test run of the RTEMS tests.
>> It failed to apply for me with the gcc-12 for rtems6. The configure pieces 
>> did
>> not apply.
> 
> I tested with the GCC 12 branch, maybe there are some configure changes 
> compared
> to the RSB version. I will update the GCC 12 snapshot.

What does updating the snapshot mean?

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: [gcc v2] Enable some features for RTEMS in libstdc++

2022-06-21 Thread Sebastian Huber

On 22/06/2022 08:36, Chris Johns wrote:

The patch works also for GCC 12. I only did a test run of the RTEMS tests.

It failed to apply for me with the gcc-12 for rtems6. The configure pieces did
not apply.


I tested with the GCC 12 branch, maybe there are some configure changes 
compared to the RSB version. I will update the GCC 12 snapshot.


--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@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/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [gcc v2] Enable some features for RTEMS in libstdc++

2022-06-21 Thread Chris Johns
On 22/6/2022 4:05 pm, Sebastian Huber wrote:
> On 22/06/2022 05:34, Chris Johns wrote:
>> On 22/6/2022 6:38 am, Chris Johns wrote:
 On 21 Jun 2022, at 5:39 pm, Sebastian Huber
  wrote:

 On 09/06/2022 20:19, Sebastian Huber wrote:
> Remove RTEMS support from crossconfig.m4 since this code is not used due 
> to
> "with_newlib" being "yes".
> libstdc++-v3/ChangeLog:
>     * configure: Regnerate.
>     * configure.ac (newlib, *-rtems*): Enable TLS support for all RTEMS
>     targets except bfin, lm32, mips, moxie, or1k, and v850.
>     For all RTEMS targets, define HAVE_ALIGNED_ALLOC, HAVE_AT_QUICK_EXIT,
>     HAVE_LINK, HAVE_POLL, HAVE_QUICK_EXIT, HAVE_READLINK, HAVE_SETENV,
>     HAVE_SLEEP, HAVE_SOCKATMARK, HAVE_STRERROR_L, HAVE_SYMLINK,
>     HAVE_TRUNCATE, and HAVE_USLEEP.
>     * crossconfig.m4 (*-rtems*): Remove.

 Any comments?
>>
>> Is there a ticket to track this change?
> 
> https://devel.rtems.org/ticket/4668
> 
>>
>>> I think this is sensible. Has it been tested on real code?
>>>
 I would like to back port this patch to GCC 10, 11, and 12.
>>
>> I see this patch is for master. Is a gcc 12 patch available so I can test it?
> 
> The patch works also for GCC 12. I only did a test run of the RTEMS tests.

It failed to apply for me with the gcc-12 for rtems6. The configure pieces did
not apply.

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [gcc v2] Enable some features for RTEMS in libstdc++

2022-06-21 Thread Sebastian Huber

On 22/06/2022 05:34, Chris Johns wrote:

On 22/6/2022 6:38 am, Chris Johns wrote:

On 21 Jun 2022, at 5:39 pm, Sebastian Huber
 wrote:

On 09/06/2022 20:19, Sebastian Huber wrote:

Remove RTEMS support from crossconfig.m4 since this code is not used due to
"with_newlib" being "yes".
libstdc++-v3/ChangeLog:
    * configure: Regnerate.
    * configure.ac (newlib, *-rtems*): Enable TLS support for all RTEMS
    targets except bfin, lm32, mips, moxie, or1k, and v850.
    For all RTEMS targets, define HAVE_ALIGNED_ALLOC, HAVE_AT_QUICK_EXIT,
    HAVE_LINK, HAVE_POLL, HAVE_QUICK_EXIT, HAVE_READLINK, HAVE_SETENV,
    HAVE_SLEEP, HAVE_SOCKATMARK, HAVE_STRERROR_L, HAVE_SYMLINK,
    HAVE_TRUNCATE, and HAVE_USLEEP.
    * crossconfig.m4 (*-rtems*): Remove.


Any comments?


Is there a ticket to track this change?


https://devel.rtems.org/ticket/4668




I think this is sensible. Has it been tested on real code?


I would like to back port this patch to GCC 10, 11, and 12.


I see this patch is for master. Is a gcc 12 patch available so I can test it?


The patch works also for GCC 12. I only did a test run of the RTEMS tests.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@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/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [gcc v2] Enable some features for RTEMS in libstdc++

2022-06-21 Thread Chris Johns
On 22/6/2022 6:38 am, Chris Johns wrote:
>> On 21 Jun 2022, at 5:39 pm, Sebastian Huber
>>  wrote:
>>
>> On 09/06/2022 20:19, Sebastian Huber wrote:
>>> Remove RTEMS support from crossconfig.m4 since this code is not used due to
>>> "with_newlib" being "yes".
>>> libstdc++-v3/ChangeLog:
>>>    * configure: Regnerate.
>>>    * configure.ac (newlib, *-rtems*): Enable TLS support for all RTEMS
>>>    targets except bfin, lm32, mips, moxie, or1k, and v850.
>>>    For all RTEMS targets, define HAVE_ALIGNED_ALLOC, HAVE_AT_QUICK_EXIT,
>>>    HAVE_LINK, HAVE_POLL, HAVE_QUICK_EXIT, HAVE_READLINK, HAVE_SETENV,
>>>    HAVE_SLEEP, HAVE_SOCKATMARK, HAVE_STRERROR_L, HAVE_SYMLINK,
>>>    HAVE_TRUNCATE, and HAVE_USLEEP.
>>>    * crossconfig.m4 (*-rtems*): Remove.
>>
>> Any comments? 

Is there a ticket to track this change?

> I think this is sensible. Has it been tested on real code?
> 
>> I would like to back port this patch to GCC 10, 11, and 12.

I see this patch is for master. Is a gcc 12 patch available so I can test it?

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [gcc v2] Enable some features for RTEMS in libstdc++

2022-06-21 Thread Chris Johns


> On 21 Jun 2022, at 5:39 pm, Sebastian Huber 
>  wrote:
> 
> On 09/06/2022 20:19, Sebastian Huber wrote:
>> Remove RTEMS support from crossconfig.m4 since this code is not used due to
>> "with_newlib" being "yes".
>> libstdc++-v3/ChangeLog:
>>* configure: Regnerate.
>>* configure.ac (newlib, *-rtems*): Enable TLS support for all RTEMS
>>targets except bfin, lm32, mips, moxie, or1k, and v850.
>>For all RTEMS targets, define HAVE_ALIGNED_ALLOC, HAVE_AT_QUICK_EXIT,
>>HAVE_LINK, HAVE_POLL, HAVE_QUICK_EXIT, HAVE_READLINK, HAVE_SETENV,
>>HAVE_SLEEP, HAVE_SOCKATMARK, HAVE_STRERROR_L, HAVE_SYMLINK,
>>HAVE_TRUNCATE, and HAVE_USLEEP.
>>* crossconfig.m4 (*-rtems*): Remove.
> 
> Any comments?

I think this is senseible. Has it been tested on real code?

> I would like to back port this patch to GCC 10, 11, and 12.

Does this imply rtems 5?

Chris___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [gcc v2] Enable some features for RTEMS in libstdc++

2022-06-21 Thread Sebastian Huber

On 09/06/2022 20:19, Sebastian Huber wrote:

Remove RTEMS support from crossconfig.m4 since this code is not used due to
"with_newlib" being "yes".

libstdc++-v3/ChangeLog:

* configure: Regnerate.
* configure.ac (newlib, *-rtems*): Enable TLS support for all RTEMS
targets except bfin, lm32, mips, moxie, or1k, and v850.
For all RTEMS targets, define HAVE_ALIGNED_ALLOC, HAVE_AT_QUICK_EXIT,
HAVE_LINK, HAVE_POLL, HAVE_QUICK_EXIT, HAVE_READLINK, HAVE_SETENV,
HAVE_SLEEP, HAVE_SOCKATMARK, HAVE_STRERROR_L, HAVE_SYMLINK,
HAVE_TRUNCATE, and HAVE_USLEEP.
* crossconfig.m4 (*-rtems*): Remove.


Any comments? I would like to back port this patch to GCC 10, 11, and 12.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@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/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel