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]

Re: Re-enable -Wno-error on reload1.o


On Tue, Jun 12, 2007 at 12:47:36PM -0400, Diego Novillo wrote:
> On 6/12/07 12:45 PM, H. J. Lu wrote:
> 
> > Would you mind fixing it?
> 
> Don't have an ia64 to test things on.  These warnings must've been here
> for a while and it should just be a matter of removing those two
> variable declarations.

I will check it in as an obvious fix.


H.J.
----
2007-06-12  H.J. Lu  <hongjiu.lu@intel.com>

	* reload1.c (find_reg): Declare body and dest_reg only if
	SECONDARY_MEMORY_NEEDED is defined.

--- gcc/reload1.c.error	2007-06-12 06:48:39.000000000 -0700
+++ gcc/reload1.c	2007-06-12 09:46:47.000000000 -0700
@@ -1781,10 +1781,10 @@ find_reg (struct insn_chain *chain, int 
   HARD_REG_SET not_usable;
   HARD_REG_SET used_by_other_reload;
   reg_set_iterator rsi;
+#ifdef SECONDARY_MEMORY_NEEDED
   rtx body = PATTERN (chain->insn);
   unsigned int dest_reg = FIRST_PSEUDO_REGISTER;
 
-#ifdef SECONDARY_MEMORY_NEEDED
   if (GET_CODE (body) == SET)
     {
       rtx dest = SET_DEST (body);


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