]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
authorNeil Booth <neil@daikokuya.co.uk>
Sun, 21 Jul 2002 22:01:58 +0000 (22:01 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 21 Jul 2002 22:01:58 +0000 (22:01 +0000)
* gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
* function.c (SYMBOL__MAIN): Remove definition.
* global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
* predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
* profile.c (GCOV_INDEX_TO_BB): Remove.
* sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
* simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.

From-SVN: r55631

gcc/ChangeLog
gcc/function.c
gcc/gengenrtl.c
gcc/global.c
gcc/predict.c
gcc/profile.c
gcc/sched-rgn.c
gcc/simplify-rtx.c

index 29dad05254c68e8a78f5a775c50543e3d71a4a52..90096f63ddf0aba303ef5267344fb9b82d652836 100644 (file)
@@ -1,3 +1,13 @@
+2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
+
+       * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
+       * function.c (SYMBOL__MAIN): Remove definition.
+       * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
+       * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.   
+       * profile.c (GCOV_INDEX_TO_BB): Remove.
+       * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
+       * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
+
 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
 
        * c-lex.c (GET_ENVIRONMENT): Remove.
index cd25804fb3018be7bd12ed741d69e123005ce451..2a59d59459b2e23ba56e98d7cf85f52064b7dd26 100644 (file)
@@ -75,7 +75,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
    must define both, or neither.  */
 #ifndef NAME__MAIN
 #define NAME__MAIN "__main"
-#define SYMBOL__MAIN __main
 #endif
 
 /* Round a value to the lowest integer less than it that is a multiple of
index 126be8ead28cbe6f592540cc69bd00c020b15894..6bfd0ff77ee9e27e00970cb5fbbf6d3f82097f30 100644 (file)
@@ -337,10 +337,6 @@ gencode ()
   puts ("#include \"rtl.h\"");
   puts ("#include \"ggc.h\"\n");
   puts ("extern struct obstack *rtl_obstack;\n");
-  puts ("#define obstack_alloc_rtx(n)                                  \\");
-  puts ("    ((rtx) obstack_alloc (rtl_obstack,                                \\");
-  puts ("                        sizeof (struct rtx_def)               \\");
-  puts ("                        + ((n) - 1) * sizeof (rtunion)))\n");
 
   for (fmt = formats; *fmt != 0; fmt++)
     gendef (*fmt);
index aaa789607c09a32901c614681a9b910acc871481..50a1648c1f83715eaee5daedb9373047b0d69a89 100644 (file)
@@ -171,10 +171,6 @@ static int allocno_row_words;
  (conflicts[(I) * allocno_row_words + (unsigned) (J) / INT_BITS]       \
   & ((INT_TYPE) 1 << ((unsigned) (J) % INT_BITS)))
 
-#define SET_CONFLICT(I, J) \
- (conflicts[(I) * allocno_row_words + (unsigned) (J) / INT_BITS]       \
-  |= ((INT_TYPE) 1 << ((unsigned) (J) % INT_BITS)))
-
 /* For any allocno set in ALLOCNO_SET, set ALLOCNO to that allocno,
    and execute CODE.  */
 #define EXECUTE_IF_SET_IN_ALLOCNO_SET(ALLOCNO_SET, ALLOCNO, CODE)      \
@@ -231,12 +227,8 @@ static int local_reg_freq[FIRST_PSEUDO_REGISTER];
 
 static int local_reg_live_length[FIRST_PSEUDO_REGISTER];
 
-/* Test a bit in TABLE, a vector of HARD_REG_SETs,
-   for vector element I, and hard register number J.  */
-
-#define REGBITP(TABLE, I, J)     TEST_HARD_REG_BIT (allocno[I].TABLE, J)
-
-/* Set to 1 a bit in a vector of HARD_REG_SETs.  Works like REGBITP.  */
+/* Set to 1 a bit in a vector TABLE of HARD_REG_SETs, for vector
+   element I, and hard register number J.  */
 
 #define SET_REGBIT(TABLE, I, J)  SET_HARD_REG_BIT (allocno[I].TABLE, J)
 
@@ -247,10 +239,6 @@ static INT_TYPE *allocnos_live;
 /* Test, set or clear bit number I in allocnos_live,
    a bit vector indexed by allocno.  */
 
-#define ALLOCNO_LIVE_P(I)                              \
-  (allocnos_live[(unsigned) (I) / INT_BITS]            \
-   & ((INT_TYPE) 1 << ((unsigned) (I) % INT_BITS)))
-
 #define SET_ALLOCNO_LIVE(I)                            \
   (allocnos_live[(unsigned) (I) / INT_BITS]            \
      |= ((INT_TYPE) 1 << ((unsigned) (I) % INT_BITS)))
index 71950ee6766f1b119b2d67f76618c0efce35e537..7d94deafa8dc888dba5d1497723d22fc7e30db6e 100644 (file)
@@ -57,11 +57,8 @@ static REAL_VALUE_TYPE real_zero, real_one, real_almost_one, real_br_prob_base,
                       real_one_half, real_bb_freq_max;
 
 /* Random guesstimation given names.  */
-#define PROB_NEVER             (0)
 #define PROB_VERY_UNLIKELY     (REG_BR_PROB_BASE / 10 - 1)
-#define PROB_UNLIKELY          (REG_BR_PROB_BASE * 4 / 10 - 1)
 #define PROB_EVEN              (REG_BR_PROB_BASE / 2)
-#define PROB_LIKELY            (REG_BR_PROB_BASE - PROB_UNLIKELY)
 #define PROB_VERY_LIKELY       (REG_BR_PROB_BASE - PROB_VERY_UNLIKELY)
 #define PROB_ALWAYS            (REG_BR_PROB_BASE)
 
index c5b903f04614a7ac7d4370cef8f5da3c8c17580d..9e95e667ab380e6c2ace0df213877b9350d1c8d1 100644 (file)
@@ -72,9 +72,6 @@ struct bb_info
 
 /* Keep all basic block indexes nonnegative in the gcov output.  Index 0
    is used for entry block, last block exit block.  */
-#define GCOV_INDEX_TO_BB(i)  ((i) == 0 ? ENTRY_BLOCK_PTR               \
-                             : (((i) == last_basic_block + 1)          \
-                                ? EXIT_BLOCK_PTR : BASIC_BLOCK ((i)-1)))
 #define BB_TO_GCOV_INDEX(bb)  ((bb) == ENTRY_BLOCK_PTR ? 0             \
                               : ((bb) == EXIT_BLOCK_PTR                \
                                  ? last_basic_block + 1 : (bb)->index + 1))
index 4a9989758c89b7a3ec7e25fa0b4f99430c2b363c..f9b762ee9322b9e6b9596b3c253e5d98cb05e526 100644 (file)
@@ -270,16 +270,13 @@ static edgeset *ancestor_edges;
 
 static void compute_dom_prob_ps PARAMS ((int));
 
-#define ABS_VALUE(x) (((x)<0)?(-(x)):(x))
 #define INSN_PROBABILITY(INSN) (SRC_PROB (BLOCK_TO_BB (BLOCK_NUM (INSN))))
 #define IS_SPECULATIVE_INSN(INSN) (IS_SPECULATIVE (BLOCK_TO_BB (BLOCK_NUM (INSN))))
 #define INSN_BB(INSN) (BLOCK_TO_BB (BLOCK_NUM (INSN)))
 
 /* Parameters affecting the decision of rank_for_schedule().
    ??? Nope.  But MIN_PROBABILITY is used in copmute_trg_info.  */
-#define MIN_DIFF_PRIORITY 2
 #define MIN_PROBABILITY 40
-#define MIN_PROB_DIFF 10
 
 /* Speculative scheduling functions.  */
 static int check_live_1 PARAMS ((int, rtx));
index b98c47581f12c78205d1e9b49a6f96c4416bd4bf..c69084f70277ea47737bd8c75f761907a13b0db0 100644 (file)
@@ -43,26 +43,12 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
    virtual regs here because the simplify_*_operation routines are called
    by integrate.c, which is called before virtual register instantiation.
 
-   ?!? FIXED_BASE_PLUS_P and NONZERO_BASE_PLUS_P need to move into
+   ?!? NONZERO_BASE_PLUS_P needs to move into
    a header file so that their definitions can be shared with the
    simplification routines in simplify-rtx.c.  Until then, do not
-   change these macros without also changing the copy in simplify-rtx.c.  */
+   change this macro without also changing the copy in simplify-rtx.c.  */
 
-#define FIXED_BASE_PLUS_P(X)                                   \
-  ((X) == frame_pointer_rtx || (X) == hard_frame_pointer_rtx   \
-   || ((X) == arg_pointer_rtx && fixed_regs[ARG_POINTER_REGNUM])\
-   || (X) == virtual_stack_vars_rtx                            \
-   || (X) == virtual_incoming_args_rtx                         \
-   || (GET_CODE (X) == PLUS && GET_CODE (XEXP (X, 1)) == CONST_INT \
-       && (XEXP (X, 0) == frame_pointer_rtx                    \
-          || XEXP (X, 0) == hard_frame_pointer_rtx             \
-          || ((X) == arg_pointer_rtx                           \
-              && fixed_regs[ARG_POINTER_REGNUM])               \
-          || XEXP (X, 0) == virtual_stack_vars_rtx             \
-          || XEXP (X, 0) == virtual_incoming_args_rtx))        \
-   || GET_CODE (X) == ADDRESSOF)
-
-/* Similar, but also allows reference to the stack pointer.
+/* Allows reference to the stack pointer.
 
    This used to include FIXED_BASE_PLUS_P, however, we can't assume that
    arg_pointer_rtx by itself is nonzero, because on at least one machine,