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]

micro-patch for rs6000.c


Would you believe Apple had this as a local patch?

Bootstrapped & tested on powerpc-darwin.

-- 
- Geoffrey Keating <geoffk@apple.com>

====================
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.1701
diff -u -p -u -p -r2.1701 ChangeLog
--- ChangeLog	8 Nov 2003 02:17:39 -0000	2.1701
+++ ChangeLog	8 Nov 2003 02:19:58 -0000
@@ -1,5 +1,8 @@
 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
 
+	* config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
+	redundant parens.
+
 	* cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
 	(find_file_in_dir): Likewise.
 	(_cpp_find_file): Print message if no header file is found
Index: config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.545
diff -u -p -u -p -r1.545 rs6000.c
--- config/rs6000/rs6000.c	6 Nov 2003 21:52:31 -0000	1.545
+++ config/rs6000/rs6000.c	8 Nov 2003 02:19:59 -0000
@@ -2621,8 +2621,8 @@ rs6000_legitimize_address (rtx x, rtx ol
 	       || ((TARGET_HARD_FLOAT && TARGET_FPRS) && mode == DFmode)))
     {
       rtx reg = gen_reg_rtx (Pmode);
-      emit_insn (gen_elf_high (reg, (x)));
-      return gen_rtx_LO_SUM (Pmode, reg, (x));
+      emit_insn (gen_elf_high (reg, x));
+      return gen_rtx_LO_SUM (Pmode, reg, x);
     }
   else if (TARGET_MACHO && TARGET_32BIT && TARGET_NO_TOC
 	   && ! flag_pic
@@ -2637,8 +2637,8 @@ rs6000_legitimize_address (rtx x, rtx ol
 	   && mode != TImode)
     {
       rtx reg = gen_reg_rtx (Pmode);
-      emit_insn (gen_macho_high (reg, (x)));
-      return gen_rtx_LO_SUM (Pmode, reg, (x));
+      emit_insn (gen_macho_high (reg, x));
+      return gen_rtx_LO_SUM (Pmode, reg, x);
     }
   else if (TARGET_TOC 
 	   && constant_pool_expr_p (x)
====================


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