|
|
0b9bbe |
--- libada/Makefile.in.jj 2019-01-09 13:01:18.015608205 +0100
|
|
|
0b9bbe |
+++ libada/Makefile.in 2019-01-11 18:16:23.441726931 +0100
|
|
|
0b9bbe |
@@ -71,18 +71,40 @@ version := $(shell @get_gcc_base_ver@ $(
|
|
|
0b9bbe |
libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
|
|
|
0b9bbe |
ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
|
|
|
0b9bbe |
|
|
|
0b9bbe |
+DEFAULTMULTIFLAGS :=
|
|
|
0b9bbe |
+ifeq ($(MULTISUBDIR),)
|
|
|
0b9bbe |
+targ:=$(subst -, ,$(target))
|
|
|
0b9bbe |
+arch:=$(word 1,$(targ))
|
|
|
0b9bbe |
+ifeq ($(words $(targ)),2)
|
|
|
0b9bbe |
+osys:=$(word 2,$(targ))
|
|
|
0b9bbe |
+else
|
|
|
0b9bbe |
+osys:=$(word 3,$(targ))
|
|
|
0b9bbe |
+endif
|
|
|
0b9bbe |
+ifeq ($(strip $(filter-out i%86 x86_64 powerpc% ppc% s390% sparc% linux%, $(arch) $(osys))),)
|
|
|
0b9bbe |
+ifeq ($(shell $(CC) $(CFLAGS) -print-multi-os-directory),../lib64)
|
|
|
0b9bbe |
+DEFAULTMULTIFLAGS := -m64
|
|
|
0b9bbe |
+else
|
|
|
0b9bbe |
+ifeq ($(strip $(filter-out s390%, $(arch))),)
|
|
|
0b9bbe |
+DEFAULTMULTIFLAGS := -m31
|
|
|
0b9bbe |
+else
|
|
|
0b9bbe |
+DEFAULTMULTIFLAGS := -m32
|
|
|
0b9bbe |
+endif
|
|
|
0b9bbe |
+endif
|
|
|
0b9bbe |
+endif
|
|
|
0b9bbe |
+endif
|
|
|
0b9bbe |
+
|
|
|
0b9bbe |
# exeext should not be used because it's the *host* exeext. We're building
|
|
|
0b9bbe |
# a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
|
|
|
0b9bbe |
# definitions just in case something slips through the safety net provided
|
|
|
0b9bbe |
# by recursive make invocations in gcc/ada/Makefile.in
|
|
|
0b9bbe |
LIBADA_FLAGS_TO_PASS = \
|
|
|
0b9bbe |
"MAKEOVERRIDES=" \
|
|
|
0b9bbe |
- "LDFLAGS=$(LDFLAGS)" \
|
|
|
0b9bbe |
+ "LDFLAGS=$(LDFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
0b9bbe |
"LN_S=$(LN_S)" \
|
|
|
0b9bbe |
"SHELL=$(SHELL)" \
|
|
|
0b9bbe |
- "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
|
|
|
0b9bbe |
- "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
|
|
|
0b9bbe |
- "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS)" \
|
|
|
0b9bbe |
+ "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
0b9bbe |
+ "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
0b9bbe |
+ "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
0b9bbe |
"PICFLAG_FOR_TARGET=$(PICFLAG)" \
|
|
|
0b9bbe |
"THREAD_KIND=$(THREAD_KIND)" \
|
|
|
0b9bbe |
"TRACE=$(TRACE)" \
|
|
|
0b9bbe |
@@ -93,7 +115,7 @@ LIBADA_FLAGS_TO_PASS = \
|
|
|
0b9bbe |
"exeext=.exeext.should.not.be.used " \
|
|
|
0b9bbe |
'CC=the.host.compiler.should.not.be.needed' \
|
|
|
0b9bbe |
"GCC_FOR_TARGET=$(CC)" \
|
|
|
0b9bbe |
- "CFLAGS=$(CFLAGS)"
|
|
|
0b9bbe |
+ "CFLAGS=$(CFLAGS) $(DEFAULTMULTIFLAGS)"
|
|
|
0b9bbe |
|
|
|
0b9bbe |
.PHONY: libada gnatlib gnatlib-shared gnatlib-sjlj gnatlib-zcx osconstool
|
|
|
0b9bbe |
|
|
|
0b9bbe |
--- config-ml.in.jj 2019-01-09 12:50:16.646501448 +0100
|
|
|
0b9bbe |
+++ config-ml.in 2019-01-11 18:16:23.442726914 +0100
|
|
|
0b9bbe |
@@ -511,6 +511,8 @@ multi-do:
|
|
|
0b9bbe |
ADAFLAGS="$(ADAFLAGS) $${flags}" \
|
|
|
0b9bbe |
prefix="$(prefix)" \
|
|
|
0b9bbe |
exec_prefix="$(exec_prefix)" \
|
|
|
0b9bbe |
+ mandir="$(mandir)" \
|
|
|
0b9bbe |
+ infodir="$(infodir)" \
|
|
|
0b9bbe |
GOCFLAGS="$(GOCFLAGS) $${flags}" \
|
|
|
0b9bbe |
GDCFLAGS="$(GDCFLAGS) $${flags}" \
|
|
|
0b9bbe |
CXXFLAGS="$(CXXFLAGS) $${flags}" \
|
|
|
0b9bbe |
--- libcpp/macro.cc.jj 2019-01-09 13:01:21.420552123 +0100
|
|
|
0b9bbe |
+++ libcpp/macro.cc 2019-01-11 18:18:17.736876285 +0100
|
|
|
0b9bbe |
@@ -3256,8 +3256,6 @@ static cpp_macro *
|
|
|
0b9bbe |
create_iso_definition (cpp_reader *pfile)
|
|
|
0b9bbe |
{
|
|
|
0b9bbe |
bool following_paste_op = false;
|
|
|
0b9bbe |
- const char *paste_op_error_msg =
|
|
|
0b9bbe |
- N_("'##' cannot appear at either end of a macro expansion");
|
|
|
0b9bbe |
unsigned int num_extra_tokens = 0;
|
|
|
0b9bbe |
unsigned nparms = 0;
|
|
|
0b9bbe |
cpp_hashnode **params = NULL;
|
|
|
0b9bbe |
@@ -3382,7 +3380,9 @@ create_iso_definition (cpp_reader *pfile
|
|
|
0b9bbe |
function-like macros, but not at the end. */
|
|
|
0b9bbe |
if (following_paste_op)
|
|
|
0b9bbe |
{
|
|
|
0b9bbe |
- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
|
|
|
0b9bbe |
+ cpp_error (pfile, CPP_DL_ERROR,
|
|
|
0b9bbe |
+ "'##' cannot appear at either end of a macro "
|
|
|
0b9bbe |
+ "expansion");
|
|
|
0b9bbe |
goto out;
|
|
|
0b9bbe |
}
|
|
|
0b9bbe |
if (!vaopt_tracker.completed ())
|
|
|
0b9bbe |
@@ -3397,7 +3397,9 @@ create_iso_definition (cpp_reader *pfile
|
|
|
0b9bbe |
function-like macros, but not at the beginning. */
|
|
|
0b9bbe |
if (macro->count == 1)
|
|
|
0b9bbe |
{
|
|
|
0b9bbe |
- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
|
|
|
0b9bbe |
+ cpp_error (pfile, CPP_DL_ERROR,
|
|
|
0b9bbe |
+ "'##' cannot appear at either end of a macro "
|
|
|
0b9bbe |
+ "expansion");
|
|
|
0b9bbe |
goto out;
|
|
|
0b9bbe |
}
|
|
|
0b9bbe |
|
|
|
0b9bbe |
--- libcpp/expr.cc.jj 2019-01-09 13:01:22.415535734 +0100
|
|
|
0b9bbe |
+++ libcpp/expr.cc 2019-01-11 18:16:23.444726882 +0100
|
|
|
0b9bbe |
@@ -803,16 +803,17 @@ cpp_classify_number (cpp_reader *pfile,
|
|
|
0b9bbe |
if ((result & CPP_N_WIDTH) == CPP_N_LARGE
|
|
|
0b9bbe |
&& CPP_OPTION (pfile, cpp_warn_long_long))
|
|
|
0b9bbe |
{
|
|
|
0b9bbe |
- const char *message = CPP_OPTION (pfile, cplusplus)
|
|
|
0b9bbe |
- ? N_("use of C++11 long long integer constant")
|
|
|
0b9bbe |
- : N_("use of C99 long long integer constant");
|
|
|
0b9bbe |
-
|
|
|
0b9bbe |
if (CPP_OPTION (pfile, c99))
|
|
|
0b9bbe |
cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location,
|
|
|
0b9bbe |
- 0, message);
|
|
|
0b9bbe |
+ 0, CPP_OPTION (pfile, cplusplus)
|
|
|
0b9bbe |
+ ? N_("use of C++11 long long integer constant")
|
|
|
0b9bbe |
+ : N_("use of C99 long long integer constant"));
|
|
|
0b9bbe |
else
|
|
|
0b9bbe |
cpp_pedwarning_with_line (pfile, CPP_W_LONG_LONG,
|
|
|
0b9bbe |
- virtual_location, 0, message);
|
|
|
0b9bbe |
+ virtual_location, 0,
|
|
|
0b9bbe |
+ CPP_OPTION (pfile, cplusplus)
|
|
|
0b9bbe |
+ ? N_("use of C++11 long long integer constant")
|
|
|
0b9bbe |
+ : N_("use of C99 long long integer constant"));
|
|
|
0b9bbe |
}
|
|
|
0b9bbe |
|
|
|
0b9bbe |
if ((result & CPP_N_SIZE_T) == CPP_N_SIZE_T
|