IA MCU psABI support: changes to libraries
[gcc.git] / gcc / genmddeps.c
index 7e5ec80e306ef57252581df8d188fe0e5872ec79..baf90630a77dfa8d5c3efbfa2fd76b7ca52383de 100644 (file)
@@ -1,5 +1,5 @@
 /* genmddeps.c - creates a makefile dependency fragment for the md file.
-   Copyright (C) 2004, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2004-2015 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the
 #include "bconfig.h"
 #include "system.h"
 #include "coretypes.h"
-#include "tm.h"
-#include "rtl.h"
-#include "gensupport.h"
 #include "errors.h"
+#include "read-md.h"
 
 
 struct filedep
@@ -48,9 +46,9 @@ main (int argc, char **argv)
 
   progname = "genmddeps";
   include_callback = add_filedep;
-  
-  if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
-    return (FATAL_EXIT_CODE);
+
+  if (!read_md_files (argc, argv, NULL, NULL))
+    return FATAL_EXIT_CODE;
 
   *last = NULL;