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: Darwin-specific 1-liners (2)


Set BRANCH_COST to 1, which better reflects the hardware docs
   and is an empirical improvement.
Set STACK_BOUNDARY to 128, to support Altivec.
Set MAX_LONG_TYPE_SIZE to 32, for compile time speed and
   space improvement.
Bootstrapped & tested on Darwin.

2001-12-05  Dale Johannesen   <dalej@apple.com>

         * config/rs6000/darwin.h:  set BRANCH_COST to 1,
           STACK_BOUNDARY to 128, MAX_LONG_TYPE_SIZE to 32

===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/darwin.h,v
retrieving revision 1.13
diff -u -d -b -w -c -3 -p -r1.13 darwin.h
*** darwin.h    2001/11/20 19:43:27     1.13
--- darwin.h    2001/12/05 19:12:33
*************** Boston, MA 02111-1307, USA.  */
*** 216,221 ****
--- 222,241 ----
      && DECL_MODE (TYPE_FIELDS (STRUCT)) == DFmode      \
      ? MAX (MAX ((COMPUTED), (SPECIFIED)), 64)          \
      : MAX ((COMPUTED), (SPECIFIED)))
+
+ /* Consistent with the OS (mainly for Altivec) */
+ #undef STACK_BOUNDARY
+ #define STACK_BOUNDARY 128
+
   /* XXX: Darwin supports neither .quad, or .llong, but it also doesn't
      support 64 bit powerpc either, so this just keeps things happy.  */
   #define DOUBLE_INT_ASM_OP "\t.quad\t"
+
+ /* Better code is generated by saying conditional branches take 1 tick. 
  */
+ #undef BRANCH_COST
+ #define BRANCH_COST   1
+
+ /* Get HOST_WIDE_INT and CONST_INT to be 32 bits, for compile time
+    space/speed. */
+ #undef MAX_LONG_TYPE_SIZE
+ #define MAX_LONG_TYPE_SIZE 32


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