|
|
5cc31e |
--- libada/Makefile.in.jj 2009-01-14 12:07:35.000000000 +0100
|
|
|
5cc31e |
+++ libada/Makefile.in 2009-01-15 14:25:33.000000000 +0100
|
|
|
5cc31e |
@@ -66,18 +66,40 @@ libsubdir := $(libdir)/gcc/$(target_nonc
|
|
|
5cc31e |
ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
|
|
|
5cc31e |
ADA_RTS_SUBDIR=./rts$(subst /,_,$(MULTISUBDIR))
|
|
|
5cc31e |
|
|
|
5cc31e |
+DEFAULTMULTIFLAGS :=
|
|
|
5cc31e |
+ifeq ($(MULTISUBDIR),)
|
|
|
5cc31e |
+targ:=$(subst -, ,$(target))
|
|
|
5cc31e |
+arch:=$(word 1,$(targ))
|
|
|
5cc31e |
+ifeq ($(words $(targ)),2)
|
|
|
5cc31e |
+osys:=$(word 2,$(targ))
|
|
|
5cc31e |
+else
|
|
|
5cc31e |
+osys:=$(word 3,$(targ))
|
|
|
5cc31e |
+endif
|
|
|
5cc31e |
+ifeq ($(strip $(filter-out i%86 x86_64 powerpc% ppc% s390% sparc% linux%, $(arch) $(osys))),)
|
|
|
5cc31e |
+ifeq ($(shell $(CC) $(CFLAGS) -print-multi-os-directory),../lib64)
|
|
|
5cc31e |
+DEFAULTMULTIFLAGS := -m64
|
|
|
5cc31e |
+else
|
|
|
5cc31e |
+ifeq ($(strip $(filter-out s390%, $(arch))),)
|
|
|
5cc31e |
+DEFAULTMULTIFLAGS := -m31
|
|
|
5cc31e |
+else
|
|
|
5cc31e |
+DEFAULTMULTIFLAGS := -m32
|
|
|
5cc31e |
+endif
|
|
|
5cc31e |
+endif
|
|
|
5cc31e |
+endif
|
|
|
5cc31e |
+endif
|
|
|
5cc31e |
+
|
|
|
5cc31e |
# exeext should not be used because it's the *host* exeext. We're building
|
|
|
5cc31e |
# a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
|
|
|
5cc31e |
# definitions just in case something slips through the safety net provided
|
|
|
5cc31e |
# by recursive make invocations in gcc/ada/Makefile.in
|
|
|
5cc31e |
LIBADA_FLAGS_TO_PASS = \
|
|
|
5cc31e |
"MAKEOVERRIDES=" \
|
|
|
5cc31e |
- "LDFLAGS=$(LDFLAGS)" \
|
|
|
5cc31e |
+ "LDFLAGS=$(LDFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
5cc31e |
"LN_S=$(LN_S)" \
|
|
|
5cc31e |
"SHELL=$(SHELL)" \
|
|
|
5cc31e |
- "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
|
|
|
5cc31e |
- "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
|
|
|
5cc31e |
- "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS)" \
|
|
|
5cc31e |
+ "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
5cc31e |
+ "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
5cc31e |
+ "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \
|
|
|
5cc31e |
"PICFLAG_FOR_TARGET=$(PICFLAG)" \
|
|
|
5cc31e |
"THREAD_KIND=$(THREAD_KIND)" \
|
|
|
5cc31e |
"TRACE=$(TRACE)" \
|
|
|
5cc31e |
@@ -88,7 +110,7 @@ LIBADA_FLAGS_TO_PASS = \
|
|
|
5cc31e |
"exeext=.exeext.should.not.be.used " \
|
|
|
5cc31e |
'CC=the.host.compiler.should.not.be.needed' \
|
|
|
5cc31e |
"GCC_FOR_TARGET=$(CC)" \
|
|
|
5cc31e |
- "CFLAGS=$(CFLAGS)"
|
|
|
5cc31e |
+ "CFLAGS=$(CFLAGS) $(DEFAULTMULTIFLAGS)"
|
|
|
5cc31e |
|
|
|
5cc31e |
# Rules to build gnatlib.
|
|
|
5cc31e |
.PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared osconstool
|
|
|
5cc31e |
--- config-ml.in.jj 2010-06-30 09:50:44.000000000 +0200
|
|
|
5cc31e |
+++ config-ml.in 2010-07-02 21:24:17.994211151 +0200
|
|
|
5cc31e |
@@ -511,6 +511,8 @@ multi-do:
|
|
|
5cc31e |
ADAFLAGS="$(ADAFLAGS) $${flags}" \
|
|
|
5cc31e |
prefix="$(prefix)" \
|
|
|
5cc31e |
exec_prefix="$(exec_prefix)" \
|
|
|
5cc31e |
+ mandir="$(mandir)" \
|
|
|
5cc31e |
+ infodir="$(infodir)" \
|
|
|
5cc31e |
GOCFLAGS="$(GOCFLAGS) $${flags}" \
|
|
|
5cc31e |
CXXFLAGS="$(CXXFLAGS) $${flags}" \
|
|
|
5cc31e |
LIBCFLAGS="$(LIBCFLAGS) $${flags}" \
|
|
|
5cc31e |
--- libcpp/macro.c.jj 2015-01-14 11:01:34.000000000 +0100
|
|
|
5cc31e |
+++ libcpp/macro.c 2015-01-14 14:22:19.286949884 +0100
|
|
|
5cc31e |
@@ -2947,8 +2947,6 @@ create_iso_definition (cpp_reader *pfile
|
|
|
5cc31e |
cpp_token *token;
|
|
|
5cc31e |
const cpp_token *ctoken;
|
|
|
5cc31e |
bool following_paste_op = false;
|
|
|
5cc31e |
- const char *paste_op_error_msg =
|
|
|
5cc31e |
- N_("'##' cannot appear at either end of a macro expansion");
|
|
|
5cc31e |
unsigned int num_extra_tokens = 0;
|
|
|
5cc31e |
|
|
|
5cc31e |
/* Get the first token of the expansion (or the '(' of a
|
|
|
5cc31e |
@@ -3059,7 +3057,8 @@ create_iso_definition (cpp_reader *pfile
|
|
|
5cc31e |
function-like macros, but not at the end. */
|
|
|
5cc31e |
if (following_paste_op)
|
|
|
5cc31e |
{
|
|
|
5cc31e |
- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
|
|
|
5cc31e |
+ cpp_error (pfile, CPP_DL_ERROR,
|
|
|
5cc31e |
+ "'##' cannot appear at either end of a macro expansion");
|
|
|
5cc31e |
return false;
|
|
|
5cc31e |
}
|
|
|
5cc31e |
break;
|
|
|
5cc31e |
@@ -3072,7 +3071,8 @@ create_iso_definition (cpp_reader *pfile
|
|
|
5cc31e |
function-like macros, but not at the beginning. */
|
|
|
5cc31e |
if (macro->count == 1)
|
|
|
5cc31e |
{
|
|
|
5cc31e |
- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
|
|
|
5cc31e |
+ cpp_error (pfile, CPP_DL_ERROR,
|
|
|
5cc31e |
+ "'##' cannot appear at either end of a macro expansion");
|
|
|
5cc31e |
return false;
|
|
|
5cc31e |
}
|
|
|
5cc31e |
|
|
|
5cc31e |
--- libcpp/expr.c.jj 2015-01-14 11:01:34.000000000 +0100
|
|
|
5cc31e |
+++ libcpp/expr.c 2015-01-14 14:35:52.851002344 +0100
|
|
|
5cc31e |
@@ -672,16 +672,17 @@ cpp_classify_number (cpp_reader *pfile,
|
|
|
5cc31e |
if ((result & CPP_N_WIDTH) == CPP_N_LARGE
|
|
|
5cc31e |
&& CPP_OPTION (pfile, cpp_warn_long_long))
|
|
|
5cc31e |
{
|
|
|
5cc31e |
- const char *message = CPP_OPTION (pfile, cplusplus)
|
|
|
5cc31e |
- ? N_("use of C++11 long long integer constant")
|
|
|
5cc31e |
- : N_("use of C99 long long integer constant");
|
|
|
5cc31e |
-
|
|
|
5cc31e |
if (CPP_OPTION (pfile, c99))
|
|
|
5cc31e |
cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location,
|
|
|
5cc31e |
- 0, message);
|
|
|
5cc31e |
+ 0, CPP_OPTION (pfile, cplusplus)
|
|
|
5cc31e |
+ ? N_("use of C++11 long long integer constant")
|
|
|
5cc31e |
+ : N_("use of C99 long long integer constant"));
|
|
|
5cc31e |
else
|
|
|
5cc31e |
cpp_pedwarning_with_line (pfile, CPP_W_LONG_LONG,
|
|
|
5cc31e |
- virtual_location, 0, message);
|
|
|
5cc31e |
+ virtual_location, 0,
|
|
|
5cc31e |
+ CPP_OPTION (pfile, cplusplus)
|
|
|
5cc31e |
+ ? N_("use of C++11 long long integer constant")
|
|
|
5cc31e |
+ : N_("use of C99 long long integer constant"));
|
|
|
5cc31e |
}
|
|
|
5cc31e |
|
|
|
5cc31e |
result |= CPP_N_INTEGER;
|