One more libgcobol/configure.tgt tweak

Message ID Z9APQwpW+r2wb9Jn@tucnak
State New
Headers
Series One more libgcobol/configure.tgt tweak |

Commit Message

Jakub Jelinek March 11, 2025, 10:24 a.m. UTC
  On Tue, Mar 11, 2025 at 10:45:09AM +0100, Andreas Schwab wrote:
> On Mär 11 2025, Jakub Jelinek wrote:
> 
> > --- libgcobol/configure.tgt.jj	2025-03-11 09:18:22.133128278 +0100
> > +++ libgcobol/configure.tgt	2025-03-11 09:53:32.208959209 +0100
> > @@ -30,12 +30,16 @@ case "${target}" in
> >  	LIBGCOBOL_SUPPORTED=yes
> >  	;;
> >      powerpc64le-*-linux*)
> > -	LIBGCOBOL_SUPPORTED=yes
> > +	if test x$ac_cv_sizeof_void_p = x8; then
> > +		LIBGCOBOL_SUPPORTED=yes
> > +	fi
> >  	;;
> >      x86_64-*-linux*x32)
> >  	LIBGCOBOL_SUPPORTED=no
> >  	;;
> > -    x86_64-*-linux*)
> > -	LIBGCOBOL_SUPPORTED=yes
> > +    x86_64-*-linux* | i?86-*-linux*)
> > +	if test x$ac_cv_sizeof_void_p = x8; then
> > +		LIBGCOBOL_SUPPORTED=yes
> > +	fi
> 
> I think that makes the x32 match obsolete.

You're right.  I've already committed the patch, so here is incremental one.
Ok for trunk?

2025-03-11  Jakub Jelinek  <jakub@redhat.com>

	* configure.tgt: Remove x86_64-*-linux*x32 special case.



	Jakub
  

Comments

Richard Biener March 11, 2025, 10:31 a.m. UTC | #1
On Tue, 11 Mar 2025, Jakub Jelinek wrote:

> On Tue, Mar 11, 2025 at 10:45:09AM +0100, Andreas Schwab wrote:
> > On Mär 11 2025, Jakub Jelinek wrote:
> > 
> > > --- libgcobol/configure.tgt.jj	2025-03-11 09:18:22.133128278 +0100
> > > +++ libgcobol/configure.tgt	2025-03-11 09:53:32.208959209 +0100
> > > @@ -30,12 +30,16 @@ case "${target}" in
> > >  	LIBGCOBOL_SUPPORTED=yes
> > >  	;;
> > >      powerpc64le-*-linux*)
> > > -	LIBGCOBOL_SUPPORTED=yes
> > > +	if test x$ac_cv_sizeof_void_p = x8; then
> > > +		LIBGCOBOL_SUPPORTED=yes
> > > +	fi
> > >  	;;
> > >      x86_64-*-linux*x32)
> > >  	LIBGCOBOL_SUPPORTED=no
> > >  	;;
> > > -    x86_64-*-linux*)
> > > -	LIBGCOBOL_SUPPORTED=yes
> > > +    x86_64-*-linux* | i?86-*-linux*)
> > > +	if test x$ac_cv_sizeof_void_p = x8; then
> > > +		LIBGCOBOL_SUPPORTED=yes
> > > +	fi
> > 
> > I think that makes the x32 match obsolete.
> 
> You're right.  I've already committed the patch, so here is incremental one.
> Ok for trunk?

OK.

Richard.

> 2025-03-11  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* configure.tgt: Remove x86_64-*-linux*x32 special case.
> 
> --- libgcobol/configure.tgt.jj	2025-03-11 11:05:09.643154269 +0100
> +++ libgcobol/configure.tgt	2025-03-11 11:21:37.680675486 +0100
> @@ -34,9 +34,6 @@ case "${target}" in
>  		LIBGCOBOL_SUPPORTED=yes
>  	fi
>  	;;
> -    x86_64-*-linux*x32)
> -	LIBGCOBOL_SUPPORTED=no
> -	;;
>      x86_64-*-linux* | i?86-*-linux*)
>  	if test x$ac_cv_sizeof_void_p = x8; then
>  		LIBGCOBOL_SUPPORTED=yes
> 
> 
> 	Jakub
> 
>
  

Patch

--- libgcobol/configure.tgt.jj	2025-03-11 11:05:09.643154269 +0100
+++ libgcobol/configure.tgt	2025-03-11 11:21:37.680675486 +0100
@@ -34,9 +34,6 @@  case "${target}" in
 		LIBGCOBOL_SUPPORTED=yes
 	fi
 	;;
-    x86_64-*-linux*x32)
-	LIBGCOBOL_SUPPORTED=no
-	;;
     x86_64-*-linux* | i?86-*-linux*)
 	if test x$ac_cv_sizeof_void_p = x8; then
 		LIBGCOBOL_SUPPORTED=yes