|
|
8028fd |
--- libada/Makefile.in.jj 2009-01-14 12:07:35.000000000 +0100
|
|
|
8028fd |
+++ libada/Makefile.in 2009-01-15 14:25:33.000000000 +0100
|
|
|
8028fd |
@@ -66,18 +66,40 @@ libsubdir := $(libdir)/gcc/$(target_nonc
|
|
|
8028fd |
ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
|
|
|
8028fd |
ADA_RTS_SUBDIR=./rts$(subst /,_,$(MULTISUBDIR))
|
|
|
8028fd |
|
|
|
8028fd |
+DEFAULTMULTIFLAGS :=
|
|
|
8028fd |
+ifeq ($(MULTISUBDIR),)
|
|
|
8028fd |
+targ:=$(subst -, ,$(target))
|
|
|
8028fd |
+arch:=$(word 1,$(targ))
|
|
|
8028fd |
+ifeq ($(words $(targ)),2)
|
|
|
8028fd |
+osys:=$(word 2,$(targ))
|
|
|
8028fd |
+else
|
|
|
8028fd |
+osys:=$(word 3,$(targ))
|
|
|
8028fd |
+endif
|
|
|
8028fd |
+ifeq ($(strip $(filter-out i%86 x86_64 powerpc% ppc% s390% sparc% linux%, $(arch) $(osys))),)
|
|
|
8028fd |
+ifeq ($(shell $(CC) $(CFLAGS) -print-multi-os-directory),../lib64)
|
|
|
8028fd |
+DEFAULTMULTIFLAGS := -m64
|
|
|
8028fd |
+else
|
|
|
8028fd |
+ifeq ($(strip $(filter-out s390%, $(arch))),)
|
|
|
8028fd |
+DEFAULTMULTIFLAGS := -m31
|
|
|
8028fd |
+else
|
|
|
8028fd |
+DEFAULTMULTIFLAGS := -m32
|
|
|
8028fd |
+endif
|
|
|
8028fd |
+endif
|
|
|
8028fd |
+endif
|
|
|
8028fd |
+endif
|
|
|
8028fd |
+
|
|
|
8028fd |
# exeext should not be used because it's the *host* exeext. We're building
|
|
|
8028fd |
# a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
|
|
|
8028fd |
# definitions just in case something slips through the safety net provided
|
|
|
8028fd |
# by recursive make invocations in gcc/ada/Makefile.in
|
|
|
8028fd |
LIBADA_FLAGS_TO_PASS = \
|
|
|
8028fd |
"MAKEOVERRIDES=" \
|
|
|
8028fd |
- "LDFLAGS=$(LDFLAGS)" \
|
|
|
8028fd |
+ "LDFLAGS=$(LDFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
8028fd |
"LN_S=$(LN_S)" \
|
|
|
8028fd |
"SHELL=$(SHELL)" \
|
|
|
8028fd |
- "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
|
|
|
8028fd |
- "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
|
|
|
8028fd |
- "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS)" \
|
|
|
8028fd |
+ "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
8028fd |
+ "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
8028fd |
+ "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
8028fd |
"PICFLAG_FOR_TARGET=$(PICFLAG)" \
|
|
|
8028fd |
"THREAD_KIND=$(THREAD_KIND)" \
|
|
|
8028fd |
"TRACE=$(TRACE)" \
|
|
|
8028fd |
@@ -88,7 +110,7 @@ LIBADA_FLAGS_TO_PASS = \
|
|
|
8028fd |
"exeext=.exeext.should.not.be.used " \
|
|
|
8028fd |
'CC=the.host.compiler.should.not.be.needed' \
|
|
|
8028fd |
"GCC_FOR_TARGET=$(CC)" \
|
|
|
8028fd |
- "CFLAGS=$(CFLAGS)"
|
|
|
8028fd |
+ "CFLAGS=$(CFLAGS) $(DEFAULTMULTIFLAGS)"
|
|
|
8028fd |
|
|
|
8028fd |
# Rules to build gnatlib.
|
|
|
8028fd |
.PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared osconstool
|
|
|
8028fd |
--- gcc/ada/sem_util.adb (revision 161677)
|
|
|
8028fd |
+++ gcc/ada/sem_util.adb (working copy)
|
|
|
8028fd |
@@ -5487,7 +5487,7 @@ package body Sem_Util is
|
|
|
8028fd |
Exp : Node_Id;
|
|
|
8028fd |
Assn : Node_Id;
|
|
|
8028fd |
Choice : Node_Id;
|
|
|
8028fd |
- Comp_Type : Entity_Id;
|
|
|
8028fd |
+ Comp_Type : Entity_Id := Empty;
|
|
|
8028fd |
Is_Array_Aggr : Boolean;
|
|
|
8028fd |
|
|
|
8028fd |
begin
|
|
|
8028fd |
--- config-ml.in.jj 2010-06-30 09:50:44.000000000 +0200
|
|
|
8028fd |
+++ config-ml.in 2010-07-02 21:24:17.994211151 +0200
|
|
|
8028fd |
@@ -516,6 +516,8 @@ multi-do:
|
|
|
8028fd |
ADAFLAGS="$(ADAFLAGS) $${flags}" \
|
|
|
8028fd |
prefix="$(prefix)" \
|
|
|
8028fd |
exec_prefix="$(exec_prefix)" \
|
|
|
8028fd |
+ mandir="$(mandir)" \
|
|
|
8028fd |
+ infodir="$(infodir)" \
|
|
|
8028fd |
GCJFLAGS="$(GCJFLAGS) $${flags}" \
|
|
|
8028fd |
GOCFLAGS="$(GOCFLAGS) $${flags}" \
|
|
|
8028fd |
CXXFLAGS="$(CXXFLAGS) $${flags}" \
|
|
|
8028fd |
--- libjava/Makefile.am.jj 2010-07-09 11:17:33.729604090 +0200
|
|
|
8028fd |
+++ libjava/Makefile.am 2010-07-09 13:16:41.894375641 +0200
|
|
|
8028fd |
@@ -710,7 +710,8 @@ if USE_LIBGCJ_BC
|
|
|
8028fd |
## later.
|
|
|
8028fd |
@echo Installing dummy lib libgcj_bc.so.1.0.0; \
|
|
|
8028fd |
rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
8028fd |
- mv $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
8028fd |
+ $(INSTALL) $(INSTALL_STRIP_FLAG) $(here)/.libs/libgcj_bc.so $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
8028fd |
+ rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0; \
|
|
|
8028fd |
$(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
|
|
|
8028fd |
-o $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 -lgcj || exit; \
|
|
|
8028fd |
rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
|
|
|
8028fd |
--- libjava/Makefile.in.jj 2010-07-09 11:17:34.000000000 +0200
|
|
|
8028fd |
+++ libjava/Makefile.in 2010-07-09 13:18:07.542572270 +0200
|
|
|
8028fd |
@@ -12665,7 +12665,8 @@ install-exec-hook: install-binPROGRAMS i
|
|
|
8028fd |
install-libexecsubPROGRAMS
|
|
|
8028fd |
@USE_LIBGCJ_BC_TRUE@ @echo Installing dummy lib libgcj_bc.so.1.0.0; \
|
|
|
8028fd |
@USE_LIBGCJ_BC_TRUE@ rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
8028fd |
-@USE_LIBGCJ_BC_TRUE@ mv $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
8028fd |
+@USE_LIBGCJ_BC_TRUE@ $(INSTALL) $(INSTALL_STRIP_FLAG) $(here)/.libs/libgcj_bc.so $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
|
|
|
8028fd |
+@USE_LIBGCJ_BC_TRUE@ rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0; \
|
|
|
8028fd |
@USE_LIBGCJ_BC_TRUE@ $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
|
|
|
8028fd |
@USE_LIBGCJ_BC_TRUE@ -o $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 -lgcj || exit; \
|
|
|
8028fd |
@USE_LIBGCJ_BC_TRUE@ rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
|
|
|
8028fd |
--- libcpp/macro.c.jj 2015-01-14 11:01:34.000000000 +0100
|
|
|
8028fd |
+++ libcpp/macro.c 2015-01-14 14:22:19.286949884 +0100
|
|
|
8028fd |
@@ -2947,8 +2947,6 @@ create_iso_definition (cpp_reader *pfile
|
|
|
8028fd |
cpp_token *token;
|
|
|
8028fd |
const cpp_token *ctoken;
|
|
|
8028fd |
bool following_paste_op = false;
|
|
|
8028fd |
- const char *paste_op_error_msg =
|
|
|
8028fd |
- N_("'##' cannot appear at either end of a macro expansion");
|
|
|
8028fd |
unsigned int num_extra_tokens = 0;
|
|
|
8028fd |
|
|
|
8028fd |
/* Get the first token of the expansion (or the '(' of a
|
|
|
8028fd |
@@ -3059,7 +3057,8 @@ create_iso_definition (cpp_reader *pfile
|
|
|
8028fd |
function-like macros, but not at the end. */
|
|
|
8028fd |
if (following_paste_op)
|
|
|
8028fd |
{
|
|
|
8028fd |
- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
|
|
|
8028fd |
+ cpp_error (pfile, CPP_DL_ERROR,
|
|
|
8028fd |
+ "'##' cannot appear at either end of a macro expansion");
|
|
|
8028fd |
return false;
|
|
|
8028fd |
}
|
|
|
8028fd |
break;
|
|
|
8028fd |
@@ -3072,7 +3071,8 @@ create_iso_definition (cpp_reader *pfile
|
|
|
8028fd |
function-like macros, but not at the beginning. */
|
|
|
8028fd |
if (macro->count == 1)
|
|
|
8028fd |
{
|
|
|
8028fd |
- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
|
|
|
8028fd |
+ cpp_error (pfile, CPP_DL_ERROR,
|
|
|
8028fd |
+ "'##' cannot appear at either end of a macro expansion");
|
|
|
8028fd |
return false;
|
|
|
8028fd |
}
|
|
|
8028fd |
|
|
|
8028fd |
--- libcpp/expr.c.jj 2015-01-14 11:01:34.000000000 +0100
|
|
|
8028fd |
+++ libcpp/expr.c 2015-01-14 14:35:52.851002344 +0100
|
|
|
8028fd |
@@ -672,16 +672,17 @@ cpp_classify_number (cpp_reader *pfile,
|
|
|
8028fd |
if ((result & CPP_N_WIDTH) == CPP_N_LARGE
|
|
|
8028fd |
&& CPP_OPTION (pfile, cpp_warn_long_long))
|
|
|
8028fd |
{
|
|
|
8028fd |
- const char *message = CPP_OPTION (pfile, cplusplus)
|
|
|
8028fd |
- ? N_("use of C++11 long long integer constant")
|
|
|
8028fd |
- : N_("use of C99 long long integer constant");
|
|
|
8028fd |
-
|
|
|
8028fd |
if (CPP_OPTION (pfile, c99))
|
|
|
8028fd |
cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location,
|
|
|
8028fd |
- 0, message);
|
|
|
8028fd |
+ 0, CPP_OPTION (pfile, cplusplus)
|
|
|
8028fd |
+ ? N_("use of C++11 long long integer constant")
|
|
|
8028fd |
+ : N_("use of C99 long long integer constant"));
|
|
|
8028fd |
else
|
|
|
8028fd |
cpp_pedwarning_with_line (pfile, CPP_W_LONG_LONG,
|
|
|
8028fd |
- virtual_location, 0, message);
|
|
|
8028fd |
+ virtual_location, 0,
|
|
|
8028fd |
+ CPP_OPTION (pfile, cplusplus)
|
|
|
8028fd |
+ ? N_("use of C++11 long long integer constant")
|
|
|
8028fd |
+ : N_("use of C99 long long integer constant"));
|
|
|
8028fd |
}
|
|
|
8028fd |
|
|
|
8028fd |
result |= CPP_N_INTEGER;
|