diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 053e6e80582e1ce3a6f014ce5da1337ed1f923c3..8ff77809fc93cfa61e01d11f0845e017490540c3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2002-06-08  Andreas Jaeger  <aj@suse.de>
+
+	* lcm.c (optimize_mode_switching): Add unused attribute for
+	variable.
+
+	* sched-deps.c (sched_analyze): Remove unused variable.
+
 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
 
 	* diagnostic.def: Don't capitalize diagnostict descriptors.
@@ -35,7 +42,7 @@
 2002-06-07  Jeff Law <law@redhat.com
 
 	* emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
-	* combine.c (move_deaths): Use regno_reg_rtx for hard regs rather       
+	* combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
 	than creating a new register.
 	(distribute_notes): Likewise.
 	* df.c (df_reg_use_gen): Likewise.
diff --git a/gcc/lcm.c b/gcc/lcm.c
index 3d4ccc9bb58417a2db929c2b58930e26d6b28a7d..314d7a0c6fc4e4457624e7379b47b5c3fcfdd861 100644
--- a/gcc/lcm.c
+++ b/gcc/lcm.c
@@ -1,5 +1,5 @@
 /* Generic partial redundancy elimination with lazy code motion support.
-   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -1024,7 +1024,7 @@ optimize_mode_switching (file)
   int n_entities;
   int max_num_modes = 0;
   bool emited = false;
-  basic_block post_entry, pre_exit ATTRIBUTE_UNUSED;
+  basic_block post_entry ATTRIBUTE_UNUSED, pre_exit ATTRIBUTE_UNUSED;
 
   clear_bb_flags ();
 
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c
index 644f1bdbd1f6b1811c610e98633c9ea470dadd4f..985559fc9701e3ccd1c86c1035bb8262b699c22d 100644
--- a/gcc/sched-deps.c
+++ b/gcc/sched-deps.c
@@ -1236,7 +1236,7 @@ sched_analyze (deps, head, tail)
 
   for (insn = head;; insn = NEXT_INSN (insn))
     {
-      rtx link, end_seq, r0, set, note;
+      rtx link, end_seq, r0, set;
 
       if (GET_CODE (insn) == INSN || GET_CODE (insn) == JUMP_INSN)
 	{