This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR 18965, a c++ and gimplifier fix


Andrew Pinski wrote:
The problem is that we cannot handle RANGE_EXPR in gimplify_init_ctor_eval.
I fixed the bug two ways, one fix in the C++ front-end by not producing
RANGE_EXPR when the upper and lower bounds are equal.  The next way is
to handle a special condition of RANGE_EXPR in gimplify_init_ctor_eval
where the upper and lower bounds are equal.  The C++ front-end fix is
enough to fix the problem but it would be also nice to fix the problem
in the middle-end and support a very limited subset of RANGE_EXPR
in gimplify_init_ctor_eval.

OK? Bootstrapped and tested on powerpc-darwin with no regressions.

The cp/init.c change is OK, if you fix the spelling error in your comment.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]