aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-05-23 13:54:53 +0200
committerMartin Liska <mliska@suse.cz>2022-05-23 13:54:53 +0200
commit63798f67dcc848dcd110ce222b97304565c9ea29 (patch)
treed1a34fda7219a7f6c4bec5295f8d15a0df5d0c2d /gcc
parent0236ea984c0d08f282ad03b1c36acad014e5ba4d (diff)
downloadgcc-63798f67dcc848dcd110ce222b97304565c9ea29.zip
gcc-63798f67dcc848dcd110ce222b97304565c9ea29.tar.gz
gcc-63798f67dcc848dcd110ce222b97304565c9ea29.tar.bz2
tilepro: fix missing ARRAY_SIZE macro
gcc/ChangeLog: * config/tilepro/gen-mul-tables.cc (ARRAY_SIZE): Add new macro.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/tilepro/gen-mul-tables.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/tilepro/gen-mul-tables.cc b/gcc/config/tilepro/gen-mul-tables.cc
index 798766a..5218398 100644
--- a/gcc/config/tilepro/gen-mul-tables.cc
+++ b/gcc/config/tilepro/gen-mul-tables.cc
@@ -90,6 +90,8 @@ typedef long long MUL_TYPE;
#define MIN(x, y) ((x) <= (y) ? (x) : (y))
#define MAX(x, y) ((x) >= (y) ? (x) : (y))
+#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
+
/* For this program a unary op is one which has only one nonconstant
operand. So shift left by 5 is considered unary. */
typedef MUL_TYPE (*unary_op_func) (MUL_TYPE);