diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-08-31 07:21:05 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-08-31 07:21:05 +0000 |
commit | b96a5ea56c782a88e3b0b2fb0f51cf9e9d67226f (patch) | |
tree | 92e2a2ef874ae2e26640d23ae3eae3bdf475c376 /gcc/config/sparc | |
parent | ef869e71aebdde78cb5e790e1c7da5a3575c49c7 (diff) | |
download | gcc-b96a5ea56c782a88e3b0b2fb0f51cf9e9d67226f.zip gcc-b96a5ea56c782a88e3b0b2fb0f51cf9e9d67226f.tar.gz gcc-b96a5ea56c782a88e3b0b2fb0f51cf9e9d67226f.tar.bz2 |
Fixes for sunos4 cc:
* sparc.c (TMASK, UMASK): Use `(unsigned)1' not `1U'.
(ultrasparc_sched_init): Remove unneeded &.
From-SVN: r22124
Diffstat (limited to 'gcc/config/sparc')
-rw-r--r-- | gcc/config/sparc/sparc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 0e8b804..9784f1d 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -6222,8 +6222,8 @@ supersparc_adjust_cost (insn, link, dep_insn, cost) /* This describes the state of the UltraSPARC pipeline during instruction scheduling. */ -#define TMASK(__x) (1U << ((int)(__x))) -#define UMASK(__x) (1U << ((int)(__x))) +#define TMASK(__x) ((unsigned)1 << ((int)(__x))) +#define UMASK(__x) ((unsigned)1 << ((int)(__x))) enum ultra_code { NONE=0, /* no insn at all */ IEU0, /* shifts and conditional moves */ @@ -6575,7 +6575,7 @@ ultrasparc_sched_init (dump, sched_verbose) FILE *dump ATTRIBUTE_UNUSED; int sched_verbose ATTRIBUTE_UNUSED; { - bzero ((char *) &ultra_pipe_hist, sizeof ultra_pipe_hist); + bzero ((char *) ultra_pipe_hist, sizeof ultra_pipe_hist); ultra_cur_hist = 0; ultra_cycles_elapsed = 0; ultra_reorder_called_this_block = 0; |