|
|
72e591 |
--- libada/Makefile.in.jj 2009-01-14 12:07:35.000000000 +0100
|
|
|
72e591 |
+++ libada/Makefile.in 2009-01-15 14:25:33.000000000 +0100
|
|
|
72e591 |
@@ -66,18 +66,40 @@ libsubdir := $(libdir)/gcc/$(target_nonc
|
|
|
72e591 |
ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
|
|
|
72e591 |
ADA_RTS_SUBDIR=./rts$(subst /,_,$(MULTISUBDIR))
|
|
|
72e591 |
|
|
|
72e591 |
+DEFAULTMULTIFLAGS :=
|
|
|
72e591 |
+ifeq ($(MULTISUBDIR),)
|
|
|
72e591 |
+targ:=$(subst -, ,$(target))
|
|
|
72e591 |
+arch:=$(word 1,$(targ))
|
|
|
72e591 |
+ifeq ($(words $(targ)),2)
|
|
|
72e591 |
+osys:=$(word 2,$(targ))
|
|
|
72e591 |
+else
|
|
|
72e591 |
+osys:=$(word 3,$(targ))
|
|
|
72e591 |
+endif
|
|
|
72e591 |
+ifeq ($(strip $(filter-out i%86 x86_64 powerpc% ppc% s390% sparc% linux%, $(arch) $(osys))),)
|
|
|
72e591 |
+ifeq ($(shell $(CC) $(CFLAGS) -print-multi-os-directory),../lib64)
|
|
|
72e591 |
+DEFAULTMULTIFLAGS := -m64
|
|
|
72e591 |
+else
|
|
|
72e591 |
+ifeq ($(strip $(filter-out s390%, $(arch))),)
|
|
|
72e591 |
+DEFAULTMULTIFLAGS := -m31
|
|
|
72e591 |
+else
|
|
|
72e591 |
+DEFAULTMULTIFLAGS := -m32
|
|
|
72e591 |
+endif
|
|
|
72e591 |
+endif
|
|
|
72e591 |
+endif
|
|
|
72e591 |
+endif
|
|
|
72e591 |
+
|
|
|
72e591 |
# exeext should not be used because it's the *host* exeext. We're building
|
|
|
72e591 |
# a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
|
|
|
72e591 |
# definitions just in case something slips through the safety net provided
|
|
|
72e591 |
# by recursive make invocations in gcc/ada/Makefile.in
|
|
|
72e591 |
LIBADA_FLAGS_TO_PASS = \
|
|
|
72e591 |
"MAKEOVERRIDES=" \
|
|
|
72e591 |
- "LDFLAGS=$(LDFLAGS)" \
|
|
|
72e591 |
+ "LDFLAGS=$(LDFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
72e591 |
"LN_S=$(LN_S)" \
|
|
|
72e591 |
"SHELL=$(SHELL)" \
|
|
|
72e591 |
- "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
|
|
|
72e591 |
- "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
|
|
|
72e591 |
- "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS)" \
|
|
|
72e591 |
+ "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
72e591 |
+ "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
72e591 |
+ "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
72e591 |
"PICFLAG_FOR_TARGET=$(PICFLAG)" \
|
|
|
72e591 |
"THREAD_KIND=$(THREAD_KIND)" \
|
|
|
72e591 |
"TRACE=$(TRACE)" \
|
|
|
72e591 |
@@ -88,7 +110,7 @@ LIBADA_FLAGS_TO_PASS = \
|
|
|
72e591 |
"exeext=.exeext.should.not.be.used " \
|
|
|
72e591 |
'CC=the.host.compiler.should.not.be.needed' \
|
|
|
72e591 |
"GCC_FOR_TARGET=$(CC)" \
|
|
|
72e591 |
- "CFLAGS=$(CFLAGS)"
|
|
|
72e591 |
+ "CFLAGS=$(CFLAGS) $(DEFAULTMULTIFLAGS)"
|
|
|
72e591 |
|
|
|
72e591 |
# Rules to build gnatlib.
|
|
|
72e591 |
.PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared osconstool
|
|
|
72e591 |
--- gcc/ada/sem_util.adb (revision 161677)
|
|
|
72e591 |
+++ gcc/ada/sem_util.adb (working copy)
|
|
|
72e591 |
@@ -5487,7 +5487,7 @@ package body Sem_Util is
|
|
|
72e591 |
Exp : Node_Id;
|
|
|
72e591 |
Assn : Node_Id;
|
|
|
72e591 |
Choice : Node_Id;
|
|
|
72e591 |
- Comp_Type : Entity_Id;
|
|
|
72e591 |
+ Comp_Type : Entity_Id := Empty;
|
|
|
72e591 |
Is_Array_Aggr : Boolean;
|
|
|
72e591 |
|
|
|
72e591 |
begin
|
|
|
72e591 |
--- config-ml.in.jj 2010-06-30 09:50:44.000000000 +0200
|
|
|
72e591 |
+++ config-ml.in 2010-07-02 21:24:17.994211151 +0200
|
|
|
72e591 |
@@ -516,6 +516,8 @@ multi-do:
|
|
|
72e591 |
ADAFLAGS="$(ADAFLAGS) $${flags}" \
|
|
|
72e591 |
prefix="$(prefix)" \
|
|
|
72e591 |
exec_prefix="$(exec_prefix)" \
|
|
|
72e591 |
+ mandir="$(mandir)" \
|
|
|
72e591 |
+ infodir="$(infodir)" \
|
|
|
72e591 |
GCJFLAGS="$(GCJFLAGS) $${flags}" \
|
|
|
72e591 |
GOCFLAGS="$(GOCFLAGS) $${flags}" \
|
|
|
72e591 |
CXXFLAGS="$(CXXFLAGS) $${flags}" \
|
|
|
72e591 |
--- libjava/Makefile.am.jj 2010-07-09 11:17:33.729604090 +0200
|
|
|
72e591 |
+++ libjava/Makefile.am 2010-07-09 13:16:41.894375641 +0200
|
|
|
72e591 |
@@ -710,7 +710,8 @@ if USE_LIBGCJ_BC
|
|
|
72e591 |
## later.
|
|
|
72e591 |
@echo Installing dummy lib libgcj_bc.so.1.0.0; \
|
|
|
72e591 |
rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
72e591 |
- mv $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
72e591 |
+ $(INSTALL) $(INSTALL_STRIP_FLAG) $(here)/.libs/libgcj_bc.so $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
72e591 |
+ rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0; \
|
|
|
72e591 |
$(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
|
|
|
72e591 |
-o $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 -lgcj || exit; \
|
|
|
72e591 |
rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
|
|
|
72e591 |
--- libjava/Makefile.in.jj 2010-07-09 11:17:34.000000000 +0200
|
|
|
72e591 |
+++ libjava/Makefile.in 2010-07-09 13:18:07.542572270 +0200
|
|
|
72e591 |
@@ -12665,7 +12665,8 @@ install-exec-hook: install-binPROGRAMS i
|
|
|
72e591 |
install-libexecsubPROGRAMS
|
|
|
72e591 |
@USE_LIBGCJ_BC_TRUE@ @echo Installing dummy lib libgcj_bc.so.1.0.0; \
|
|
|
72e591 |
@USE_LIBGCJ_BC_TRUE@ rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
72e591 |
-@USE_LIBGCJ_BC_TRUE@ mv $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
72e591 |
+@USE_LIBGCJ_BC_TRUE@ $(INSTALL) $(INSTALL_STRIP_FLAG) $(here)/.libs/libgcj_bc.so $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
72e591 |
+@USE_LIBGCJ_BC_TRUE@ rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0; \
|
|
|
72e591 |
@USE_LIBGCJ_BC_TRUE@ $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
|
|
|
72e591 |
@USE_LIBGCJ_BC_TRUE@ -o $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 -lgcj || exit; \
|
|
|
72e591 |
@USE_LIBGCJ_BC_TRUE@ rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
|