Re: [PATCH] gcc: Use ld -r when checking for HAVE_LD_RO_RW_SECTION_MIXING

2022-12-05 Thread Joakim Nohlgård
On Mon, Nov 28, 2022 at 5:53 PM Jeff Law wrote: > > > On 11/28/22 06:59, Joakim Nohlgård wrote: > > The check for HAVE_LD_RO_RW_SECTION_MIXING fails on targets where ld > > does not support shared objects, even though the answer to the test > > should be 'read-wr

[PATCH v2] gcc: Use ld -r when checking for HAVE_LD_RO_RW_SECTION_MIXING

2022-12-05 Thread Joakim Nohlgård
Regenerate. * configure.ac: Use ld -r in the check for HAVE_LD_RO_RW_SECTION_MIXING Signed-off-by: Joakim Nohlgård --- gcc/configure.ac | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/gcc/configure.ac b/gcc/configure.ac index 7c55bff6cb0..500829ceb1d 100644

[PATCH] c++: Fall back to global cpp spec if CPLUSPLUS_CPP_SPEC is not defined

2022-11-28 Thread Joakim Nohlgård
to using the same cpp spec as the C compiler when substituting %C in spec strings. gcc/ChangeLog: * defaults.h (CPLUSPLUS_CPP_SPEC): Remove default definition. Signed-off-by: Joakim Nohlgård --- gcc/defaults.h | 8 1 file changed, 8 deletions(-) diff --git a/gcc/defaults.h b

[PATCH] gcc: Use ld -r when checking for HAVE_LD_RO_RW_SECTION_MIXING

2022-11-28 Thread Joakim Nohlgård
re.ac: Use ld -r in the check for HAVE_LD_RO_RW_SECTION_MIXING Signed-off-by: Joakim Nohlgård --- gcc/configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/configure.ac b/gcc/configure.ac index 7c55bff6cb0..4f36ed4aff3 100644 --- a/gcc/configure.ac +++ b/gcc/co