LTO object replaced by all partitions and other LTO
objects removed. */
- lto_c_argv = (char **) xcalloc (sizeof (char *), num_lto_c_args);
+ lto_c_argv = (char **) xcalloc (num_lto_c_args, sizeof (char *));
lto_c_ptr = CONST_CAST2 (const char **, char **, lto_c_argv);
*lto_c_ptr++ = lto_wrapper;
gimple_set_bb (stmt2, NULL);
/* Allocate SSA names(lhs1) on the stack. */
- tree lhs1 = (tree)XALLOCA (tree_ssa_name);
+ alignas (tree_node) unsigned char lhs1buf[sizeof (tree_ssa_name)];
+ tree lhs1 = (tree) &lhs1buf[0];
memset (lhs1, 0, sizeof (tree_ssa_name));
TREE_SET_CODE (lhs1, SSA_NAME);
TREE_TYPE (lhs1) = type;
init_ssa_name_imm_use (lhs1);
/* Allocate SSA names(lhs2) on the stack. */
- tree lhs2 = (tree)XALLOCA (tree_ssa_name);
+ alignas (tree_node) unsigned char lhs2buf[sizeof (tree_ssa_name)];
+ tree lhs2 = (tree) &lhs2buf[0];
memset (lhs2, 0, sizeof (tree_ssa_name));
TREE_SET_CODE (lhs2, SSA_NAME);
TREE_TYPE (lhs2) = type;