diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/builtins.c | 2 | ||||
-rw-r--r-- | gcc/expmed.c | 2 | ||||
-rw-r--r-- | gcc/expr.c | 2 | ||||
-rw-r--r-- | gcc/stor-layout.c | 2 | ||||
-rw-r--r-- | gcc/system.h | 3 |
6 files changed, 11 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 01de4f4..d53da6a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2000-01-02 Mark Mitchell <mark@codesourcery.com> + + * system.h (CEIL): Define. + * builtins.c (CEIL): Remove. + * expmed.c (CEIL): Likewise. + * expr.c (CEIL): Likewise. + * stor-layout.c (CEIL): Likewise. + 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * expr.c (store_constructor_field): Fix typo introduced with last diff --git a/gcc/builtins.c b/gcc/builtins.c index f03a53f..a37a383 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -43,8 +43,6 @@ Boston, MA 02111-1307, USA. */ #define CALLED_AS_BUILT_IN(NODE) \ (!strncmp (IDENTIFIER_POINTER (DECL_NAME (NODE)), "__builtin_", 10)) -#define CEIL(x,y) (((x) + (y) - 1) / (y)) - /* Register mappings for target machines without register windows. */ #ifndef INCOMING_REGNO #define INCOMING_REGNO(OUT) (OUT) diff --git a/gcc/expmed.c b/gcc/expmed.c index 1c9781d..4df3b3e 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -46,8 +46,6 @@ static rtx extract_split_bit_field PROTO((rtx, int, int, int, int)); static void do_cmp_and_jump PROTO((rtx, rtx, enum rtx_code, enum machine_mode, rtx)); -#define CEIL(x,y) (((x) + (y) - 1) / (y)) - /* Non-zero means divides or modulus operations are relatively cheap for powers of two, so don't use branches; emit the operation instead. Usually, this will mean that the MD file will emit non-branch @@ -43,8 +43,6 @@ Boston, MA 02111-1307, USA. */ #include "ggc.h" #include "tm_p.h" -#define CEIL(x,y) (((x) + (y) - 1) / (y)) - /* Decide whether a function's arguments should be processed from first to last or from last to first. diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 9cddc53..9eeb409 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -30,8 +30,6 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "ggc.h" -#define CEIL(x,y) (((x) + (y) - 1) / (y)) - /* Data type for the expressions representing sizes of data types. It is the first integer type laid out. */ diff --git a/gcc/system.h b/gcc/system.h index ef675f3..3048a8c 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -266,6 +266,9 @@ extern int errno; #define MIN(X,Y) ((X) < (Y) ? (X) : (Y)) #define MAX(X,Y) ((X) > (Y) ? (X) : (Y)) +/* Returns the least number N such that N * Y >= X. */ +#define CEIL(x,y) (((x) + (y) - 1) / (y)) + #ifdef HAVE_SYS_WAIT_H #include <sys/wait.h> #endif |