From e4ccecd5d0a991e22d34a631aff2792a41fff22a Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 22 Apr 2016 10:57:56 +0000 Subject: [PATCH] [PATCH 1/2] (header usage fix) remove unused system header includes 2016-04-22 Szabolcs Nagy * auto-profile.c: Remove include. * ipa-icf-gimple.c: Remove include. * diagnostic.c: Remove include. * genmatch.c: Likewise. * pretty-print.c: Likewise. * toplev.c: Likewise * c/c-objc-common.c: Likewise. * cp/error.c: Likewise. * fortran/error.c: Likewise. From-SVN: r235361 --- gcc/ChangeLog | 12 ++++++++++++ gcc/auto-profile.c | 1 - gcc/c/c-objc-common.c | 2 -- gcc/cp/error.c | 2 -- gcc/diagnostic.c | 2 -- gcc/fortran/error.c | 2 -- gcc/genmatch.c | 1 - gcc/ipa-icf-gimple.c | 1 - gcc/pretty-print.c | 2 -- gcc/toplev.c | 2 -- 10 files changed, 12 insertions(+), 15 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2f462c41f60..5fb73ce59a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2016-04-22 Szabolcs Nagy + + * auto-profile.c: Remove include. + * ipa-icf-gimple.c: Remove include. + * diagnostic.c: Remove include. + * genmatch.c: Likewise. + * pretty-print.c: Likewise. + * toplev.c: Likewise + * c/c-objc-common.c: Likewise. + * cp/error.c: Likewise. + * fortran/error.c: Likewise. + 2016-04-22 Richard Biener * lto-streamer-in.c (input_ssa_names): Do not allocate diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index 5c0640af4ae..0c726bd4d63 100644 --- a/gcc/auto-profile.c +++ b/gcc/auto-profile.c @@ -32,7 +32,6 @@ along with GCC; see the file COPYING3. If not see #include "gcov-io.h" #include "diagnostic-core.h" -#include #include #include diff --git a/gcc/c/c-objc-common.c b/gcc/c/c-objc-common.c index 18247af2b54..20dc024b859 100644 --- a/gcc/c/c-objc-common.c +++ b/gcc/c/c-objc-common.c @@ -27,8 +27,6 @@ along with GCC; see the file COPYING3. If not see #include "langhooks.h" #include "c-objc-common.h" -#include // For placement new. - static bool c_tree_printer (pretty_printer *, text_info *, const char *, int, bool, bool, bool); diff --git a/gcc/cp/error.c b/gcc/cp/error.c index aa5fd411b28..7d70f892b3c 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -31,8 +31,6 @@ along with GCC; see the file COPYING3. If not see #include "ubsan.h" #include "internal-fn.h" -#include // For placement-new. - #define pp_separate_with_comma(PP) pp_cxx_separate_with (PP, ',') #define pp_separate_with_semicolon(PP) pp_cxx_separate_with (PP, ';') diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 6a679cb45a4..810617243f2 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -40,8 +40,6 @@ along with GCC; see the file COPYING3. If not see # include #endif -#include // For placement new. - #define pedantic_warning_kind(DC) \ ((DC)->pedantic_errors ? DK_ERROR : DK_WARNING) #define permissive_error_kind(DC) ((DC)->permissive ? DK_WARNING : DK_ERROR) diff --git a/gcc/fortran/error.c b/gcc/fortran/error.c index 003702b1f36..6cfe019e8ae 100644 --- a/gcc/fortran/error.c +++ b/gcc/fortran/error.c @@ -34,8 +34,6 @@ along with GCC; see the file COPYING3. If not see #include "diagnostic-color.h" #include "tree-diagnostic.h" /* tree_diagnostics_defaults */ -#include /* For placement-new */ - static int suppress_errors = 0; static bool warnings_not_errors = false; diff --git a/gcc/genmatch.c b/gcc/genmatch.c index 1f5f45c206a..ce964fa80be 100644 --- a/gcc/genmatch.c +++ b/gcc/genmatch.c @@ -22,7 +22,6 @@ along with GCC; see the file COPYING3. If not see . */ #include "bconfig.h" -#include #include "system.h" #include "coretypes.h" #include diff --git a/gcc/ipa-icf-gimple.c b/gcc/ipa-icf-gimple.c index 69db0d335ee..9e3c862339b 100644 --- a/gcc/ipa-icf-gimple.c +++ b/gcc/ipa-icf-gimple.c @@ -35,7 +35,6 @@ along with GCC; see the file COPYING3. If not see #include "fold-const.h" #include "gimple-iterator.h" #include "ipa-utils.h" -#include #include "tree-eh.h" #include "builtins.h" diff --git a/gcc/pretty-print.c b/gcc/pretty-print.c index 8ac3d347f83..cc2b8cc0eda 100644 --- a/gcc/pretty-print.c +++ b/gcc/pretty-print.c @@ -25,8 +25,6 @@ along with GCC; see the file COPYING3. If not see #include "pretty-print.h" #include "diagnostic-color.h" -#include // For placement-new. - #if HAVE_ICONV #include #endif diff --git a/gcc/toplev.c b/gcc/toplev.c index c480bfc8bd2..8979d263426 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -87,8 +87,6 @@ along with GCC; see the file COPYING3. If not see #include "xcoffout.h" /* Needed for external data declarations. */ #endif -#include - static void general_init (const char *, bool); static void do_compile (); static void process_options (void); -- 2.30.2