]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/gimple-builder.c
[C++] Protect call to copy_attributes_to_builtin (PR91505)
[thirdparty/gcc.git] / gcc / gimple-builder.c
index 90e6941799b1414c6ac48e73ffdf6081cd9206c0..fd87e423ccb21776e646bdb190e2e6afe7a67ebd 100644 (file)
@@ -1,5 +1,5 @@
 /* Functions for high level gimple building routines.
-   Copyright (C) 2013-2015 Free Software Foundation, Inc.
+   Copyright (C) 2013-2019 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -20,15 +20,11 @@ along with GCC; see the file COPYING3.  If not see
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
-#include "alias.h"
 #include "backend.h"
 #include "tree.h"
 #include "gimple.h"
-#include "hard-reg-set.h"
-#include "options.h"
-#include "fold-const.h"
 #include "stringpool.h"
-#include "internal-fn.h"
+#include "tree-vrp.h"
 #include "tree-ssanames.h"
 
 
@@ -62,7 +58,7 @@ build_assign (enum tree_code code, tree op1, int val, tree lhs)
 }
 
 gassign *
-build_assign (enum tree_code code, gimple g, int val, tree lhs )
+build_assign (enum tree_code code, gimple *g, int val, tree lhs )
 {
   return build_assign (code, gimple_assign_lhs (g), val, lhs);
 }
@@ -85,19 +81,19 @@ build_assign (enum tree_code code, tree op1, tree op2, tree lhs)
 }
 
 gassign *
-build_assign (enum tree_code code, gimple op1, tree op2, tree lhs)
+build_assign (enum tree_code code, gimple *op1, tree op2, tree lhs)
 {
   return build_assign (code, gimple_assign_lhs (op1), op2, lhs);
 }
 
 gassign *
-build_assign (enum tree_code code, tree op1, gimple op2, tree lhs)
+build_assign (enum tree_code code, tree op1, gimple *op2, tree lhs)
 {
   return build_assign (code, op1, gimple_assign_lhs (op2), lhs);
 }
 
 gassign *
-build_assign (enum tree_code code, gimple op1, gimple op2, tree lhs)
+build_assign (enum tree_code code, gimple *op1, gimple *op2, tree lhs)
 {
   return build_assign (code, gimple_assign_lhs (op1), gimple_assign_lhs (op2),
                        lhs);
@@ -116,7 +112,7 @@ build_type_cast (tree to_type, tree op, tree lhs)
 }
 
 gassign *
-build_type_cast (tree to_type, gimple op, tree lhs)
+build_type_cast (tree to_type, gimple *op, tree lhs)
 {
   return build_type_cast (to_type, gimple_assign_lhs (op), lhs);
 }