diff options
author | grahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-08 07:52:37 +0000 |
---|---|---|
committer | grahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-08 07:52:37 +0000 |
commit | 39ea460e41ec1769e66b416007cf66b0b55dcb3a (patch) | |
tree | 3bd760d847f0909903e467a9d679bb0879db3ea0 /gcc/dependence.c | |
parent | 8783444115d36ead18a9a19051a12edd041144bd (diff) | |
download | gcc-39ea460e41ec1769e66b416007cf66b0b55dcb3a.tar.gz |
* dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
(abs): Uppercase and paranthesize macro parameter.
(MEM_DEPENDENCY): Add whitespace.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44709 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dependence.c')
-rw-r--r-- | gcc/dependence.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/dependence.c b/gcc/dependence.c index 3bfe34a627b..103380bc491 100644 --- a/gcc/dependence.c +++ b/gcc/dependence.c @@ -474,10 +474,10 @@ find_induction_variable (init_node, cond_node, incr_node, loop_def) cond_node = TREE_VALUE (cond_node); incr = cond_node; -#define INDEX_LIMIT_CHECK(node) \ - (TREE_CODE_CLASS (TREE_CODE (node)) == '<') \ - && (TREE_CODE (TREE_OPERAND (node, 0)) == VAR_DECL \ - && (IDENTIFIER_POINTER (DECL_NAME (TREE_OPERAND (node, 0))) \ +#define INDEX_LIMIT_CHECK(NODE) \ + (TREE_CODE_CLASS (TREE_CODE (NODE)) == '<') \ + && (TREE_CODE (TREE_OPERAND (NODE, 0)) == VAR_DECL \ + && (IDENTIFIER_POINTER (DECL_NAME (TREE_OPERAND (NODE, 0))) \ == IDENTIFIER_POINTER (DECL_NAME (TREE_OPERAND (incr_node, 0))))) \ ? 1 : 0 @@ -1146,7 +1146,7 @@ check_subscript_induction (icoefficient, ocoefficient, loop_ptr) return 0; } -#define abs(n) (n < 0 ? -n : n) +#define abs(N) ((N) < 0 ? -(N) : (N)) /* Determine the DIRECTION and DISTANCE dependency for subscript SUB of inputs ICOEFFICIENTS and outputs OCOEFFICIENTS of loop LOOP_PTR using @@ -1418,7 +1418,7 @@ remember_dest_for_dependence (node) } #ifndef MEM_DEPENDENCY -#define MEM_DEPENDENCY(RTX) XCWINT(RTX, 2, MEM) +#define MEM_DEPENDENCY(RTX) XCWINT (RTX, 2, MEM) #endif /* Return 1 along with the dependence DIRECTION and DISTANCE if there is a |