aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog21
-rw-r--r--gcc/config/elfos.h2
-rw-r--r--gcc/function.c4
-rw-r--r--gcc/genrecog.c2
-rw-r--r--gcc/optabs.c2
-rw-r--r--gcc/sdbout.c6
-rw-r--r--gcc/toplev.c2
7 files changed, 31 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8a39bcc..95315ed 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h
index 4b4b876..a3bfcd3e 100644
--- a/gcc/config/elfos.h
+++ b/gcc/config/elfos.h
@@ -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; \
\
diff --git a/gcc/function.c b/gcc/function.c
index d298283..5db558f 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -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)
{
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index 243eafa..ce5f9104 100644
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -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);
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 5d80241..578b783 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -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;
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index e78675f..02a35c2 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -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;
{
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 1c65d30..5388d1c 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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