[0/3] Build fixes for older gcc

Message ID 20230724171524.2687112-1-adhemerval.zanella@linaro.org
Headers
Series Build fixes for older gcc |

Message

Adhemerval Zanella Netto July 24, 2023, 5:15 p.m. UTC
  Checking if glibc still builds with the minimum advertised gcc version
showed some issues, which are easily fixed.  There are some issues that
are not easily fixed that either would require GCC backports to old
releases (like ia64 GPREL22 overflows issues again __dso_handle),
a large backport on old glibc releases (riscv R_RISCV_GPREL_I relocation
against __ehdr_start that was fixed by a code refactor only presented
in 2.35), or large compiler backports (like for arc that prevented build
with gcc older than 9).

Adhemerval Zanella (3):
  malloc: Fix set-freeres.c with gcc 6
  sunrpc: Fix netname build with older gcc
  powerpc: Fix powerpc64 strchrnul build with old gcc

 malloc/set-freeres.c                          | 46 +++++++++++++++++++
 sunrpc/netname.c                              |  4 ++
 .../powerpc/powerpc64/multiarch/strchrnul.c   | 14 +++---
 3 files changed, 57 insertions(+), 7 deletions(-)
  

Comments

Andreas K. Huettel July 25, 2023, 8:06 p.m. UTC | #1
Am Montag, 24. Juli 2023, 19:15:21 CEST schrieb Adhemerval Zanella via Libc-alpha:
> Checking if glibc still builds with the minimum advertised gcc version
> showed some issues, which are easily fixed.  There are some issues that
> are not easily fixed that either would require GCC backports to old
> releases (like ia64 GPREL22 overflows issues again __dso_handle),
> a large backport on old glibc releases (riscv R_RISCV_GPREL_I relocation
> against __ehdr_start that was fixed by a code refactor only presented
> in 2.35), or large compiler backports (like for arc that prevented build
> with gcc older than 9).
> 
> Adhemerval Zanella (3):
>   malloc: Fix set-freeres.c with gcc 6
>   sunrpc: Fix netname build with older gcc
>   powerpc: Fix powerpc64 strchrnul build with old gcc
> 
>  malloc/set-freeres.c                          | 46 +++++++++++++++++++
>  sunrpc/netname.c                              |  4 ++
>  .../powerpc/powerpc64/multiarch/strchrnul.c   | 14 +++---
>  3 files changed, 57 insertions(+), 7 deletions(-)

It would be great to still have this in the release.

That said, I can't technically judge it, so a second OK would be nice.
  
Adhemerval Zanella Netto July 25, 2023, 8:38 p.m. UTC | #2
On 25/07/23 17:06, Andreas K. Huettel wrote:
> Am Montag, 24. Juli 2023, 19:15:21 CEST schrieb Adhemerval Zanella via Libc-alpha:
>> Checking if glibc still builds with the minimum advertised gcc version
>> showed some issues, which are easily fixed.  There are some issues that
>> are not easily fixed that either would require GCC backports to old
>> releases (like ia64 GPREL22 overflows issues again __dso_handle),
>> a large backport on old glibc releases (riscv R_RISCV_GPREL_I relocation
>> against __ehdr_start that was fixed by a code refactor only presented
>> in 2.35), or large compiler backports (like for arc that prevented build
>> with gcc older than 9).
>>
>> Adhemerval Zanella (3):
>>   malloc: Fix set-freeres.c with gcc 6
>>   sunrpc: Fix netname build with older gcc
>>   powerpc: Fix powerpc64 strchrnul build with old gcc
>>
>>  malloc/set-freeres.c                          | 46 +++++++++++++++++++
>>  sunrpc/netname.c                              |  4 ++
>>  .../powerpc/powerpc64/multiarch/strchrnul.c   | 14 +++---
>>  3 files changed, 57 insertions(+), 7 deletions(-)
> 
> It would be great to still have this in the release.
> 
> That said, I can't technically judge it, so a second OK would be nice.
> 

We can always backport it since it should only affect old compilers.