Blame SOURCES/gcc5-hack.patch

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