This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix sdbout.c bootstrap breakage [was Re: For backend maintainers: changes for C++ compatibility]


Ian Lance Taylor wrote:

> Adding these warnings to -Wc++-compat may break bootstrap for other
> platforms,  [ ... ] These warnings are normally
> straightforward to fix.  

  Indeed, I think the arguments to eliminate_regs in sdbout.c probably won't
be wrapped in mems, but I didn't quite want to say this was obvious because
maybe there's something I didn't consider with passed-in-memory args.  Is this
correct?  It certainly lets my bootstrap get past stage 2.

gcc/ChangeLog

	* sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
	(sdbout_parms):  Likewise.

    cheers,
      DaveK


Index: gcc/sdbout.c
===================================================================
--- gcc/sdbout.c	(revision 146515)
+++ gcc/sdbout.c	(working copy)
@@ -771,7 +771,7 @@
 	return;
 
       SET_DECL_RTL (decl,
-		    eliminate_regs (DECL_RTL (decl), 0, NULL_RTX));
+		    eliminate_regs (DECL_RTL (decl), VOIDmode, NULL_RTX));
 #ifdef LEAF_REG_REMAP
       if (current_function_uses_only_leaf_regs)
 	leaf_renumber_regs_insn (DECL_RTL (decl));
@@ -1271,9 +1271,9 @@
 	/* Perform any necessary register eliminations on the parameter's rtl,
 	   so that the debugging output will be accurate.  */
 	DECL_INCOMING_RTL (parms)
-	  = eliminate_regs (DECL_INCOMING_RTL (parms), 0, NULL_RTX);
+	  = eliminate_regs (DECL_INCOMING_RTL (parms), VOIDmode, NULL_RTX);
 	SET_DECL_RTL (parms,
-		      eliminate_regs (DECL_RTL (parms), 0, NULL_RTX));
+		      eliminate_regs (DECL_RTL (parms), VOIDmode, NULL_RTX));
 
 	if (PARM_PASSED_IN_MEMORY (parms))
 	  {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]