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
This commit is contained in:
Kaveh R. Ghazi 1999-08-04 20:47:45 +00:00 committed by Kaveh Ghazi
parent e88e3c0bf6
commit cbbfcb3b23
6 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,17 @@
Wed Aug 4 16:39:24 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* 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 <zack@bitmover.com>
* cpphash.c (macroexpand): Delete leading whitespace when arg

View File

@ -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));

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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))
;