Blame SOURCES/gcc6-hack.patch

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