diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d8586406628538ffaf3bae00f9c32f1bba155fb1..23f37b0f7804bbc33766636bd840d883191daa45 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2006-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
+
+	* diagnostic.h: Include options.h.
+	* config/rs6000/x-darwin (host-ppc-darwin.o): Correct the
+	dependancies for diagnostic.h.
+	* Makefile.in (DIAGNOSTIC_H): Add options.h.
+
 2006-01-16  Daniel Berlin  <dberlin@dberlin.org>
 
 	* tree-ssa-operands.h (ssa_call_clobbered_cache_valid): Remove.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index dd2c8452926d9326ebea92d623e477ad752de16a..a8bd984fb8a7af2c85153c1c9be87c5384022fde 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -787,7 +787,7 @@ TREE_FLOW_H = tree-flow.h tree-flow-inline.h tree-ssa-operands.h \
 		$(HASHTAB_H) $(CGRAPH_H) $(IPA_REFERENCE_H)
 TREE_SSA_LIVE_H = tree-ssa-live.h $(PARTITION_H)
 PRETTY_PRINT_H = pretty-print.h input.h $(OBSTACK_H)
-DIAGNOSTIC_H = diagnostic.h diagnostic.def $(PRETTY_PRINT_H)
+DIAGNOSTIC_H = diagnostic.h diagnostic.def $(PRETTY_PRINT_H) options.h
 C_PRETTY_PRINT_H = c-pretty-print.h $(PRETTY_PRINT_H) $(C_COMMON_H) $(TREE_H)
 SCEV_H = tree-scalar-evolution.h $(GGC_H) tree-chrec.h $(PARAMS_H)
 LAMBDA_H = lambda.h $(TREE_H) vec.h $(GGC_H)
diff --git a/gcc/config/rs6000/x-darwin b/gcc/config/rs6000/x-darwin
index bcf1c9ecb1ffb244db0d206e9b672445f9d34cd4..033ab6bf54c9a3101d4f4e14ed92f7024911d0bd 100644
--- a/gcc/config/rs6000/x-darwin
+++ b/gcc/config/rs6000/x-darwin
@@ -1,4 +1,4 @@
 host-ppc-darwin.o : $(srcdir)/config/rs6000/host-darwin.c \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h hosthooks.h $(HOSTHOOKS_DEF_H) toplev.h \
-  diagnostic.h config/host-darwin.h
+  config/host-darwin.h $(DIAGNOSTIC_H)
 	$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< -o $@
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index 51493ea8bab5bcd2df739446edba81a70a966817..df520266a8856024df93bfbb9e4b5f78c35e8b1d 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -24,6 +24,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 #define GCC_DIAGNOSTIC_H
 
 #include "pretty-print.h"
+#include "options.h"
 
 /* Constants used to discriminate diagnostics.  */
 typedef enum