elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around assignment used as truth value.

* elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
	assignment used as truth value.

	* function.c (assign_temp): Mark parameter `dont_promote' with
	ATTRIBUTE_UNUSED.  Wrap variable `unsignedp' with macro
	PROMOTE_FOR_CALL_ONLY.

	* genrecog.c (write_subroutine): Mark variable `operands' with
	ATTRIBUTE_UNUSED.

	* optabs.c (prepare_cmp_insn): Mark parameter `align' with
	ATTRIBUTE_UNUSED.

	* sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
	(sdbout_begin_block, sdbout_end_block): Likewise for `file'.

	* toplev.c (note_deferral_of_defined_inline_function): Likewise
	for `decl'.

From-SVN: r31293
This commit is contained in:
Kaveh R. Ghazi 2000-01-09 14:23:35 +00:00 committed by Kaveh Ghazi
parent 975ab1312f
commit 0ce8a59c2b
7 changed files with 31 additions and 8 deletions

View File

@ -1,3 +1,24 @@
2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
assignment used as truth value.
* function.c (assign_temp): Mark parameter `dont_promote' with
ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
PROMOTE_FOR_CALL_ONLY.
* genrecog.c (write_subroutine): Mark variable `operands' with
ATTRIBUTE_UNUSED.
* optabs.c (prepare_cmp_insn): Mark parameter `align' with
ATTRIBUTE_UNUSED.
* sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
(sdbout_begin_block, sdbout_end_block): Likewise for `file'.
* toplev.c (note_deferral_of_defined_inline_function): Likewise
for `decl'.
2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* config/c4x.h: Tidy up comments.

View File

@ -709,7 +709,7 @@ dtors_section () \
\
fprintf ((FILE), "\t%s\t\"", STRING_ASM_OP); \
\
for (; ch = *_limited_str; _limited_str++) \
for (; (ch = *_limited_str); _limited_str++) \
{ \
register int escape; \
\

View File

@ -821,10 +821,12 @@ assign_temp (type, keep, memory_required, dont_promote)
tree type;
int keep;
int memory_required;
int dont_promote;
int dont_promote ATTRIBUTE_UNUSED;
{
enum machine_mode mode = TYPE_MODE (type);
#ifndef PROMOTE_FOR_CALL_ONLY
int unsignedp = TREE_UNSIGNED (type);
#endif
if (mode == BLKmode || memory_required)
{

View File

@ -2197,7 +2197,7 @@ peephole2%s (x0, insn, _plast_insn)\n\
break;
}
printf ("{\n register rtx * const operands = &recog_data.operand[0];\n");
printf ("{\n register rtx * const operands ATTRIBUTE_UNUSED = &recog_data.operand[0];\n");
for (i = 1; i <= max_depth; i++)
printf (" register rtx x%d ATTRIBUTE_UNUSED;\n", i);

View File

@ -2893,7 +2893,7 @@ prepare_cmp_insn (px, py, pcomparison, size, pmode, punsignedp, align,
rtx size;
enum machine_mode *pmode;
int *punsignedp;
int align;
int align ATTRIBUTE_UNUSED;
enum can_compare_purpose purpose;
{
enum machine_mode mode = *pmode;

View File

@ -336,7 +336,7 @@ static struct sdb_file *current_file;
void
sdbout_init (asm_file, input_file_name, syms)
FILE *asm_file;
FILE *asm_file ATTRIBUTE_UNUSED;
char *input_file_name;
tree syms ATTRIBUTE_UNUSED;
{
@ -1524,7 +1524,7 @@ sdbout_reg_parms (parms)
void
sdbout_begin_block (file, line, n)
FILE *file;
FILE *file ATTRIBUTE_UNUSED;
int line;
int n;
{
@ -1564,7 +1564,7 @@ sdbout_begin_block (file, line, n)
void
sdbout_end_block (file, line, n)
FILE *file;
FILE *file ATTRIBUTE_UNUSED;
int line;
int n ATTRIBUTE_UNUSED;
{

View File

@ -2735,7 +2735,7 @@ rest_of_type_compilation (type, toplev)
void
note_deferral_of_defined_inline_function (decl)
tree decl;
tree decl ATTRIBUTE_UNUSED;
{
#ifdef DWARF_DEBUGGING_INFO
/* Generate the DWARF info for the "abstract" instance of a function