]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH 1/2] (header usage fix) remove unused system header includes
authornsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Apr 2016 10:57:56 +0000 (10:57 +0000)
committernsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Apr 2016 10:57:56 +0000 (10:57 +0000)
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/trunk@235361 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 2f462c41f60aef002c2990c0deb9042d9aaf0c27..5fb73ce59a88b91e7c1edbb52bb4b05091ae2c1f 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-22  Richard Biener  <rguenther@suse.de>
 
        * lto-streamer-in.c (input_ssa_names): Do not allocate
index 5c0640af4ae49ccf690298c861e5a4891bcda1cc..0c726bd4d63fa90c5aa2777fbd2433cd54a4714b 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 18247af2b54eac4ebdd25e0dcbd4b6fd4ee48bf1..20dc024b8596d0ff663c4dba2a3a925645075912 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 aa5fd411b28f97930e54e5688f1c2e92e99b40cc..7d70f892b3cac37f1591d22fa5506a176cc07225 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 6a679cb45a4186a2fb9f26b1fad1e2420549c26e..810617243f2e2fd3d51f6b40032539b9dc2408b7 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 003702b1f364620be049b988de092d07dd4f47ba..6cfe019e8aea24c1f0a8355386be6056b0da5427 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 1f5f45c206a00d6b51db4f0831df98f2dba668ee..ce964fa80be373a58e58204a06d7eff2b09d1709 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 69db0d335ee66c047e04b5e69b1e31943a4e934b..9e3c862339b4b1b14fcf72838fa1bf416f1b194e 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 8ac3d347f83f2537390ed580c9b6d10162a7ef22..cc2b8cc0eda64a05f09e06c1009420cadc137f50 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 c480bfc8bd220f33e2bf56266e685950f310c252..8979d2634260b1e5ad1183ed26da444c47cd3631 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);