[PATCH, committed] linux64.h and rs6000.c updates
David Edelsohn
dje@watson.ibm.com
Wed Sep 22 05:59:00 GMT 2004
POWER is more appropriate as the default 64-bit processor for GCC
4.0 and dep_insn parameter now is used in rs6000_adjust_cost function.
David
* config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
* config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
Index: linux64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/linux64.h,v
retrieving revision 1.67
diff -c -p -r1.67 linux64.h
*** linux64.h 14 Sep 2004 04:05:35 -0000 1.67
--- linux64.h 22 Sep 2004 04:03:22 -0000
*************** extern int dot_symbols;
*** 58,64 ****
#endif
#undef PROCESSOR_DEFAULT64
! #define PROCESSOR_DEFAULT64 PROCESSOR_PPC630
#undef TARGET_RELOCATABLE
#define TARGET_RELOCATABLE (!TARGET_64BIT && (target_flags & MASK_RELOCATABLE))
--- 58,64 ----
#endif
#undef PROCESSOR_DEFAULT64
! #define PROCESSOR_DEFAULT64 PROCESSOR_POWER4
#undef TARGET_RELOCATABLE
#define TARGET_RELOCATABLE (!TARGET_64BIT && (target_flags & MASK_RELOCATABLE))
Index: rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.712
diff -c -p -r1.712 rs6000.c
*** rs6000.c 18 Sep 2004 19:19:39 -0000 1.712
--- rs6000.c 22 Sep 2004 04:03:22 -0000
*************** rs6000_variable_issue (FILE *stream ATTR
*** 15189,15196 ****
a dependency LINK or INSN on DEP_INSN. COST is the current cost. */
static int
! rs6000_adjust_cost (rtx insn, rtx link, rtx dep_insn ATTRIBUTE_UNUSED,
! int cost)
{
if (! recog_memoized (insn))
return 0;
--- 15189,15195 ----
a dependency LINK or INSN on DEP_INSN. COST is the current cost. */
static int
! rs6000_adjust_cost (rtx insn, rtx link, rtx dep_insn, int cost)
{
if (! recog_memoized (insn))
return 0;
More information about the Gcc-patches
mailing list