Add missing VIEW_CONVERT_EXPR case in gimplifier
Eric Botcazou
ebotcazou@adacore.com
Mon Jun 12 19:58:00 GMT 2006
We have a proprietary testcase that causes the gimplifier to choke if
--RTS=sjlj is passed to the Ada compiler, a regression from 3.x. The
attached patch simply adds the missing VIEW_CONVERT_EXPR in the fb_none
case with side-effects in the gimplifier, mimicing the generic case:
case ARRAY_REF:
case ARRAY_RANGE_REF:
case REALPART_EXPR:
case IMAGPART_EXPR:
case COMPONENT_REF:
case VIEW_CONVERT_EXPR:
ret = gimplify_compound_lval (expr_p, pre_p, post_p,
fallback ? fallback : fb_rvalue);
break;
Tested on i586-suse-linux, applied to mainline as obvious.
2006-06-12 Eric Botcazou <ebotcazou@adacore.com>
* gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
lvalues in the fb_none case with side-effects.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 508 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060612/1788e865/attachment.bin>
More information about the Gcc-patches
mailing list