Blame SOURCES/gcc7-hack.patch

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