diff options
author | Geoff Keating <geoffk@cygnus.com> | 2000-08-14 05:59:50 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2000-08-14 05:59:50 +0000 |
commit | 0858c623d0c2307d5072575f394e05448b12817f (patch) | |
tree | bf2013914495537d0dd5a8f1d43cb696b4b8434e /gcc/config | |
parent | 51a017d8bc4aa54f56d0f245dacf5e847c947b9f (diff) | |
download | gcc-0858c623d0c2307d5072575f394e05448b12817f.zip gcc-0858c623d0c2307d5072575f394e05448b12817f.tar.gz gcc-0858c623d0c2307d5072575f394e05448b12817f.tar.bz2 |
flow.c (attempt_auto_inc): Remove unused variable `bb'.
* flow.c (attempt_auto_inc): Remove unused variable `bb'.
(attempt_auto_inc): Suppress parentheses warning.
* function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
* loop.c (load_mems): Remove `u' suffix in two places.
* config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
hex constants.
* config/rs6000/rs6000.h: Likewise.
* config/rs6000/sol-c0.c: Prototype some functions. Remove the
__eabi dummy routine.
* config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
variable `buf_ptr'.
From-SVN: r35670
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 30 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.h | 8 | ||||
-rw-r--r-- | gcc/config/rs6000/sol-c0.c | 12 | ||||
-rw-r--r-- | gcc/config/rs6000/sysv4.h | 1 |
4 files changed, 24 insertions, 27 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 83b72fd..a85f5bd 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -686,7 +686,7 @@ reg_or_logical_cint_operand (op, mode) } return ((INTVAL (op) & GET_MODE_MASK (mode) - & (~ (unsigned HOST_WIDE_INT) 0xffffffffu)) == 0); + & (~ (unsigned HOST_WIDE_INT) 0xffffffff)) == 0); } else if (GET_CODE (op) == CONST_DOUBLE) { @@ -741,13 +741,13 @@ num_insns_constant_wide (value) #if HOST_BITS_PER_WIDE_INT == 64 else if (TARGET_POWERPC64) { - unsigned HOST_WIDE_INT low = value & 0xffffffffu; + unsigned HOST_WIDE_INT low = value & 0xffffffff; HOST_WIDE_INT high = value >> 32; - if (high == 0 && (low & 0x80000000u) == 0) + if (high == 0 && (low & 0x80000000) == 0) return 2; - else if (high == -1 && (low & 0x80000000u) != 0) + else if (high == -1 && (low & 0x80000000) != 0) return 2; else if (! low) @@ -808,10 +808,10 @@ num_insns_constant (op, mode) else { - if (high == 0 && (low & 0x80000000u) == 0) + if (high == 0 && (low & 0x80000000) == 0) return num_insns_constant_wide (low); - else if (high == -1 && (low & 0x80000000u) != 0) + else if (high == -1 && (low & 0x80000000) != 0) return num_insns_constant_wide (low); else if (mask64_operand (op, mode)) @@ -1003,7 +1003,7 @@ logical_operand (op, mode) return (oph == 0 && ((opl & ~ (unsigned HOST_WIDE_INT) 0xffff) == 0 - || (opl & ~ (unsigned HOST_WIDE_INT) 0xffff0000u) == 0)); + || (opl & ~ (unsigned HOST_WIDE_INT) 0xffff0000) == 0)); } /* Return 1 if C is a constant that is not a logical operand (as @@ -3899,15 +3899,15 @@ print_operand (file, x, code) /* If the high bit is set and the low bit is not, the value is zero. If the high bit is zero, the value is the first 1 bit we find from the left. */ - if ((val & 0x80000000u) && ((val & 1) == 0)) + if ((val & 0x80000000) && ((val & 1) == 0)) { putc ('0', file); return; } - else if ((val & 0x80000000u) == 0) + else if ((val & 0x80000000) == 0) { for (i = 1; i < 32; i++) - if ((val <<= 1) & 0x80000000u) + if ((val <<= 1) & 0x80000000) break; fprintf (file, "%d", i); return; @@ -3934,7 +3934,7 @@ print_operand (file, x, code) /* If the low bit is set and the high bit is not, the value is 31. If the low bit is zero, the value is the first 1 bit we find from the right. */ - if ((val & 1) && ((val & 0x80000000u) == 0)) + if ((val & 1) && ((val & 0x80000000) == 0)) { fputs ("31", file); return; @@ -3954,7 +3954,7 @@ print_operand (file, x, code) /* Otherwise, look for the first 0 bit from the left. The result is its number minus 1. We know the high-order bit is one. */ for (i = 0; i < 32; i++) - if (((val <<= 1) & 0x80000000u) == 0) + if (((val <<= 1) & 0x80000000) == 0) break; fprintf (file, "%d", i); @@ -6660,7 +6660,7 @@ output_toc (file, x, labelno, mode) fprintf (file, "\t.llong 0x%lx%08lx\n", k[0], k[1]); else fprintf (file, "\t.tc FD_%lx_%lx[TC],0x%lx%08lx\n", - k[0], k[1], k[0] & 0xffffffffu, k[1] & 0xffffffffu); + k[0], k[1], k[0] & 0xffffffff, k[1] & 0xffffffff); return; } else @@ -6713,11 +6713,11 @@ output_toc (file, x, labelno, mode) #if HOST_BITS_PER_WIDE_INT == 32 { low = INTVAL (x); - high = (low & 0x80000000u) ? ~0 : 0; + high = (low & 0x80000000) ? ~0 : 0; } #else { - low = INTVAL (x) & 0xffffffffu; + low = INTVAL (x) & 0xffffffff; high = (HOST_WIDE_INT) INTVAL (x) >> 32; } #endif diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index c4feb59..14ca63a 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -1061,7 +1061,7 @@ enum reg_class #define CONST_OK_FOR_LETTER_P(VALUE, C) \ ( (C) == 'I' ? (unsigned HOST_WIDE_INT) ((VALUE) + 0x8000) < 0x10000 \ - : (C) == 'J' ? ((VALUE) & (~ (unsigned HOST_WIDE_INT) 0xffff0000u)) == 0 \ + : (C) == 'J' ? ((VALUE) & (~ (unsigned HOST_WIDE_INT) 0xffff0000)) == 0 \ : (C) == 'K' ? ((VALUE) & (~ (HOST_WIDE_INT) 0xffff)) == 0 \ : (C) == 'L' ? (((VALUE) & 0xffff) == 0 \ && ((VALUE) >> 31 == -1 || (VALUE) >> 31 == 0)) \ @@ -1960,7 +1960,7 @@ do { \ HOST_WIDE_INT val = INTVAL (XEXP (X, 1)); \ HOST_WIDE_INT low = ((val & 0xffff) ^ 0x8000) - 0x8000; \ HOST_WIDE_INT high \ - = (((val - low) & 0xffffffffu) ^ 0x80000000u) - 0x80000000u; \ + = (((val - low) & 0xffffffff) ^ 0x80000000) - 0x80000000; \ \ /* Check for 32-bit overflow. */ \ if (high + low != val) \ @@ -2591,7 +2591,7 @@ extern char rs6000_reg_names[][8]; /* register names (0 vs. %r0). */ long t[2]; \ REAL_VALUE_TO_TARGET_DOUBLE ((VALUE), t); \ fprintf (FILE, "\t.long 0x%lx\n\t.long 0x%lx\n", \ - t[0] & 0xffffffffu, t[1] & 0xffffffffu); \ + t[0] & 0xffffffff, t[1] & 0xffffffff); \ } /* This is how to output an assembler line defining a `float' constant. */ @@ -2600,7 +2600,7 @@ extern char rs6000_reg_names[][8]; /* register names (0 vs. %r0). */ { \ long t; \ REAL_VALUE_TO_TARGET_SINGLE ((VALUE), t); \ - fprintf (FILE, "\t.long 0x%lx\n", t & 0xffffffffu); \ + fprintf (FILE, "\t.long 0x%lx\n", t & 0xffffffff); \ } /* This is how to output an assembler line defining an `int' constant. */ diff --git a/gcc/config/rs6000/sol-c0.c b/gcc/config/rs6000/sol-c0.c index 44cd76f..a31876c 100644 --- a/gcc/config/rs6000/sol-c0.c +++ b/gcc/config/rs6000/sol-c0.c @@ -1,5 +1,5 @@ /* Solaris PowerPC startfile. */ -/* Copyright (C) 1996 Free Software Foundation, Inc. +/* Copyright (C) 1996, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -32,6 +32,10 @@ extern char **_environ; extern int atexit (void (*__func) (void)); extern void __init (void) __attribute__ ((__longcall__)); extern void __fini (void) __attribute__ ((__longcall__)); +extern void _start(int argc, char *argv[], char *envp[], void *auxp, + void (*termfunc)()); +extern void exit(int); +extern int main (int argc, char *argv[], char *envp[], void *auxp); typedef void (*func_ptr) (void); int (*__atexit)(func_ptr) = atexit; @@ -116,9 +120,3 @@ _start(int argc, char *argv[], char *envp[], void *auxp, void (*termfunc)()) /* Return to the os */ exit (ret); } - -/* Provide a dummy __eabi in case main got compiled without -mcall-solaris. */ -void -__eabi () -{ -} diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index a3208ac..a7590ef 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -610,7 +610,6 @@ extern int rs6000_pic_labelno; && uses_TOC()) \ { \ char buf[256]; \ - const char *buf_ptr; \ \ ASM_OUTPUT_INTERNAL_LABEL (FILE, "LCL", rs6000_pic_labelno); \ \ |