Re: [PATCH] 6: Enable some libstdc++ features

2022-08-16 Thread Chris Johns
On 12/8/2022 12:48 am, Sebastian Huber wrote: > Hello Chris, > > On 08.08.22 13:46, Sebastian Huber wrote: >> Enable TLS support for all RTEMS targets except bfin, lm32, m68k, mips, >> moxie, >> or1k, and v850.  For all RTEMS targets, define HAVE_ALIGNED_ALLOC, >> HAVE_AT_QUICK_EXIT, HAVE_LINK, H

Re: [PATCH RSB] Fixes for getting sources

2022-08-16 Thread Chris Johns
On 17/8/2022 12:13 pm, Joel Sherrill wrote: > On Tue, Aug 16, 2022, 6:34 PM mailto:chr...@rtems.org>> > wrote: > > Hi > > These patches fix getting sources for all the packages so releases > can be CI tested to catch breakages closer to the time they happen. > > > Thanks. I didn't

Re: [PATCH v1 09/12] malloctest/init.c: Added pragmas to address gcc 12 warnings

2022-08-16 Thread Chris Johns
On 17/8/2022 12:16 pm, Joel Sherrill wrote: > On Tue, Aug 16, 2022, 6:07 PM Chris Johns > wrote: > On 17/8/2022 6:11 am, Ryan Long wrote: > > Fixed four warnings disabled were for "-Wuse-after-free" and one for a > > "-Wfree-nonheap-object." > > Is this a

Re: [PATCH v1 09/12] malloctest/init.c: Added pragmas to address gcc 12 warnings

2022-08-16 Thread Joel Sherrill
On Tue, Aug 16, 2022, 6:07 PM Chris Johns wrote: > On 17/8/2022 6:11 am, Ryan Long wrote: > > Fixed four warnings disabled were for "-Wuse-after-free" and one for a > > "-Wfree-nonheap-object." > > Is this a gcc warning bug? If p1 was used to access the memory the warning > is > right but we are

Re: [PATCH RSB] Fixes for getting sources

2022-08-16 Thread Joel Sherrill
On Tue, Aug 16, 2022, 6:34 PM wrote: > Hi > > These patches fix getting sources for all the packages so releases > can be CI tested to catch breakages closer to the time they happen. > Thanks. I didn't expect a question to turn into a quest for you. Is this for 5 and 6? > The get sources too

[PATCH 3/3] config: Various updates to fix downloading of sources

2022-08-16 Thread chrisj
From: Chris Johns --- bare/config/devel/gcc-4.6-newlib-1.20-1.cfg | 4 bare/config/devel/or1ksim-1.1.0.cfg | 3 ++- bare/config/devel/pcre-8.40-1.cfg| 3 ++- bare/config/devel/qemu-xilinx-v2020.2-1.cfg | 2 +- bare/config/gnu-tools-4.6.bset | 6 ++--

[PATCH 2/3] sb/gcc-common: Allow URL overrides for downloaded source

2022-08-16 Thread chrisj
From: Chris Johns - This allows the URL for an older package to be defined when gcc no longer hosts it --- source-builder/config/gcc-common-1.cfg | 33 -- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/source-builder/config/gcc-common-1.cfg b/source-bui

[PATCH 1/3] sb/get-sources: Fix getting sources with archs

2022-08-16 Thread chrisj
From: Chris Johns - Add a stop on error option - Add listing root or toplevel buildset files - Add used and unused file output to track what is not used for clean ups - Update to handle macro expanded includes in buildset files --- source-builder/sb/getsources.py | 30 +++- source-buil

[PATCH RSB] Fixes for getting sources

2022-08-16 Thread chrisj
Hi These patches fix getting sources for all the packages so releases can be CI tested to catch breakages closer to the time they happen. The get sources tool now finds the top level buildset files and only fetches the sources for them. This avoids processing and handling configurations that are

Re: [PATCH v1 09/12] malloctest/init.c: Added pragmas to address gcc 12 warnings

2022-08-16 Thread Chris Johns
On 17/8/2022 6:11 am, Ryan Long wrote: > Fixed four warnings disabled were for "-Wuse-after-free" and one for a > "-Wfree-nonheap-object." Is this a gcc warning bug? If p1 was used to access the memory the warning is right but we are only referencing the address and not the data. It is no differen

[PATCH v1 12/12] psxkey07/init.c: Add pragma for gcc 12 warning

2022-08-16 Thread Ryan Long
Updates #4662 --- testsuites/psxtests/psxkey07/init.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/testsuites/psxtests/psxkey07/init.c b/testsuites/psxtests/psxkey07/init.c index 593df739db..15387264ba 100644 --- a/testsuites/psxtests/psxkey07/init.c +++ b/tests

[PATCH v1 11/12] psxclock/init.c: Change print format for warning

2022-08-16 Thread Ryan Long
Updates #4662 --- testsuites/psxtests/psxclock/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/psxtests/psxclock/init.c b/testsuites/psxtests/psxclock/init.c index 743cfa6d78..eb2f1d130c 100644 --- a/testsuites/psxtests/psxclock/init.c +++ b/testsuites/psxtes

[PATCH v1 10/12] ttest01/test-checks.c: Initialize variables

2022-08-16 Thread Ryan Long
These uninitialized variables were causing warnings to be generated. Updates #4662 --- testsuites/libtests/ttest01/test-checks.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testsuites/libtests/ttest01/test-checks.c b/testsuites/libtests/ttest01/test-checks.c in

[PATCH v1 08/12] dl09/dl-load.c: Fix gcc 12 warning

2022-08-16 Thread Ryan Long
Changed format of size_t variable being printed. Updates #4662 --- testsuites/libtests/dl09/dl-load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/libtests/dl09/dl-load.c b/testsuites/libtests/dl09/dl-load.c index 1de7c8fa29..ce9708c3a3 100644 --- a/testsuites/l

[PATCH v1 09/12] malloctest/init.c: Added pragmas to address gcc 12 warnings

2022-08-16 Thread Ryan Long
Fixed four warnings disabled were for "-Wuse-after-free" and one for a "-Wfree-nonheap-object." Updates #4662 --- testsuites/libtests/malloctest/init.c | 41 --- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/testsuites/libtests/malloctest/init.c b

[PATCH v1 07/12] cpu.h: Fix gcc 12 warnings

2022-08-16 Thread Ryan Long
Added two pragmas to address, and changed the value of AARCH64_EXCEPTION_MAKE_ENUM_64_BIT to INT_MAX because the old value was not in range of an int. Updates #4662 --- cpukit/score/cpu/aarch64/include/rtems/score/cpu.h | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-)

[PATCH v1 04/12] percpu.h: Add pragma to disable -Wpedantic

2022-08-16 Thread Ryan Long
Updates #4662 --- cpukit/include/rtems/score/percpu.h | 8 1 file changed, 8 insertions(+) diff --git a/cpukit/include/rtems/score/percpu.h b/cpukit/include/rtems/score/percpu.h index 24086cde86..fdd40e0a8b 100644 --- a/cpukit/include/rtems/score/percpu.h +++ b/cpukit/include/rtems/scor

[PATCH v1 05/12] schedulerpriority.h: Fix gcc 12 warning

2022-08-16 Thread Ryan Long
Changed the size of the array to 1 to get rid of the warning. Updates #4662 --- cpukit/include/rtems/score/schedulerpriority.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/include/rtems/score/schedulerpriority.h b/cpukit/include/rtems/score/schedulerpriority.h index

[PATCH v1 06/12] test.h: Add pragma for gcc 12 warning

2022-08-16 Thread Ryan Long
Updates #4662 --- cpukit/include/rtems/test.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/cpukit/include/rtems/test.h b/cpukit/include/rtems/test.h index c283be7860..e0823394d1 100644 --- a/cpukit/include/rtems/test.h +++ b/cpukit/include/rtems/test.h @@ -218,12 +218,19 @@ void T_ch

[PATCH v1 04/12] percpu.h: Add pragma for gcc 12 warning

2022-08-16 Thread Ryan Long
Updates #4662 --- cpukit/include/rtems/score/percpu.h | 8 1 file changed, 8 insertions(+) diff --git a/cpukit/include/rtems/score/percpu.h b/cpukit/include/rtems/score/percpu.h index 24086cde86..fdd40e0a8b 100644 --- a/cpukit/include/rtems/score/percpu.h +++ b/cpukit/include/rtems/scor

[PATCH v1 03/12] interr.h: Fix gcc 12 warning

2022-08-16 Thread Ryan Long
The warning that this fixes states that "ISO C restricts enumerator values to range of 'int'." Updates #4662 --- cpukit/include/rtems/score/interr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/include/rtems/score/interr.h b/cpukit/include/rtems/score/interr.h index

[PATCH v1 02/12] linkersets.h: Fix gcc 12 warning

2022-08-16 Thread Ryan Long
Changing the offset from 0 to 1 got rid of a warning stating that offset 0 is out of bounds. Updates #4662 --- cpukit/include/rtems/linkersets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/include/rtems/linkersets.h b/cpukit/include/rtems/linkersets.h index cdfcd54

[PATCH v1 00/12] gcc 12 warnings patches

2022-08-16 Thread Ryan Long
Hi, For these patches I fixed some of the warnings and added pragmas to ignore some of the others. These were the warnings I got when building AArch64/xilinx_zynqmp_lp64_qemu. If you have any feedback on fixing some of these warnings instead of just ignoring them, please let me know and I can get

[PATCH v1 01/12] threads.h: Add pragma to disable -Wpedantic

2022-08-16 Thread Ryan Long
Updates #4662 --- cpukit/include/rtems/confdefs/threads.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/cpukit/include/rtems/confdefs/threads.h b/cpukit/include/rtems/confdefs/threads.h index 8e4537f90b..4040bcb50a 100644 --- a/cpukit/include/rtems/confdefs/threads.h +++ b/

[PATCH v1 01/12] threads.h: Add pragmas to get rid of gcc 12 errors

2022-08-16 Thread Ryan Long
Updates #4662 --- cpukit/include/rtems/confdefs/threads.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/cpukit/include/rtems/confdefs/threads.h b/cpukit/include/rtems/confdefs/threads.h index 8e4537f90b..4040bcb50a 100644 --- a/cpukit/include/rtems/confdefs/threads.h +++ b/

Re: rtems-central: Error trying to add FACE POSIX Timer Behavior

2022-08-16 Thread Joel Sherrill
On Tue, Aug 16, 2022 at 7:15 AM Frank Kühndel < frank.kuehn...@embedded-brains.de> wrote: > Hi Joel, > > as far as I can remember, the error handling of `spec2modules.py` was > never excellent. Adding `notes: null` to > `spec/acfg/if/posix-timer-face-behavior.yml` fixes your problem: > Thanks! Th

Re: rtems-central: Error trying to add FACE POSIX Timer Behavior

2022-08-16 Thread Frank Kühndel
Hi Joel, as far as I can remember, the error handling of `spec2modules.py` was never excellent. Adding `notes: null` to `spec/acfg/if/posix-timer-face-behavior.yml` fixes your problem: SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause appl-config-option-type: feature-enable copyrights: -