Use --enable-obsolete in build-many-glibcs.py for nios2-linux-gnu

Message ID 6b21bfdb-3ed6-a554-4fd0-cb47d038a7dd@redhat.com
State Committed
Commit f6d18bea387676e774e18ce410ace8c33a5c3511
Headers
Series Use --enable-obsolete in build-many-glibcs.py for nios2-linux-gnu |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Testing passed
redhat-pt-bot/TryBot-32bit success Build for i686
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_glibc_build--master-arm warning Patch is already merged

Commit Message

Joseph Myers April 19, 2024, 4:51 p.m. UTC
  Until GCC removes Nios II support (at which point we should do so as
well), this is now needed for GCC 14 / mainline to build for
nios2-linux-gnu target.

Tested with build-many-glibcs.py (GCC mainline) for nios2-linux-gnu.
  

Comments

H.J. Lu April 19, 2024, 4:59 p.m. UTC | #1
On Fri, Apr 19, 2024 at 9:52 AM Joseph Myers <josmyers@redhat.com> wrote:
>
> Until GCC removes Nios II support (at which point we should do so as
> well), this is now needed for GCC 14 / mainline to build for
> nios2-linux-gnu target.
>
> Tested with build-many-glibcs.py (GCC mainline) for nios2-linux-gnu.
>
> diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
> index ecc743e672..35dac538e5 100755
> --- a/scripts/build-many-glibcs.py
> +++ b/scripts/build-many-glibcs.py
> @@ -358,7 +358,8 @@ class Context(object):
>                                  {'variant': 'n64',
>                                   'ccopts': '-mabi=64'}])
>          self.add_config(arch='nios2',
> -                        os_name='linux-gnu')
> +                        os_name='linux-gnu',
> +                        gcc_cfg=['--enable-obsolete'])
>          self.add_config(arch='or1k',
>                          os_name='linux-gnu',
>                          variant='soft',
>
> --
> Joseph S. Myers
> josmyers@redhat.com
>

LGTM.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>

Thanks.
  

Patch

diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index ecc743e672..35dac538e5 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -358,7 +358,8 @@  class Context(object):
                                 {'variant': 'n64',
                                  'ccopts': '-mabi=64'}])
         self.add_config(arch='nios2',
-                        os_name='linux-gnu')
+                        os_name='linux-gnu',
+                        gcc_cfg=['--enable-obsolete'])
         self.add_config(arch='or1k',
                         os_name='linux-gnu',
                         variant='soft',