[PATCH 1/2] (header usage fix) remove unused system header includes
authornsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Apr 2016 11:08:16 +0000 (11:08 +0000)
committernsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Apr 2016 11:08:16 +0000 (11:08 +0000)
cherry picked from trunk r235361

2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>

* auto-profile.c: Remove <string.h> include.
* ipa-icf-gimple.c: Remove <list> include.
* diagnostic.c: Remove <new> 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@235363 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/auto-profile.c
gcc/c/c-objc-common.c
gcc/cp/error.c
gcc/diagnostic.c
gcc/fortran/error.c
gcc/genmatch.c
gcc/ipa-icf-gimple.c
gcc/pretty-print.c
gcc/toplev.c

index 12440ed..3f63d7e 100644 (file)
@@ -1,3 +1,15 @@
+2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * auto-profile.c: Remove <string.h> include.
+       * ipa-icf-gimple.c: Remove <list> include.
+       * diagnostic.c: Remove <new> 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-21  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/70747
index 5c0640a..0c726bd 100644 (file)
@@ -32,7 +32,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "gcov-io.h"
 #include "diagnostic-core.h"
 
-#include <string.h>
 #include <map>
 #include <set>
 
index 18247af..20dc024 100644 (file)
@@ -27,8 +27,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "langhooks.h"
 #include "c-objc-common.h"
 
-#include <new>                          // For placement new.
-
 static bool c_tree_printer (pretty_printer *, text_info *, const char *,
                            int, bool, bool, bool);
 
index aa5fd41..7d70f89 100644 (file)
@@ -31,8 +31,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "ubsan.h"
 #include "internal-fn.h"
 
-#include <new>                    // 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, ';')
 
index 6a679cb..8106172 100644 (file)
@@ -40,8 +40,6 @@ along with GCC; see the file COPYING3.  If not see
 # include <sys/ioctl.h>
 #endif
 
-#include <new>                     // 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)
index 003702b..6cfe019 100644 (file)
@@ -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 <new> /* For placement-new */
-
 static int suppress_errors = 0;
 
 static bool warnings_not_errors = false;
index 1f5f45c..ce964fa 100644 (file)
@@ -22,7 +22,6 @@ along with GCC; see the file COPYING3.  If not see
 <http://www.gnu.org/licenses/>.  */
 
 #include "bconfig.h"
-#include <new>
 #include "system.h"
 #include "coretypes.h"
 #include <cpplib.h>
index 69db0d3..9e3c862 100644 (file)
@@ -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 <list>
 #include "tree-eh.h"
 #include "builtins.h"
 
index acb89e6..49e1cb9 100644 (file)
@@ -25,8 +25,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "pretty-print.h"
 #include "diagnostic-color.h"
 
-#include <new>                    // For placement-new.
-
 #if HAVE_ICONV
 #include <iconv.h>
 #endif
index c480bfc..8979d26 100644 (file)
@@ -87,8 +87,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "xcoffout.h"          /* Needed for external data declarations. */
 #endif
 
-#include <new>
-
 static void general_init (const char *, bool);
 static void do_compile ();
 static void process_options (void);