From aaa64b5878adabd129ffd3e35a0445d21138f50e Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 8 Jul 2015 14:25:40 +0200 Subject: [PATCH] re PR bootstrap/66744 (Bootstrap failure due to conflicting access() on i686-w64-mingw32) Fix PR bootstrap/66744. PR bootstrap/66744 * tree-sra.c (create_access_1): Call ctor without brackets. (create_artificial_child_access): Likewise. From-SVN: r225547 --- gcc/ChangeLog | 6 ++++++ gcc/tree-sra.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 421705dde5b..33a2fa03099 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-07-08 Martin Liska + + PR bootstrap/66744 + * tree-sra.c (create_access_1): Call ctor without brackets. + (create_artificial_child_access): Likewise. + 2015-07-08 Richard Biener PR tree-optimization/66793 diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index 3d26c1e7154..3f6111c160f 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -858,7 +858,7 @@ mark_parm_dereference (tree base, HOST_WIDE_INT dist, gimple stmt) static struct access * create_access_1 (tree base, HOST_WIDE_INT offset, HOST_WIDE_INT size) { - struct access *access = new struct access (); + struct access *access = new struct access; memset (access, 0, sizeof (struct access)); access->base = base; @@ -2393,7 +2393,7 @@ create_artificial_child_access (struct access *parent, struct access *model, gcc_assert (!model->grp_unscalarizable_region); - struct access *access = new struct access (); + struct access *access = new struct access; memset (access, 0, sizeof (struct access)); if (!build_user_friendly_ref_for_offset (&expr, TREE_TYPE (expr), new_offset, model->type)) -- 2.30.2