From cbbfcb3b2301afff03ee04fc0a76b16bc9ab3b4d Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Wed, 4 Aug 1999 20:47:45 +0000 Subject: [PATCH] Warning fixes: * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp): Wrap prototypes in macro HAVE_cmpstrsi. * cpplib.c (cpp_get_token): Remove unused label `op3'. * emit-rtl.c (operand_subword): Remove unused variable `bits_per_word'. * rtl.c (shallow_copy_rtx): Remove unused variable `format_ptr'. * tree.c (chainon): Wrap variable `t2' in macro ENABLE_CHECKING. From-SVN: r28514 --- gcc/ChangeLog | 14 ++++++++++++++ gcc/builtins.c | 2 ++ gcc/cpplib.c | 1 - gcc/emit-rtl.c | 1 - gcc/rtl.c | 1 - gcc/tree.c | 2 ++ 6 files changed, 18 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 39a7bbc4744..0ae4eacebb3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,17 @@ +Wed Aug 4 16:39:24 1999 Kaveh R. Ghazi + + * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp): Wrap + prototypes in macro HAVE_cmpstrsi. + + * cpplib.c (cpp_get_token): Remove unused label `op3'. + + * emit-rtl.c (operand_subword): Remove unused variable + `bits_per_word'. + + * rtl.c (shallow_copy_rtx): Remove unused variable `format_ptr'. + + * tree.c (chainon): Wrap variable `t2' in macro ENABLE_CHECKING. + Wed Aug 4 13:29:23 1999 Zack Weinberg * cpphash.c (macroexpand): Delete leading whitespace when arg diff --git a/gcc/builtins.c b/gcc/builtins.c index 1c163524b1c..9f2b81643b0 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -78,8 +78,10 @@ static rtx expand_builtin_next_arg PROTO((tree)); static rtx expand_builtin_va_start PROTO((int, tree)); static rtx expand_builtin_va_end PROTO((tree)); static rtx expand_builtin_va_copy PROTO((tree)); +#ifdef HAVE_cmpstrsi static rtx expand_builtin_memcmp PROTO((tree, tree, rtx)); static rtx expand_builtin_strcmp PROTO((tree, rtx)); +#endif static rtx expand_builtin_memcpy PROTO((tree)); static rtx expand_builtin_strcpy PROTO((tree)); static rtx expand_builtin_memset PROTO((tree)); diff --git a/gcc/cpplib.c b/gcc/cpplib.c index ab2e203c27f..f2fadf28b03 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -2205,7 +2205,6 @@ cpp_get_token (pfile) if (opts->cplusplus && PEEKN (1) == '*') { /* In C++, there's a ->* operator. */ - op3: token = CPP_OTHER; pfile->only_seen_white = 0; CPP_RESERVE (pfile, 4); diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 3c0e08c5e83..7d20d751e10 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1195,7 +1195,6 @@ operand_subword (op, i, validate_address, mode) { HOST_WIDE_INT val; int size_ratio = HOST_BITS_PER_WIDE_INT / BITS_PER_WORD; - int bits_per_word = BITS_PER_WORD; if (mode == VOIDmode) mode = GET_MODE (op); diff --git a/gcc/rtl.c b/gcc/rtl.c index 6b04bcd82d5..668e92fea90 100644 --- a/gcc/rtl.c +++ b/gcc/rtl.c @@ -495,7 +495,6 @@ shallow_copy_rtx (orig) rtx orig; { register int i; - register char *format_ptr; register RTX_CODE code = GET_CODE (orig); register rtx copy = rtx_alloc (code); diff --git a/gcc/tree.c b/gcc/tree.c index f0dc0ee4da5..9ab2fea4f54 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1950,7 +1950,9 @@ chainon (op1, op2) if (op1) { register tree t1; +#ifdef ENABLE_CHECKING register tree t2; +#endif for (t1 = op1; TREE_CHAIN (t1); t1 = TREE_CHAIN (t1)) ; -- 2.30.2