public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Enable Go for AIX
@ 2017-04-25  9:22 REIX, Tony
  0 siblings, 0 replies; 2+ messages in thread
From: REIX, Tony @ 2017-04-25  9:22 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 910 bytes --]

Description:
This patch enables libffi, libgo, and Go to be built on AIX.
It is the first patch of a series of patches for Go on AIX.
Do not use --enable-languages=go on AIX till all patches (FSF and Google) are available.

Tests (done with a .spec file):
 * AIX 7.2/PowerPC:
   - ./configure --enable-languages=go ... ; gmake : failed while building Go, as expected.
   - ./configure (without go language) ; gmake : SUCCESS.
 * Ubuntu/x86_64 :
   - ./configure --disable-multilib --enable-languages=go ... ; make :
   Build broke at 74%, after libgo has been successfully built, due to a lack of disk space.

ChangeLog:
        * configure.ac: Enable Go for AIX.
        * contrib/config-list.mk: Enable Go for AIX.

Cordialement,

Tony Reix

Bull - ATOS
IBM Coop Architect & Technical Leader
Office : +33 (0) 4 76 29 72 67
1 rue de Provence - 38432 Échirolles - France
www.atos.net

[-- Attachment #2: patch1.txt --]
[-- Type: text/plain, Size: 1466 bytes --]

--- ./configure.ac.ORIGIN	2017-04-19 15:31:23 -0500
+++ ./configure.ac	2017-04-19 15:38:59 -0500
@@ -790,10 +790,6 @@ case "${target}" in
   mmix-*-*)
     noconfigdirs="$noconfigdirs target-libffi"
     ;;
-  powerpc-*-aix*)
-    # copied from rs6000-*-* entry
-    noconfigdirs="$noconfigdirs target-libffi"
-    ;;
   rs6000-*-aix*)
     noconfigdirs="$noconfigdirs target-libffi"
     ;;
@@ -808,7 +804,7 @@ esac
 # Disable the go frontend on systems where it is known to not work. Please keep
 # this in sync with contrib/config-list.mk.
 case "${target}" in
-*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
+*-*-darwin* | *-*-cygwin* | *-*-mingw* | rs6000-*-aix*)
     unsupported_languages="$unsupported_languages go"
     ;;
 esac
@@ -824,7 +820,7 @@ if test x$enable_libgo = x; then
     *-*-cygwin* | *-*-mingw*)
 	noconfigdirs="$noconfigdirs target-libgo"
 	;;
-    *-*-aix*)
+    rs6000-*-aix*)
 	noconfigdirs="$noconfigdirs target-libgo"
 	;;
     esac
--- ./contrib/config-list.mk.ORIGIN	2017-04-19 15:39:40 -0500
+++ ./contrib/config-list.mk	2017-04-19 15:42:10 -0500
@@ -121,7 +121,7 @@ $(LIST): make-log-dir
 		TGT=`echo $@ | awk 'BEGIN { FS = "OPT" }; { print $$1 }'` &&			\
 		TGT=`$(GCC_SRC_DIR)/config.sub $$TGT` &&					\
 		case $$TGT in									\
-			*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)			\
+			*-*-darwin* | *-*-cygwin* | *-*-mingw* | rs6000-*-aix*)			\
 				ADDITIONAL_LANGUAGES="";					\
 				;;								\
 			*)									\

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Enable Go for AIX
@ 2017-04-26 18:34 David Edelsohn
  0 siblings, 0 replies; 2+ messages in thread
From: David Edelsohn @ 2017-04-26 18:34 UTC (permalink / raw)
  To: REIX, TONY; +Cc: GCC Patches

Hi, Tony

Why is enabling Go the *first* patch?  It seems that the support
should be added before one allows it to be configured.

Also, what are you trying to accomplish with the changes to "rs6000"
in the target triplets.  I think that you are trying to distinguish
between different versions of AIX?  Changing "rs6000" is not the
correct way to distinguish this.

What are you really trying to distinguish with this change?

Thanks, David

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-26 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-25  9:22 Enable Go for AIX REIX, Tony
2017-04-26 18:34 David Edelsohn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).