[pushed] Darwin : Fix whitespace and delete unused code (NFC).

Message ID 7A764E53-ED66-4457-97F6-ABC370BC1384@sandoe.co.uk
State New
Headers show
Series
  • [pushed] Darwin : Fix whitespace and delete unused code (NFC).
Related show

Commit Message

Iain Sandoe April 3, 2021, 8:30 p.m.
Hi,

tested on x86_64-darwin.
pushed to master,
thanks
Iain

------

Fix some incorrect indenting and remove two cases where we had
code '#if 0'-d out.

gcc/ChangeLog:

	* config/darwin.c (machopic_legitimize_pic_address): Fix
	whitespace, remove unused code.
---
 gcc/config/darwin.c | 34 ++++++++++++++--------------------
 1 file changed, 14 insertions(+), 20 deletions(-)

-- 
2.24.1

Patch

diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index e2e60bbf1b2..c1086a04700 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -906,9 +906,6 @@  machopic_legitimize_pic_address (rtx orig, machine_mode mode, rtx reg)
 		  emit_move_insn (reg, pic);
 		  pic = reg;
 		}
-#if 0
-	      emit_use (gen_rtx_REG (Pmode, PIC_OFFSET_TABLE_REGNUM));
-#endif
 
 	      if (lra_in_progress)
 		df_set_regs_ever_live (REGNO (pic), true);
@@ -977,9 +974,6 @@  machopic_legitimize_pic_address (rtx orig, machine_mode mode, rtx reg)
 		      emit_move_insn (reg, pic);
 		      pic = reg;
 		    }
-#if 0
-		  emit_use (pic_offset_table_rtx);
-#endif
 		  if (lra_in_progress)
 		    df_set_regs_ever_live (REGNO (pic), true);
 		  pic_ref = gen_rtx_PLUS (Pmode,
@@ -990,21 +984,21 @@  machopic_legitimize_pic_address (rtx orig, machine_mode mode, rtx reg)
 	}
 
       if (GET_CODE (pic_ref) != REG)
-        {
-          if (reg != 0)
-            {
-              emit_move_insn (reg, pic_ref);
-              return reg;
-            }
-          else
-            {
-              return force_reg (mode, pic_ref);
-            }
-        }
+	{
+	  if (reg != 0)
+	    {
+	      emit_move_insn (reg, pic_ref);
+	      return reg;
+	    }
+	  else
+	    {
+	      return force_reg (mode, pic_ref);
+	    }
+	}
       else
-        {
-          return pic_ref;
-        }
+	{
+	  return pic_ref;
+	}
     }
   else if (GET_CODE (orig) == PLUS
 	   && (GET_CODE (XEXP (orig, 0)) == MEM